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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov eax, dword [ebp]
push esi
push edi
push 0x4b07bc
push eax
call dword [0x4a548c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x473fe4
mov ecx, dword [ebp]
push 0x4b07bc
push ecx
call dword [0x4a5494]
movzx edx, byte [ebp + 7]
mov esi, dword [esp + 0x60]
xor ebx, ebx
mov edi, 0x80000000
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
cmp dword [esi + 0x10], ebx
jbe 0x473df7
mov dword [esp + 0x64], ebx
mov eax, dword [esi + 0x18]
add eax, dword [esp + 0x64]
movzx edx, byte [eax + 6]
cmp edx, dword [esp + 0x1c]
jne 0x473dec
mov edx, dword [eax]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [0x4a562c]
mov eax, dword [esp + 0x50]
cmp edi, eax
jge 0x473dde
mov edi, eax
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x14], eax
jge 0x473dec
mov dword [esp + 0x14], eax
add dword [esp + 0x64], 0x14
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x473db5
mov ecx, dword [ebp]
xor ebx, ebx
cmp edi, 0x80000000
setne bl
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [0x4a562c]
mov al, byte [esp + 0x18]
test al, 1
je 0x473e2c
test ebx, ebx
je 0x473e2c
mov edx, dword [esi + 0x78]
lea ecx, [edx + edi + 4]
mov dword [esp + 0x30], ecx
test al, 2
je 0x473e43
test ebx, ebx
je 0x473e43
mov edx, dword [esi + 0x7c]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 4]
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 4]
push 2
lea edx, [esp + 0x2c]
push edx
push eax
push 0
call dword [0x4a5498]
mov ecx, dword [ebp]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
sub edi, dword [esp + 0x28]
sub esi, dword [esp + 0x2c]
push 0xfffffffffffffff0
push ecx
call dword [0x4a5670]
mov ebx, eax
and eax, 0x80
mov dword [esp + 0x20], eax
neg eax
sbb eax, eax
add eax, 2
test dword [esp + 0x18], eax
setne al
mov byte [esp + 0x64], al
test al, al
je 0x473eb1
test bl, 2
jne 0x473eb1
mov eax, dword [ebp]
push 0
push 0
push 0x132c
push eax
call dword [0x4a5668]
mov dword [esp + 0x14], eax
jmp 0x473eb9
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [ebp]
push 1
push esi
push edi
push ecx
push edx
push eax
call dword [0x4a5628]
cmp byte [esp + 0x64], 0
je 0x473f81
mov ecx, dword [ebp]
push 0
push 0
push 0x132c
push ecx
call dword [0x4a5668]
mov dword [esp + 0x64], eax
cmp dword [esp + 0x14], eax
je 0x473f81
mov eax, dword [ebp]
lea edx, [esp + 0x38]
push edx
push 0
push 0x130a
push eax
call dword [0x4a5668]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
and ebx, 0x100
neg ebx
sbb ebx, ebx
and ebx, 3
cmp dword [esp + 0x20], 0
je 0x473f51
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x14]
imul ebx, eax
add edi, ebx
lea eax, [edx + edi]
mov dword [esp + 0x30], eax
jmp 0x473f71
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x14]
imul ebx, eax
add esi, ebx
lea eax, [ecx + esi]
mov dword [esp + 0x34], eax
push 1
push esi
push edi
push ecx
mov ecx, dword [ebp]
push edx
push ecx
call dword [0x4a5628]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x10]
lea edx, [ecx + ecx*4]
mov ecx, dword [eax + 0x18]
movzx edx, byte [ecx + edx*4 - 0xe]
cmp edx, dword [esp + 0x1c]
je 0x473fa0
cmp dword [esp + 0x24], 0
jne 0x473fe4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x80], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edi
mov dword [eax + 0x8c], esi
cmp dword [eax + 0x90], ecx
jge 0x473fd2
mov dword [eax + 0x90], ecx
mov ecx, dword [esp + 0x34]
cmp dword [eax + 0x94], ecx
jge 0x473fe4
mov dword [eax + 0x94], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8