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

Disassembly:
push ebp
sub esp, 0x5c
push 0x8c
mov eax, 0x66a540
call fcn.006315b1
mov esi, ecx
or dword [esi + 0x2da0], 0xffffffff
and dword [ebp + 0x5c], 0
mov ebx, dword [ebp + 0x68]
lea edi, [esi + 0x1998]
mov ecx, dword [edi]
call fcn.005e6147
test al, al
jne 0x59b206
mov ecx, dword [edi]
cmp dword [ebp + 0x5c], ebx
jne 0x59b201
call fcn.005e60af
jmp 0x59b206
call fcn.005e60be
inc dword [ebp + 0x5c]
add edi, 4
cmp dword [ebp + 0x5c], 0xa
jl 0x59b1e8
mov dword [esi + 0x2d9c], ebx
xor ebx, ebx
lea edi, [esi + 0x1ad8]
mov ecx, dword [edi]
test ecx, ecx
je 0x59b247
mov eax, dword [esi + 0x2d98]
imul eax, eax, 0xa
add eax, dword [esi + 0x2d9c]
cmp ebx, eax
jne 0x59b240
push 0xff
jmp 0x59b242
push 0
call fcn.005e6a21
inc ebx
add edi, 4
cmp ebx, 0x64
jb 0x59b220
lea eax, [esi + 0x1b8]
mov ebx, 0x1f4
mov edi, eax
mov dword [ebp + 0x68], ebx
mov ecx, dword [edi]
call fcn.005e607b
add edi, 4
dec dword [ebp + 0x68]
jne 0x59b260
lea edi, [esi + 0x988]
mov dword [ebp + 0x68], ebx
mov ecx, dword [edi]
call fcn.005e607b
add edi, 4
dec dword [ebp + 0x68]
jne 0x59b278
lea edi, [esi + 0x1158]
mov dword [ebp + 0x68], ebx
mov ecx, dword [edi]
call fcn.005e69f0
add edi, 4
dec dword [ebp + 0x68]
jne 0x59b290
lea edi, [esi + 0x2dcc]
mov ecx, edi
call fcn.00452c85
add edi, 0x5ebe8
dec ebx
jne 0x59b2a5
mov eax, dword [esi + 0x1c]
imul eax, dword [esi + 0x18]
and dword [ebp + 0x68], ebx
mov dword [ebp + 0x58], eax
test eax, eax
jle 0x59b5b9
lea eax, [esi + 0x2dd0]
lea edi, [esi + 0x1b8]
mov dword [ebp + 0x5c], eax
inc ebx
push dword [esi + 0xb4]
mov ecx, dword [edi]
push dword [esi + 0xb0]
lea eax, [esi + 0x3c]
push dword [esi + 0xac]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push dword [esi + 0x9c]
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push dword [esi + 0x64]
push dword [esi + 0x60]
push ebx
push eax
push 0
call fcn.005e6392
mov eax, dword [ebp + 0x68]
mov ecx, dword [esi + 0x18]
cdq
idiv ecx
mov ecx, dword [esi + 0xd0]
imul ecx, edx
mov edx, dword [esi + 0xd4]
add ecx, dword [esi + 0xc8]
imul edx, eax
add edx, dword [esi + 0xcc]
push edx
push ecx
mov ecx, dword [edi]
call fcn.005e6157
mov ecx, dword [edi]
push 0xff
call fcn.005e616e
push dword [esi + 0x8c]
mov ecx, dword [edi + 0x7d0]
push dword [esi + 0x88]
lea eax, [esi + 0x20]
push dword [esi + 0x84]
push dword [esi + 0x80]
push dword [esi + 0x7c]
push dword [esi + 0x78]
push dword [esi + 0x74]
push dword [esi + 0x70]
push dword [esi + 0x6c]
push dword [esi + 0x68]
push dword [esi + 0x5c]
push dword [esi + 0x58]
push ebx
push eax
push 0
call fcn.005e6392
mov eax, dword [ebp + 0x68]
mov ecx, dword [esi + 0x18]
cdq
idiv ecx
mov ecx, dword [esi + 0xc0]
imul ecx, edx
mov edx, dword [esi + 0xc4]
add ecx, dword [esi + 0xb8]
imul edx, eax
add edx, dword [esi + 0xbc]
push edx
push ecx
mov ecx, dword [edi + 0x7d0]
call fcn.005e6157
mov ecx, dword [edi + 0x7d0]
push 0xff
call fcn.005e616e
mov eax, dword [esi + 0x2d9c]
imul eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x68]
lea eax, [eax + ecx + 1]
push eax
lea eax, [ebp - 0x44]
push 0x689c4c
push eax
call fcn.00460a56
mov dword [ebp + 0x54], eax
and dword [ebp - 4], 0
lea eax, [ebp + 0x38]
push eax
call fcn.004611fe
push dword [ebp + 0x54]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp]
push eax
call fcn.0040372a
push eax
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 2
call fcn.004606c8
add esp, 0x24
mov ecx, dword [ebp + 0x5c]
push eax
add ecx, 0xfffffffc
mov byte [ebp - 4], 3
call fcn.00452d0b
push 0
push ebx
lea ecx, [ebp - 0x7c]
call fcn.00403e40
push 0
push ebx
lea ecx, [ebp]
call fcn.00403e40
push 0
push ebx
lea ecx, [ebp + 0x38]
call fcn.00403e40
or dword [ebp - 4], 0xffffffff
push 0
push ebx
lea ecx, [ebp - 0x44]
call fcn.00403e40
mov eax, dword [ebp + 0x5c]
cmp byte [eax], 0
je 0x59b580
mov eax, dword [esi + 0x2d9c]
imul eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x68]
lea eax, [eax + ecx + 1]
push eax
lea eax, [ebp - 0x98]
push 0x689c60
push eax
call fcn.00460a56
mov dword [ebp + 0x54], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 4], 4
call fcn.004611fe
push dword [ebp + 0x54]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040372a
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.004606c8
add esp, 0x24
xor ecx, ecx
inc ecx
push ecx
push ecx
mov ecx, dword [edi + 0xfa0]
push 0
push eax
mov byte [ebp - 4], 7
call fcn.005e6b6f
push 0
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00403e40
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403e40
push 0
push ebx
lea ecx, [ebp - 0x60]
call fcn.00403e40
or dword [ebp - 4], 0xffffffff
push 0
push ebx
lea ecx, [ebp - 0x98]
call fcn.00403e40
xor ecx, ecx
push ecx
mov ecx, dword [edi + 0xfa0]
xor eax, eax
push eax
call fcn.005b87d8
mov eax, dword [ebp + 0x68]
mov ecx, dword [esi + 0x18]
cdq
idiv ecx
mov ecx, dword [esi + 0xe0]
imul ecx, edx
mov edx, dword [esi + 0xe4]
add ecx, dword [esi + 0xd8]
imul edx, eax
add edx, dword [esi + 0xdc]
push edx
push ecx
mov ecx, dword [edi + 0xfa0]
call fcn.005e6a10
mov ecx, dword [edi + 0xfa0]
push 0xff
call fcn.005e6a21
cmp byte [esi + 0x14], 0
je 0x59b5a0
mov eax, dword [ebp + 0x5c]
cmp byte [eax], 0
jne 0x59b5a0
mov ecx, dword [edi]
call fcn.005e60cd
mov ecx, dword [edi + 0x7d0]
call fcn.005e60cd
inc dword [ebp + 0x68]
mov eax, dword [ebp + 0x68]
add dword [ebp + 0x5c], 0x5ebe8
add edi, 4
cmp eax, dword [ebp + 0x58]
jl 0x59b2da
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret 4