Function at 0x474a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], 0
and dl, 2
mov byte [esp + 0xb], dl
push edi
mov eax, dword [esi]
movsx edx, byte [esi + 0x44]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 4]
mov ebx, dword [esi + edx*4 + 0x78]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x50]
movzx ecx, word [eax + edx*2]
lea eax, [eax + edx*2]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebx
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x14]
movzx edi, cx
and edi, eax
add edi, dword [ebx + 0x38]
cmp byte [ebx + 4], 0
mov dword [esp + 0x2c], edi
jne 0x474b26
and byte [esi + 0x40], 0xf1
xor eax, eax
cmp byte [esi + 0x42], 1
mov dword [esp + 0x14], 0
mov word [esi + 0x22], ax
jne 0x474b13
movzx ecx, word [esi + edx*2 + 0x50]
test cx, cx
je 0x474b13
mov eax, dword [esi + edx*4 + 0x78]
cmp byte [eax + 4], 0
je 0x474b13
lea eax, [ecx - 1]
mov word [esi + edx*2 + 0x50], ax
jmp 0x474b26
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.00471220
test eax, eax
jne 0x474db9
mov al, byte [esi + 0x40]
test al, 0x20
je 0x474b59
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x34]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x474b54
jmp 0x474b40
cmp ecx, esi
je 0x474b4d
test edx, edx
je 0x474bb6
cmp dword [ecx + 0x34], edx
je 0x474bb6
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x474b40
and al, 0xdf
mov byte [esi + 0x40], al
cmp dword [esi + 0x48], 0
jne 0x474b73
push dword [esi + 0x14]
mov ecx, dword [esp + 0x14]
xor edx, edx
push dword [esi + 0x10]
call fcn.0046c460
add esp, 8
cmp byte [esp + 0xf], 0
je 0x474bdd
cmp byte [ebx + 4], 0
je 0x474bce
push edi
push ebx
call fcn.0046ce40
movzx edi, word [ebx + 0x10]
add esp, 8
movzx ecx, ax
add edi, 2
mov eax, dword [esp + 0x18]
add edi, ecx
mov ecx, dword [eax + 0x28]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
shr edx, 1
cmp edi, edx
jg 0x474bce
mov dword [esp + 0x28], 1
jmp 0x474bdd
test ecx, ecx
je 0x474b54
push esi
call fcn.0046c660
add esp, 4
test eax, eax
je 0x474b59
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0046c5b0
test eax, eax
jne 0x474db9
mov ecx, dword [ebx + 0x48]
call fcn.004684e0
test eax, eax
jne 0x474db9
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.00471cc0
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, ebx
lea eax, [esp + 0x14]
push eax
movzx eax, word [esp + 0x14]
push eax
call fcn.004721f0
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x474db9
cmp byte [ebx + 4], al
jne 0x474cf7
movsx eax, byte [esi + 0x44]
mov ebx, dword [esi + eax*4 + 0x78]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
movzx ecx, word [ebx + 0x12]
mov eax, dword [esi + eax*4 + 0x7c]
mov edx, dword [ebx + 0x38]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x14]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [esp + 0x30], ecx
cmp ecx, eax
jae 0x474c87
mov ecx, 0xfa10
call fcn.004d12b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x4c]
push ecx
push ebx
call eax
mov ecx, dword [esp + 0x18]
movzx ebx, ax
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx + 0x48]
mov edi, dword [eax + 0x54]
call fcn.004684e0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x38]
lea eax, [ebx + 4]
push edi
push eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffffc
push eax
call fcn.00472320
add esp, 0x1c
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
mov ecx, eax
push ebx
movzx edx, word [eax + 0x12]
dec edx
call fcn.004721f0
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x474db9
mov ebx, dword [esp + 0x20]
mov ecx, esi
call fcn.00474680
mov edx, eax
test edx, edx
jne 0x474db7
movsx ecx, byte [esi + 0x44]
cmp ecx, dword [esp + 0x1c]
jle 0x474d61
mov ebx, dword [esp + 0x1c]
mov cl, byte [esi + 0x44]
movsx eax, cl
dec cl
mov eax, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], cl
test eax, eax
je 0x474d48
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x474d3c
call fcn.004668d0
jmp 0x474d41
call fcn.00462670
mov ecx, edi
call fcn.00467a40
movsx eax, byte [esi + 0x44]
cmp eax, ebx
jg 0x474d16
mov ecx, esi
call fcn.00474680
mov ebx, dword [esp + 0x20]
mov edx, eax
test edx, edx
jne 0x474db7
cmp dword [esp + 0x28], 0
je 0x474da3
mov byte [esi + 0x42], 2
movzx eax, word [ebx + 0x12]
cmp dword [esp + 0x24], eax
jl 0x474d93
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x3c], 0xffffffff
mov ax, word [ebx + 0x12]
dec ax
mov word [ecx], ax
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x3c], 1
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004708d0
cmp byte [esp + 0xf], 0
mov edx, eax
je 0x474db7
mov byte [esi + 0x42], 3
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret