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

Disassembly:
push edi
push esi
sub esp, 0x6c
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
call fcn.00401300
mov ecx, 1
cmp dword [eax + 0x84], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
je 0x4021c2
mov eax, 1
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 0x80]
mov esi, dword [esp + 0x64]
add esi, edx
mov edi, dword [esp + 0x64]
mov edx, dword [edi + edx + 0xc]
cmp edx, 0
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], eax
je 0x4021c2
mov eax, 1
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
jmp 0x40205b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add ecx, 0x14
mov edx, dword [esp + 0x3c]
mov esi, dword [edx + 0x20]
cmp esi, 0
mov edi, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x58], eax
je 0x4021c2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x64]
add esi, edx
mov edx, esp
mov dword [edx], esi
mov edx, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
call edx
sub esp, 4
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x58], ecx
je 0x4021c2
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
cmp ecx, 0
mov dword [esp + 0x30], ecx
je 0x4020c3
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x30]
add eax, ecx
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x3c]
add edx, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
jmp 0x4020d8
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x3c]
add eax, dword [ecx + 0x10]
mov edx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
cmp edx, 0
mov esi, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x1c], ecx
je 0x40202e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp edx, 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
jge 0x40213f
mov eax, dword [esp + 0x10]
and eax, 0xffff
mov ecx, esp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx], eax
mov ecx, dword [esp + 0x60]
call ecx
sub esp, 8
mov dword [esp + 0xc], eax
jmp 0x402164
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x10]
add eax, ecx
add eax, 2
mov edx, esp
mov dword [edx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [edx], eax
mov edx, dword [esp + 0x60]
call edx
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, dword [esp + 0x14]
mov dword [edx], eax
cmp eax, 0
mov dword [esp + 8], ecx
je 0x4021ab
mov eax, dword [esp + 0x18]
add eax, 4
mov ecx, dword [esp + 0x14]
add ecx, 4
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 4]
cmp esi, 0
mov edi, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 8], edi
jne 0x4020ff
mov eax, dword [esp + 8]
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], ecx
jne 0x40202e
mov eax, dword [esp + 0x58]
add esp, 0x6c
pop esi
pop edi
ret