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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x34], ebx
mov dword [esp + 8], 0
cmp byte [esi + 0x42], 4
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 4]
mov dword [esp + 0xc], ecx
jne 0x47a915
mov eax, dword [esi + 0x3c]
pop esi
pop ebx
add esp, 8
ret
test byte [esi + 0x40], 0x20
je 0x47a934
push esi
push dword [esi + 0x34]
push ecx
call fcn.004734d0
add esp, 0xc
test eax, eax
jne 0x47aae9
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x48], 0
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
jne 0x47a99f
push 0
push ebp
push edi
push eax
call fcn.00465c80
add esp, 0x10
test byte [esi + 0x40], 2
je 0x47a97a
test ebp, ebp
jl 0x47a97a
jg 0x47a961
test edi, edi
je 0x47a97a
mov eax, edi
mov ecx, ebp
sub eax, 1
sbb ecx, 0
cmp dword [esi + 0x10], eax
jne 0x47a97a
cmp dword [esi + 0x14], ecx
jne 0x47a97a
or ebx, 0xffffffff
jmp 0x47a9c7
test ebx, ebx
jne 0x47a9c7
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x3c]
push ebp
push edi
push ebx
push esi
call fcn.0047b220
add esp, 0x18
test eax, eax
je 0x47a9c3
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
test ebx, ebx
jne 0x47a9c7
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x3c]
push ebp
push edi
push dword [esp + 0x30]
push esi
call fcn.00446ac0
add esp, 0x18
test eax, eax
jne 0x47aae7
mov ebx, dword [esp + 0x3c]
movsx eax, byte [esi + 0x44]
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x38]
push dword [esp + 0x38]
mov edi, dword [esi + eax*4 + 0x78]
push dword [esp + 0x38]
mov eax, dword [esp + 0x24]
push ebp
push dword [esp + 0x38]
push dword [esp + 0x38]
mov eax, dword [eax + 0x50]
push eax
push edi
mov dword [esp + 0x60], eax
call fcn.0044fa00
mov ecx, eax
add esp, 0x24
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x47aae5
movsx eax, byte [esi + 0x44]
lea ecx, [esi + eax*2]
movzx eax, word [ecx + 0x50]
mov ebp, eax
test ebx, ebx
jne 0x47aa86
push dword [edi + 0x48]
call fcn.00495010
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x47aae5
mov eax, dword [edi + 0x40]
mov ebx, dword [esp + 0x3c]
mov ax, word [eax + ebp*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x14]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
cmp byte [edi + 5], 0
jne 0x47aa57
mov eax, dword [ecx]
mov dword [ebx], eax
lea eax, [esp + 0x3c]
push eax
push ecx
push edi
call fcn.00448240
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
movzx eax, word [esp + 0x4c]
push eax
push ebp
push edi
call fcn.0044d1d0
mov ecx, dword [esp + 0x38]
add esp, 0x1c
test ecx, ecx
jne 0x47aae5
jmp 0x47aa9b
mov ebx, dword [esp + 0x3c]
jns 0x47aa9b
cmp word [edi + 0x12], 0
jbe 0x47aa9b
inc eax
mov word [ecx + 0x50], ax
movzx ebp, ax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push dword [esp + 0x1c]
push ebx
push ebp
push edi
call fcn.00465ab0
mov ecx, dword [esp + 0x38]
xor eax, eax
add esp, 0x1c
mov word [esi + 0x24], ax
test ecx, ecx
jne 0x47aae5
cmp byte [edi + 1], al
je 0x47aae5
and byte [esi + 0x40], 0xfd
push esi
call fcn.004440f0
mov ecx, eax
add esp, 4
movsx eax, byte [esi + 0x44]
mov eax, dword [esi + eax*4 + 0x78]
mov byte [eax + 1], 0
mov byte [esi + 0x42], 0
mov eax, ecx
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret