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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor ebp, ebp
mov esi, ecx
cmp ebx, ebp
mov dword [esp + 0x10], esi
jne 0x59a661
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
mov eax, dword [esi + 8]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x2c], ebp
mov ecx, dword [eax + 0x19c]
mov eax, dword [eax + 0x1f4]
push eax
call fcn.004f1ba0
mov edx, dword [esi]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x50]
mov ecx, esi
push eax
call dword [edx + 8]
lea ecx, [ebx + 0xf0]
lea edx, [esi + 0x54]
push ebp
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x208]
mov dword [esi + 0x64], eax
mov eax, dword [ebx]
push ebp
mov ecx, ebx
call dword [eax + 0x210]
mov dword [esi + 0x68], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x200]
mov dword [esi + 0x6c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1e8]
test eax, eax
je 0x59a6f9
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1e8]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x80]
mov dword [esi + 0x70], eax
jmp 0x59a6fc
mov dword [esi + 0x70], ebp
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0x1e0]
mov dword [esi + 0x74], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1f0]
mov dword [esi + 0x78], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1f8]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x7c], eax
call fcn.004ba090
mov edi, eax
xor esi, esi
cmp edi, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
jle 0x59a85c
push esi
mov ecx, ebx
call fcn.004ba110
mov ecx, dword [eax + 0x8c]
xor ebp, ebp
test ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
jle 0x59a84f
jmp 0x59a766
mov eax, dword [esp + 0x10]
push ebp
mov ecx, eax
call fcn.0056aa40
push 0x28
mov esi, eax
call fcn.005bbdc5
add esp, 4
test eax, eax
je 0x59a789
mov ecx, eax
call fcn.0059a1c0
mov edi, eax
jmp 0x59a78b
xor edi, edi
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x208]
mov dword [edi + 4], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x208]
mov dword [edi + 8], eax
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x210]
mov dword [edi + 0xc], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x210]
mov dword [edi + 0x10], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x200]
mov dword [edi + 0x14], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1e8]
test eax, eax
je 0x59a7fb
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1e8]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x80]
mov dword [edi + 0x18], eax
jmp 0x59a802
mov dword [edi + 0x18], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1e0]
mov dword [edi + 0x1c], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1f0]
mov dword [edi + 0x20], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1f8]
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x24], eax
add ecx, 0x3c
push edi
mov edx, dword [ecx + 8]
push edx
call fcn.005ba96b
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x59a762
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
inc esi
cmp esi, edi
mov dword [esp + 0x24], esi
jl 0x59a740
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4