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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x59e12b
sub esp, 0xb0
mov eax, 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x60]
test ecx, ecx
jne 0x59e0b5
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0059d520
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x59e03c
mov eax, dword [esp + 0xb4]
mov dword [eax + 4], ecx
mov ecx, dword [0x749b10]
test ecx, ecx
jne 0x59e024
mov dword [eax], edx
mov ecx, dword [eax + 0x50]
lea ebx, [eax + 0x50]
test ecx, ecx
jne 0x59dfc2
mov dword [esp + 0x74], ebx
mov ecx, dword [eax + 0x5c]
mov ebp, dword [eax + 0x58]
test ebp, ebp
jne 0x59df0f
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea ecx, [0x61ea3c]
mov dword [esp + 0x80], ecx
lea ecx, [0x61ea40]
mov dword [esp + 0x84], ecx
lea ecx, [0x61ea38]
mov dword [esp + 0x88], ecx
xor ecx, ecx
jmp 0x59d937
mov ebp, dword [esp + 0x38]
lea ecx, [ebp + 1]
mov ebx, dword [esp + 0x74]
cmp ecx, 3
jge 0x59dab4
mov dword [esp + 0x38], ecx
lea ebx, [esp + 0x80]
mov edx, dword [ebx + ecx*4]
mov dword [esp], eax
mov ebp, dword [edx]
call ebp
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 4]
test ecx, ecx
jne 0x59da3b
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x6c]
mov ebp, dword [eax + 0x70]
mov esi, dword [eax + 0x74]
lea edi, [eax + 0x6c]
mov edx, edi
lea edi, [ebp + 1]
cmp edi, esi
jg 0x59d9b5
lea esi, [ebp + 1]
mov dword [eax + 0x70], esi
lea esi, [ecx + ebp*4]
mov edi, dword [0x749b10]
test edi, edi
jne 0x59d99d
mov dword [ecx + ebp*4], ebx
jmp 0x59d92c
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.0040e560
mov eax, dword [esp + 0xb4]
jmp 0x59d92c
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x70], edx
lea eax, [0x6064c0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
call fcn.00438950
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xb4]
mov dword [ebx + 0x74], edx
mov edx, dword [0x749b10]
test edx, edx
jne 0x59da12
mov dword [ebx + 0x6c], eax
mov ebx, dword [esp + 0x3c]
mov ebp, ecx
mov ecx, eax
mov eax, dword [esp + 0xb4]
jmp 0x59d985
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040e560
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0xb4]
jmp 0x59d9fe
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xbc], eax
add esp, 0xb0
ret
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0x44]
lea ebp, [ecx + edx]
mov dword [esp + 0x38], ebp
mov esi, dword [eax + 0x74]
mov edi, dword [eax + 0x6c]
lea ebx, [eax + 0x6c]
mov dword [esp + 0x68], ebx
mov ebx, dword [eax + 0x40]
mov eax, dword [eax + 0x48]
cmp ebp, esi
ja 0x59dec0
cmp ebp, esi
ja 0x59e124
cmp ecx, ebp
ja 0x59e124
mov dword [esp + 0x34], esi
mov dword [esp + 0x64], edi
sub esi, ecx
mov dword [esp + 0x30], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
shl ecx, 2
sar esi, 0x1f
and ecx, esi
add ecx, edi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
lea ecx, [0x6064c0]
mov dword [esp], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.0040e8c0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xb4]
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x74], eax
mov eax, dword [0x749b10]
test eax, eax
jne 0x59dea0
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x6c], eax
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edx, edx
jle 0x59de70
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x64], eax
mov dword [esp], ecx
call fcn.0059c8f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0059e440
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x8c]
mov ebx, eax
xor eax, eax
call fcn.0044bed7
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ebp
mov ecx, dword [eax + 0x6c]
mov ebp, dword [eax + 0x70]
mov esi, dword [eax + 0x74]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], esi
mov dword [esp + 0x94], ebx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0xac], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x14], ecx
call fcn.00496a00
mov eax, dword [0x749b10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x4c], ebx
test eax, eax
jne 0x59de4c
mov eax, dword [esp + 0xb4]
mov dword [eax + 0x50], ecx
test edx, edx
jne 0x59dde2
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x80]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x94]
lea edx, [0x5c4f60]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00402ce0
mov eax, dword [0x749b10]
mov ecx, dword [esp + 0xb4]
lea edx, [ecx + 0x9c]
mov ebx, dword [esp + 8]
test eax, eax
jne 0x59ddca
mov dword [ecx + 0x9c], ebx
mov eax, dword [ecx + 0x90]
mov dword [esp + 0x60], eax
mov edx, dword [ecx + 0x94]
mov dword [esp + 0x38], edx
xor ebx, ebx
jmp 0x59dd3a
mov dword [esp + 0x34], ebx
mov edx, dword [eax + ebx*4]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp], 8
lea edx, [0x61ea30]
mov dword [esp + 4], edx
call fcn.0042eac0
mov eax, dword [esp + 0x34]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x38]
cmp ebx, edx
jl 0x59dcff
mov eax, dword [ecx + 0x58]
test eax, eax
jne 0x59dd62
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
add esp, 0xb0
ret
lea eax, [0x5c52e0]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00402ce0
mov eax, dword [0x749b10]
mov ecx, dword [esp + 0xb4]
lea edx, [ecx + 0xa0]
mov ebx, dword [esp + 8]
test eax, eax
jne 0x59ddb5
mov dword [ecx + 0xa0], ebx
mov dword [esp + 8], ecx
mov dword [esp], 4
lea eax, [0x61ea34]
mov dword [esp + 4], eax
call fcn.0042eac0
jmp 0x59dd45
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.0040e560
mov ecx, dword [esp + 0xb4]
jmp 0x59dd99
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.0040e560
mov ecx, dword [esp + 0xb4]
jmp 0x59dce7
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x80]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0x40]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xbc], eax
add esp, 0xb0
ret
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040e560
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
jmp 0x59dc7b
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov ebp, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], esi
mov ebx, 1
mov edx, 1
lea eax, [esp + 0x78]
jmp 0x59db6f
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
call fcn.0040e560
mov ecx, dword [esp + 0xb4]
jmp 0x59db5e
mov dword [esp + 0x34], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
lea eax, [0x6064c0]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
call fcn.00438950
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x38]
jmp 0x59dadc
mov eax, dword [ebp + 0x14]
mov dword [esp], ecx
call eax
mov dword [esp], 0
call fcn.00404300
movzx eax, byte [esp + 8]
test al, al
jne 0x59df3c
mov eax, dword [esp + 0xb4]
mov ebx, dword [esp + 0x74]
jmp 0x59d8e0
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x58]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0xb0
ret
lea eax, [0x5d9920]
mov dword [esp], eax
call fcn.0040dcf0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x15
mov ecx, dword [0x749b10]
test ecx, ecx
jne 0x59e008
lea ecx, [0x60ff77]
mov dword [eax], ecx
lea ecx, [0x63cfc0]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
add esp, 0xb0
ret
mov dword [esp + 0x58], eax
mov dword [esp], eax
lea ecx, [0x60ff77]
mov dword [esp + 4], ecx
call fcn.0040e560
mov eax, dword [esp + 0x58]
jmp 0x59dfed
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040e560
mov eax, dword [esp + 0xb4]
jmp 0x59d8c0
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x78]
mov ebx, dword [eax + 0x7c]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x8c]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x88]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0x44]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xbc], eax
add esp, 0xb0
ret
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x8c]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x84]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.0059d470
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0xb0
ret
call fcn.00425870
ud2
call fcn.0044a470
jmp fcn.0059d830