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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59bbdf
sub esp, 0x74
mov edx, dword [esp + 0x78]
mov ebx, dword [edx]
movzx ebx, byte [ebx + 0x49]
cmp bl, 0xff
je 0x59b753
mov byte [edx + 0x44], 0
mov ebp, dword [edx + 0x4c]
xor eax, eax
jmp 0x59b767
mov byte [esp + 0x88], 0
add esp, 0x74
ret
mov dword [esi + eax*4], 0xffffffff
inc eax
cmp eax, ebp
jge 0x59b77a
mov ecx, dword [edx + 0x4c]
mov esi, dword [edx + 0x48]
cmp eax, ecx
jb 0x59b75f
jmp 0x59bbd9
mov byte [esp + 0x2b], bl
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov ebx, dword [esp + 0x84]
mov dword [esp + 4], ebx
call ecx
mov eax, dword [esp + 8]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], ecx
cmp eax, 0xffffffff
jne 0x59b7ba
mov edx, 0xffffffff
xor ebx, ebx
jmp 0x59b7f0
mov eax, dword [esp + 0x7c]
mov edx, dword [eax + 0x20]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov ebp, dword [esp + 0x84]
lea esi, [ebp + ecx]
mov dword [esp + 4], esi
call edx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov ebp, dword [esp + 0x84]
test ebp, ebp
jne 0x59b819
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0xffffffff
jmp 0x59b85f
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov dword [esp + 4], ebp
call ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x78]
mov edi, ebp
lea ebp, [esi + 8]
add esi, 0x20
jmp 0x59b88a
movzx ebp, byte [esp + 0x2b]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], ebp
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x59b9b9
movzx esi, byte [esp + 0x2b]
xchg esi, eax
test al, 4
xchg esi, eax
je 0x59b8b1
test edi, edi
jne 0x59bad9
mov esi, dword [esp + 0x78]
movzx ebp, byte [esi + 0x44]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x59baed
mov dword [esp + 0x58], edi
mov ebp, dword [esi]
mov esi, dword [ebp + 0x28]
test esi, esi
je 0x59b919
cmp dword [ebp + 0x38], edx
jne 0x59b8d9
xor ebp, ebp
jmp 0x59b91b
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov ebp, eax
mov eax, dword [esp + 0x48]
jmp 0x59b91b
xor ebp, ebp
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x59b9b5
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x78]
mov ebx, dword [edx]
mov ebp, dword [esp + 0x80]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
call ecx
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x59badf
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x20]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov ebp, dword [esp + 0x58]
add eax, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 4], eax
call edx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x7c]
mov ebx, dword [edx + 0x20]
mov ebp, dword [esp + 0x80]
mov dword [esp], ebp
mov esi, dword [esp + 0x44]
lea edi, [esi + eax]
mov dword [esp + 4], edi
call ebx
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], edx
mov esi, dword [esp + 0x78]
movzx ebx, byte [esi + 0x44]
test bl, bl
jne 0x59ba3c
mov dword [esp + 0x40], eax
mov ebx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
test ebx, ebx
je 0x59b9e1
mov dword [ecx], edi
mov dword [esp + 0x3c], edi
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
mov ebx, dword [esi + 0x50]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call fcn.0059c160
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
mov dword [esp], esi
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x64]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
add edi, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x18], eax
call fcn.0059bbf0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x59bae9
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 0x4c]
test edx, edx
jne 0x59ba8d
movzx edx, byte [ecx + 0x44]
test dl, dl
jne 0x59bae5
mov edx, dword [esp + 0x38]
cmp edx, 0xffffffff
jne 0x59baa1
mov eax, edx
mov ebx, dword [esp + 0x30]
jmp 0x59b86d
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
lea esi, [ebp + ebx]
mov dword [esp + 4], esi
call ecx
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x78]
jmp 0x59b86d
mov esi, dword [esp + 0x78]
jmp 0x59baed
mov esi, dword [esp + 0x78]
jmp 0x59baed
mov esi, ecx
jmp 0x59baed
mov esi, dword [esp + 0x78]
nop
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x6c], edx
mov ebx, dword [ecx + 0x10]
mov dword [esp + 0x58], ebx
xor eax, eax
jmp 0x59bb05
inc eax
cmp eax, ebx
jge 0x59bbc3
lea ebp, [edx + eax*8]
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x59bb04
mov dword [esp + 0x68], ebp
mov edi, ecx
mov ecx, dword [esi + 0x3c]
lea edx, [ecx + 1]
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x40]
cmp ebp, edx
jae 0x59bb85
mov dword [esp + 0x54], eax
lea eax, [0x5fdd40]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.00447740
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x78]
mov dword [ebx + 0x40], edx
mov edx, dword [0x7e77b0]
test edx, edx
jne 0x59bb71
mov dword [ebx + 0x38], eax
jmp 0x59bb79
lea edi, [ebx + 0x38]
call fcn.0045e950
mov esi, ebx
mov edi, dword [esp + 0x64]
mov ebx, eax
mov eax, dword [esp + 0x54]
lea edx, [ecx + 1]
mov dword [esi + 0x3c], edx
mov edx, dword [0x7e77b0]
lea ebp, [ebx + ecx*4]
test edx, edx
jne 0x59bba1
mov edx, dword [esp + 0x68]
mov dword [ebx + ecx*4], edx
jmp 0x59bbb4
mov ecx, edi
mov edi, ebp
mov edx, eax
mov eax, dword [esp + 0x68]
call fcn.0045e950
mov eax, edx
mov edi, ecx
mov ecx, edi
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x58]
jmp 0x59bb04
mov dword [ecx + 0x10], 0
movzx eax, byte [esi + 0x44]
mov byte [esp + 0x88], al
add esp, 0x74
ret
call fcn.0045e9d0
nop
call fcn.0045d540
jmp fcn.0059b720