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

Disassembly:
sub esp, 0x88
mov eax, dword [esp + 0xac]
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov dword [esp + 0x10], 1
test eax, eax
je 0x459970
mov dword [eax], 0
mov dword [eax + 4], 0
mov ebx, dword [esp + 0x9c]
push ebp
call fcn.0045cf60
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x459999
mov eax, 0xfffffffc
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x28
mov ebx, esi
call fcn.00463530
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x459c81
mov ecx, eax
call fcn.004635f0
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x78], 1
test ebp, 0xa00
je 0x459a19
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
cmp dword [ecx], eax
jbe 0x459c74
lea eax, [ecx + 0x10]
mov dword [esp + 0x24], eax
jmp 0x459a36
mov ebx, dword [esp + 0x38]
mov ecx, dword [eax + 8]
and ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edx
cmp ecx, 0xffffffff
jne 0x459a5c
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
jmp 0x459aaa
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebp, ecx
sub ebp, ebx
mov ebx, edx
sbb ebx, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
test ebx, ebx
jb 0x459a9f
ja 0x459ae0
test ebp, ebp
ja 0x459ae0
cmp dword [esp + 0x10], 0
jne 0x459c74
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
inc ecx
add eax, 0x10
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
cmp ecx, dword [edx]
jb 0x459a32
jmp 0x459c74
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x70], eax
mov eax, ebx
sbb eax, edx
cmp eax, dword [esp + 0x2c]
ja 0x459b08
jb 0x459afe
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x28]
jae 0x459b08
sub ebp, ecx
sbb ebx, edx
mov dword [esp + 0x6c], ebx
jmp 0x459b16
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
mov ebx, eax
mov eax, dword [esp + 0xb4]
add ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0xa0]
adc edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0x20]
push ebx
push ebp
push eax
mov eax, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push eax
push edx
mov edx, dword [esp + 0xe0]
push ecx
mov ecx, dword [esp + 0xc0]
push esi
push ecx
push edi
mov ecx, 1
call fcn.0045a190
mov dword [esp + 0x10], eax
test eax, eax
jne 0x459c74
add dword [esp + 0x40], ebp
push ebx
push ebp
adc dword [esp + 0x4c], ebx
add dword [esp + 0xac], ebp
lea esi, [edi + 0x120]
adc dword [esp + 0xb0], ebx
call fcn.0043ef70
add dword [edi + 0x50], ebp
mov edx, dword [edi + 0x50]
mov ecx, dword [edi + 0x48]
adc dword [edi + 0x54], ebx
add dword [esp + 0x48], ebp
mov eax, dword [edi + 0x54]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x2c]
adc dword [esp + 0x4c], ebx
mov dword [esp + 0x88], edx
mov edx, dword [edi + 0x4c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x14], 0
test eax, eax
je 0x459bf0
mov ecx, dword [edi + 0x30]
push ecx
lea edx, [esp + 0x7c]
push edx
push 1
call eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
push edx
push eax
push ecx
mov esi, edi
call fcn.0045b060
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x459c2e
add dword [eax], ebp
mov edx, dword [esp + 0x6c]
adc dword [eax + 4], edx
cmp dword [esp + 0x14], 0
jne 0x459c70
mov eax, dword [esp + 0x28]
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
adc eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x54]
jb 0x459ad0
ja 0x459c63
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x30], ecx
jb 0x459ad0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
jmp 0x459aaa
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00472d5c
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00426dc0
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
mov ecx, edi
mov dword [edi + 0x88], 1
call eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x459cb6
mov eax, 0xfffffffb
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x28