text:00472B40 .text:00472B40 ; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ .text:00472B40 .text:00472B40 .text:00472B40 sub_472B40 proc near ; CODE XREF: sub_476E10+E3p .text:00472B40 ; sub_479880+159p .text:00472B40 .text:00472B40 var_1C = dword ptr -1Ch .text:00472B40 var_18 = dword ptr -18h .text:00472B40 var_14 = dword ptr -14h .text:00472B40 var_10 = dword ptr -10h .text:00472B40 var_6 = dword ptr -6 .text:00472B40 arg_0 = dword ptr 4 .text:00472B40 .text:00472B40 sub esp, 1Ch .text:00472B43 mov eax, [esp+1Ch+arg_0] .text:00472B47 push ebx .text:00472B48 push ebp .text:00472B49 mov ebp, [eax+4] .text:00472B4C mov [esp+24h+var_18], ecx .text:00472B50 mov ecx, [eax+0Ch] .text:00472B53 xor ebx, ebx .text:00472B55 cmp ebp, ecx .text:00472B57 mov [esp+24h+var_14], ecx .text:00472B5B jge loc_472BFF .text:00472B61 mov edx, [eax] .text:00472B63 mov eax, [eax+8] .text:00472B66 push esi .text:00472B67 mov [esp+28h+var_1C], edx .text:00472B6B mov [esp+28h+arg_0], eax .text:00472B6F push edi .text:00472B70 .text:00472B70 loc_472B70: ; CODE XREF: sub_472B40+B7j .text:00472B70 mov esi, [esp+2Ch+var_1C] .text:00472B74 cmp esi, [esp+2Ch+arg_0] .text:00472B78 jge short loc_472BF2 .text:00472B7A lea ebx, [ebx+0] .text:00472B80 .text:00472B80 loc_472B80: ; CODE XREF: sub_472B40+ACj .text:00472B80 push ebp .text:00472B81 push esi .text:00472B82 lea ecx, [esp+34h+var_6] .text:00472B86 push ecx .text:00472B87 mov ecx, [esp+38h+var_18] .text:00472B8B call sub_470C20 .text:00472B90 mov ecx, [eax] .text:00472B92 mov di, [eax+4] .text:00472B96 xor eax, eax .text:00472B98 mov ah, bl .text:00472B9A movzx edx, bx .text:00472B9D shr edx, 8 .text:00472BA0 mov [esp+2Ch+var_10], ecx .text:00472BA4 add esi, 1 .text:00472BA7 xor ax, word ptr dword_580DD8[edx*2] .text:00472BAF xor ax, cx .text:00472BB2 movzx edx, ax .text:00472BB5 movzx eax, dx .text:00472BB8 shr eax, 8 .text:00472BBB shr ecx, 10h .text:00472BBE xor cx, word ptr dword_580DD8[eax*2] .text:00472BC6 xor eax, eax .text:00472BC8 mov ah, dl .text:00472BCA xor cx, ax .text:00472BCD movzx ecx, cx .text:00472BD0 xor eax, eax .text:00472BD2 mov ah, cl .text:00472BD4 movzx edx, cx .text:00472BD7 shr edx, 8 .text:00472BDA xor ax, word ptr dword_580DD8[edx*2] .text:00472BE2 xor ax, di .text:00472BE5 cmp esi, [esp+2Ch+arg_0] .text:00472BE9 movzx ebx, ax .text:00472BEC jl short loc_472B80 .text:00472BEE mov ecx, [esp+2Ch+var_14] .text:00472BF2 .text:00472BF2 loc_472BF2: ; CODE XREF: sub_472B40+38j .text:00472BF2 add ebp, 1 .text:00472BF5 cmp ebp, ecx .text:00472BF7 jl loc_472B70 .text:00472BFD pop edi .text:00472BFE pop esi .text:00472BFF .text:00472BFF loc_472BFF: ; CODE XREF: sub_472B40+1Bj .text:00472BFF pop ebp .text:00472C00 mov ax, bx .text:00472C03 pop ebx .text:00472C04 add esp, 1Ch .text:00472C07 retn 4 .text:00472C07 sub_472B40 endp