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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x114]
cmp eax, dword [ecx + 8]
jbe 0x59abde
sub esp, 0x194
mov eax, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x1c0]
cmp eax, ecx
jg 0x59ab3b
mov edx, dword [esp + 0x1a4]
mov ebx, dword [esp + 0x1ac]
cmp eax, ecx
jl 0x59aab8
test ecx, ecx
jbe 0x59abd7
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1ac], ebx
mov ebp, dword [esp + 0x1bc]
mov esi, dword [ebp]
lea edi, [esi - 2]
xchg edi, ebx
neg ebx
xchg edi, ebx
dec esi
mov dword [esp + 0xa8], eax
mov eax, 1
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa8]
jmp 0x599f05
shl ebx, 1
imul esi, esi
lea eax, [esi + 1]
imul edi, eax
mov eax, dword [esp + 0x1a8]
mov dword [esp + 0x88], ebx
mov ebx, dword [esp + 0x1ac]
mov ebx, dword [esp + 0x88]
cmp ebx, 0x20
jl 0x599ee5
mov dword [esp + 0xd0], edx
mov dword [esp + 0x78], edi
lea eax, [0x7cf6e0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 5
call fcn.00439eb0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test ecx, ecx
jbe 0x59abd0
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0xc0], edx
mov dword [edx], 1
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x1c0]
shl ebx, 6
mov dword [esp + 0x18], ebx
call fcn.005978f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xb0], edx
mov ebx, dword [esp + 0xc0]
mov dword [esp], ebx
mov ebp, dword [esp + 0x8c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x90]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x1bc]
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x1c0]
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x1c4]
mov dword [esp + 0x2c], ebp
call fcn.005969b0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c0]
cmp ecx, ebx
jge 0x59aaa2
mov eax, dword [esp + 0x50]
cmp ebx, eax
jg 0x59aa55
mov ebp, ebx
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ebx
cmp ebx, ecx
jle 0x59aa4e
mov dword [esp + 0xcc], esi
mov dword [esp], esi
mov dword [esp + 4], edx
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.0044e470
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov ebx, eax
mov ebp, edx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0xc8], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
lea esi, [0x7cf6e0]
mov dword [esp], esi
mov edi, dword [esp + 0x1c0]
mov dword [esp + 4], edi
mov dword [esp + 8], edi
call fcn.00439eb0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test ecx, ecx
jbe 0x59abc9
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0xbc], edx
mov dword [edx], 1
lea edi, [esp + 0xd4]
mov ebx, eax
xor eax, eax
call fcn.0044dd40
mov ecx, dword [esp + 0xd4]
mov ebp, dword [esp + 0xdc]
mov esi, dword [esp + 0xd8]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0xc8]
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x1c], esi
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x1bc]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x1c0]
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x1c4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x78]
neg ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call fcn.00594a40
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], edx
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe4]
mov ebx, dword [esp + 0xe0]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x1a8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1ac]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1bc]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x1c0]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x1c4]
mov dword [esp + 0x2c], ebx
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
call fcn.00594a40
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], ebx
mov eax, 2
jmp 0x59a33d
mov dword [esp + 0x84], eax
mov dword [esp + 0x9c], ecx
mov eax, dword [esp + ecx*4 + 0xc8]
mov esi, dword [esp + ecx*4 + 0xcc]
mov dword [esp + 0x98], esi
mov edi, dword [esp + ecx*4 + 0xd0]
mov dword [esp + 0x94], edi
mov ecx, dword [esp + 0xe0]
mov edi, dword [esp + 0xe4]
mov esi, dword [esp + 0xe8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1bc]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1c0]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c4]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
call fcn.00594a40
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x9c]
lea ebp, [esp + 0xd4]
mov dword [ebp + ebx*4], eax
mov dword [esp + ebx*4 + 0xd8], ecx
mov dword [esp + ebx*4 + 0xdc], edx
mov eax, dword [esp + 0x84]
inc eax
cmp eax, 0x10
jge 0x59a371
jae 0x59abc2
lea ecx, [eax + eax*2]
mov edx, dword [esp + ecx*4 + 0xd4]
mov ebx, dword [esp + ecx*4 + 0xd8]
mov ebp, dword [esp + ecx*4 + 0xdc]
lea esi, [eax - 1]
cmp esi, 0x10
jb 0x59a260
jmp 0x59abc2
mov eax, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x1a0]
cmp eax, ecx
jg 0x59aa1d
mov edx, eax
mov ebx, dword [esp + 0x198]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x48], eax
mov ebp, dword [esp + 0xd4]
mov esi, dword [esp + 0xd8]
cmp eax, esi
jle 0x59aa16
mov dword [esp + 0xd0], ebx
mov dword [esp], ebx
mov dword [esp + 4], ebp
shl esi, 2
mov dword [esp + 8], esi
call fcn.0044e470
mov eax, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jg 0x59a9e5
mov edx, eax
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0x1b4]
lea esi, [ebp - 1]
mov dword [esp + 0x80], esi
mov edi, esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x1a0], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x19c], esi
mov esi, edi
jmp 0x59a76c
mov dword [esp + 0x1a0], edx
mov dword [esp + 0x19c], ecx
mov dword [esp + 0xd0], eax
mov edi, dword [esp + 0x64]
shr edi, 0x1c
lea edi, [edi + edi*2]
mov edx, dword [esp + edi*4 + 0xd4]
mov ecx, dword [esp + edi*4 + 0xd8]
mov edi, dword [esp + edi*4 + 0xdc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x19c]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x1a0]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x1bc]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c0]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1c4]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
call fcn.00594a40
mov eax, dword [esp + 0x7c]
add eax, 4
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x64]
shl ebp, 4
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x80]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 0x19c], edx
mov edx, dword [esp + 0x1c0]
mov esi, dword [esp + 0xd0]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 0x1a0], ebx
mov ebx, esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x7c]
cmp ebp, 0x20
jge 0x59a764
cmp esi, edi
je 0x59a73c
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x19c]
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x1a0]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov ebp, dword [esp + 0x1bc]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
mov esi, dword [esp + 0x1c4]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edx
call fcn.00594a40
mov eax, dword [esp + 0x38]
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0xd0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x19c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x1a0]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1bc]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1c0]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1c4]
invalid
je 0x59a624