Function at 0x4599b0
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 0x4599e0
mov dword [eax], 0
mov dword [eax + 4], 0
mov ebx, dword [esp + 0x9c]
push ebp
call fcn.0045d010
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x459a09
mov eax, 0xfffffffc
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x28
mov ebx, esi
call fcn.00463540
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x459cf1
mov ecx, eax
call fcn.00463600
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 0x459a89
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 0x459ce4
lea eax, [ecx + 0x10]
mov dword [esp + 0x24], eax
jmp 0x459aa6
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 0x459acc
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
jmp 0x459b1a
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 0x459b0f
ja 0x459b50
test ebp, ebp
ja 0x459b50
cmp dword [esp + 0x10], 0
jne 0x459ce4
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 0x459aa2
jmp 0x459ce4
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 0x459b78
jb 0x459b6e
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x28]
jae 0x459b78
sub ebp, ecx
sbb ebx, edx
mov dword [esp + 0x6c], ebx
jmp 0x459b86
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.0045a200
mov dword [esp + 0x10], eax
test eax, eax
jne 0x459ce4
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.0043ecb0
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 0x459c60
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.0045b0d0
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x459c9e
add dword [eax], ebp
mov edx, dword [esp + 0x6c]
adc dword [eax + 4], edx
cmp dword [esp + 0x14], 0
jne 0x459ce0
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 0x459b40
ja 0x459cd3
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x30], ecx
jb 0x459b40
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
jmp 0x459b1a
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push eax
call sub.mfc90u.dll_delete__
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.00426e70
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 0x459d26
mov eax, 0xfffffffb
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x28