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

Disassembly:
push 0xffffffffffffffff
push 0x468fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
push 0x46e6d8
push 1
mov dword [esp + 0x1c], edi
call fcn.004549c0
mov esi, dword [esp + 0x78]
xor ebx, ebx
add esp, 8
cmp esi, ebx
jne 0x403840
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 4
push ebp
call dword [fcn.0046e328]
push eax
call dword [fcn.0046e330]
mov ebp, eax
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x1c]
push eax
push 0x18
push esi
mov dword [esp + 0x78], ebx
call dword [fcn.0046e0c4]
cmp eax, 0x18
je 0x40388d
cmp ebp, ebx
je 0x403876
push ebp
call dword [fcn.0046e0cc]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 4
push 0x28
call fcn.004587d4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40386b
or ecx, 0xffffffff
mov edx, esi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], ecx
mov dword [esi], 0x28
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], ecx
mov word [esi + 0xc], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2e]
cmp ax, cx
ja 0x4038e8
mov eax, ecx
cmp ax, 0x10
mov word [esi + 0xe], ax
je 0x4038fd
cmp ax, 0x20
je 0x4038fd
mov dword [esi + 0x10], ebx
jmp 0x403904
mov dword [esi + 0x10], 3
mov ebx, dword [fcn.0046e0b4]
push 4
push ebp
call ebx
push 8
push ebp
mov dword [esp + 0x1c], eax
call ebx
imul eax, eax, 0x3e8
cdq
idiv dword [esp + 0x14]
push 6
push ebp
mov dword [esi + 0x18], eax
call ebx
push 0xa
push ebp
mov dword [esp + 0x1c], eax
call ebx
imul eax, eax, 0x3e8
cdq
idiv dword [esp + 0x14]
push esi
mov ecx, edi
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
call fcn.004025b0
push esi
mov ecx, edi
mov dword [esi + 0x14], eax
call fcn.00402ea0
movzx edx, ax
add edx, 0x28
push edx
push esi
mov ecx, edi
call fcn.00401ba0
mov ebx, eax
test ebx, ebx
jne 0x4039a1
push esi
call fcn.004587e6
add esp, 4
test ebp, ebp
je 0x403876
push ebp
call dword [fcn.0046e0cc]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 4
cmp dword [ebx], 0x28
je 0x4039c8
push 0x39b
push 0x46e564
lea ecx, [esp + 0x3c]
call fcn.00454840
push 0x480dd4
lea eax, [esp + 0x38]
push eax
call fcn.0045867d
push esi
call fcn.004587e6
mov edi, dword [ebx + 0x14]
add esp, 4
test edi, edi
je 0x403a48
push edi
call fcn.004587d4
mov esi, eax
add esp, 4
test esi, esi
je 0x403a48
mov ecx, edi
mov edx, ecx
shr ecx, 2
or eax, 0xffffffff
mov edi, esi
rep stosd dword es:[edi], eax
push 0
push ebx
mov ecx, edx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [ebx + 8]
mov edi, dword [esp + 0x80]
push eax
push 0
push edi
push ebp
call dword [fcn.0046e0b8]
test eax, eax
push esi
jne 0x403a71
call fcn.004587e6
push ebx
call fcn.004587e6
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00402b20
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 4
push ebx
call fcn.004587e6
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00402b20
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 4
call fcn.004587e6
mov ecx, dword [esp + 0x1c]
add esp, 4
push edi
push ebx
push 0x46e6d6
push 0
push 3
call fcn.00403d90
test eax, eax
je 0x403a48
lea ecx, [esp + 0x10]
call fcn.00402b20
mov ecx, dword [esp + 0x64]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 4