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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x3c]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x4208df
lea ebp, [edi + 0x134]
lea ebx, [edi + 0x44]
push ebx
mov ecx, 0x4c0378
call fcn.00442fa0
cmp eax, dword [0x4c037c]
mov dword [esp + 0x14], eax
je 0x4205f6
cmp dword [eax + 0x24], 0x10
mov ecx, dword [eax + 0x20]
jb 0x4205da
mov eax, dword [eax + 0x10]
jmp 0x4205dd
add eax, 0x10
push ecx
push eax
mov eax, dword [ebx + 0x14]
push eax
push 0
mov ecx, ebx
call fcn.00402d10
test eax, eax
jl 0x4205f6
lea eax, [esp + 0x14]
jmp 0x420604
mov ecx, dword [0x4c037c]
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
mov eax, dword [eax]
cmp eax, dword [0x4c037c]
jne 0x420612
xor esi, esi
jmp 0x420617
call dword [eax + 0x28]
mov esi, eax
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
mov edx, dword [eax + esi + 4]
lea ecx, [eax + esi + 4]
mov dword [esp + 0x14], esi
call dword [edx]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x40]
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x42063e
xor edx, edx
jmp 0x420646
mov edx, dword [ebp + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x420663
mov eax, dword [ebp + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x420663
mov eax, dword [ebp + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebp + 8], eax
jmp 0x420675
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, ebp
call fcn.00404860
mov eax, dword [edi + 0x88]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xf4]
mov eax, dword [edi + 0x8c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xf8]
mov ecx, dword [edi + 0x84]
mov edx, dword [edi + 0x80]
mov eax, dword [edi + 0x7c]
mov ebx, dword [esi]
push ecx
mov ecx, dword [edi + 0x78]
push edx
push eax
push ecx
call fcn.0042d650
fstp dword [esp + 4]
mov edx, dword [edi + 0x74]
mov eax, dword [edi + 0x70]
add esp, 4
push edx
push eax
call fcn.0042d650
fstp dword [esp + 4]
mov ecx, dword [edi + 0x6c]
mov edx, dword [edi + 0x68]
add esp, 4
push ecx
push edx
call fcn.0042d650
fstp dword [esp + 4]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x60]
add esp, 4
push eax
push ecx
call fcn.0042d650
fstp dword [esp + 4]
add esp, 4
mov ecx, esi
call dword [ebx + 0xf0]
mov eax, dword [edi + 0xac]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xfc]
mov eax, dword [edi + 0xb4]
mov ecx, dword [edi + 0xb0]
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + pe_nt_image_headers32]
mov eax, dword [edi + 0x1e8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x1f0]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x90]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00403a90
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xe8]
cmp byte [edi + 0x174], bl
je 0x420783
mov eax, dword [esi]
lea ecx, [edi + 0x178]
push ecx
mov ecx, esi
call dword [eax + 0x128]
mov edx, dword [esi]
sub esp, 0x10
lea eax, [edi + 0x144]
mov ebx, dword [eax]
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x108]
sub esp, 0x14
mov eax, esp
lea ecx, [eax + 4]
mov dword [eax], fcn.0042be20
lea eax, [edi + 0x158]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x28], esp
call dword [edx + 0x10c]
mov edx, dword [esi]
lea eax, [edi + 0x1b4]
push eax
mov ecx, esi
call dword [edx + 0x208]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xec]
mov ecx, dword [edi + 0x130]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x114]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00403a90
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x104]
mov ecx, dword [edi + 0xc4]
mov edx, dword [edi + 0xc0]
mov eax, dword [esi]
push ecx
mov ecx, dword [edi + 0xbc]
push edx
mov edx, dword [edi + 0xb8]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x114]
mov ecx, dword [edi + 0xd4]
mov edx, dword [edi + 0xd0]
mov eax, dword [esi]
push ecx
mov ecx, dword [edi + 0xcc]
push edx
mov edx, dword [edi + 0xc8]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x118]
mov ecx, dword [edi + 0xe4]
mov eax, dword [esi]
mov edx, dword [edi + 0xe0]
push ecx
mov ecx, dword [edi + 0xdc]
push edx
mov edx, dword [edi + 0xd8]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x11c]
mov ecx, dword [edi + 0xe8]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x120]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x2c0]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4205b2
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret