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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x65bfc8]
push edi
mov edi, dword [0x650a58]
mov dword [ebp - 0x81c], ecx
mov dword [ebp - 0x80c], edx
test edi, edi
je 0x59ab84
push ebx
push esi
jmp 0x59a8c0
mov eax, dword [edi + 0x38]
cmp eax, dword [ecx + 0x3c]
jne 0x59ab46
push 0x400
push edx
mov dword [edi + 0x7c], ecx
call fcn.0054332a
add esp, 8
lea esi, [eax + 1]
push 0x60f334
push ecx
lea edx, [ebp - 0x804]
mov ecx, edi
mov dword [ebp - 0x818], esi
call fcn.0059e270
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0054332a
lea ecx, [esi + esi]
push 0xac
lea ebx, [eax + 1]
mov dword [ebp - 0x808], ecx
call fcn.005421d4
mov esi, eax
add esp, 0x14
test esi, esi
je 0x59ab82
push 0xac
push 0
push esi
call fcn.00546fa0
mov eax, dword [ebp - 0x808]
add esp, 0xc
test eax, eax
je 0x59a95a
push eax
call fcn.005421d4
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x59ab79
lea eax, [ebx + ebx]
test eax, eax
je 0x59a975
push eax
call fcn.005421d4
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x59ab65
mov edx, dword [ebp - 0x818]
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x44], 0xffffffff
mov byte [esi + 0x8c], 0xff
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov byte [esi + 0x9b], 0x13
mov dword [esi + 0x2c], 0
mov byte [esi + 0xa9], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov eax, dword [esi]
mov dword [ebp - 0x810], eax
test edx, edx
je 0x59aa6a
mov ecx, dword [ebp - 0x80c]
lea eax, [ecx + 2]
mov dword [ebp - 0x814], eax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59aa10
sub ecx, dword [ebp - 0x814]
sar ecx, 1
cmp ecx, edx
jae 0x59aa3e
push dword [ebp - 0x80c]
push edx
push dword [ebp - 0x810]
call fcn.00543349
add esp, 0xc
jmp 0x59aa6a
lea eax, [edx - 1]
push eax
push dword [ebp - 0x80c]
push edx
push dword [ebp - 0x810]
call fcn.00543d6d
mov eax, dword [ebp - 0x810]
mov ecx, dword [ebp - 0x808]
add esp, 0x10
xor edx, edx
mov word [ecx + eax - 2], dx
mov edx, dword [esi + 4]
mov dword [ebp - 0x808], edx
test ebx, ebx
je 0x59aad5
lea ecx, [ebp - 0x804]
lea eax, [ecx + 2]
mov dword [ebp - 0x814], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59aa86
sub ecx, dword [ebp - 0x814]
sar ecx, 1
cmp ecx, ebx
jae 0x59aab0
lea eax, [ebp - 0x804]
push eax
push ebx
push edx
call fcn.00543349
add esp, 0xc
jmp 0x59aad5
lea eax, [ebx - 1]
push eax
lea eax, [ebp - 0x804]
push eax
push ebx
push edx
call fcn.00543d6d
mov eax, dword [ebp - 0x808]
add esp, 0x10
lea ecx, [ebx + ebx]
xor edx, edx
mov word [ecx + eax - 2], dx
mov ecx, dword [ebp - 0x81c]
mov dword [esi + 0x84], ecx
mov al, byte [ecx + 0x9a]
inc al
mov byte [esi + 0x9a], al
mov byte [esi + 0x50], 3
cmp byte [edi + 0xa1], 0
jne 0x59ab06
mov eax, dword [edi + 0x84]
test eax, eax
jne 0x59ab08
mov eax, edi
mov edx, dword [ebp - 0x80c]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 0x818]
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ebx
mov byte [esi + 0x8f], 0xff
cmp dword [0x650a58], 0
je 0x59ab3a
mov eax, dword [0x650a60]
mov dword [eax + 0x80], esi
jmp 0x59ab40
mov dword [0x650a58], esi
mov dword [0x650a60], esi
mov edi, dword [edi + 0x80]
test edi, edi
jne 0x59a8c0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x808]
test ecx, ecx
je 0x59ab79
push dword [esi]
call fcn.00541b50
add esp, 4
push esi
call fcn.00541b50
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00541b41
mov esp, ebp
pop ebp
ret