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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5971ca
add esp, 0xffffff80
mov edx, dword [esp + 0x84]
mov ebx, dword [edx + 4]
mov eax, dword [esp + 0x88]
cmp eax, ebx
jg 0x597115
xor ecx, ecx
jmp 0x596e3f
mov ebx, dword [esp + 0x24]
lea ecx, [ebx + 1]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x84]
mov eax, ebx
mov edx, ebp
cmp eax, ecx
jle 0x596fe2
mov ebx, dword [edx + 4]
mov ebp, dword [edx]
cmp ecx, ebx
jae 0x59710c
mov dword [esp + 0x24], ecx
lea eax, [ecx + ecx*4]
lea esi, [ebp + eax*4]
lea edi, [esp + 0x6c]
call fcn.0045d09e
mov eax, dword [edx + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x24]
add ecx, eax
mov dword [esp + 0x3c], ecx
add ecx, 1
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x38], ecx
mov edx, dword [edx + 0x14]
lea ebp, [0x6456a0]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov edx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x70]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
call fcn.00410bf0
mov eax, dword [esp + 0x24]
mov ecx, eax
sar eax, 0x1f
mov edx, dword [esp + 0x40]
add edx, ecx
mov edx, dword [esp + 0x38]
adc edx, eax
mov eax, dword [esp + 0x3c]
add eax, 1
adc edx, 0
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
cmp dword [eax], ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp dword [eax + 4], edx
sete al
and ebp, eax
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x596fb1
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebx
mov ebp, dword [esp + 0x84]
mov esi, dword [ebp + 0x18]
lea edi, [0x6458e0]
mov dword [esp], edi
mov dword [esp + 4], esi
lea esi, [esp + 0x4c]
mov dword [esp + 8], esi
call fcn.0040d6e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
cmp dword [eax], ecx
sete cl
mov edx, dword [esp + 0x34]
cmp dword [eax + 4], edx
sete al
and ecx, eax
test cl, cl
jne 0x596f68
jmp 0x596e26
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x18]
lea edx, [0x6458e0]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 8], ecx
call fcn.0040e1a0
jmp 0x596e26
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x14]
lea edx, [0x6456a0]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.00411660
jmp 0x596ef2
mov ecx, dword [edx + 4]
mov ebx, dword [edx]
mov ebp, dword [edx + 8]
cmp eax, ecx
ja 0x597107
lea edx, [0x666300]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
lea edx, [eax + eax*4]
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl edx, 2
sar ebp, 0x1f
and edx, ebp
add edx, ebx
mov dword [esp + 0xc], edx
sub ecx, eax
mov dword [esp + 0x10], ecx
call fcn.00411e90
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x88]
sub ecx, edx
jmp 0x597045
mov ebp, dword [esp + 0x28]
lea ecx, [ebp + 1]
mov eax, ebx
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
mov esi, dword [eax]
cmp ebx, ecx
jle 0x597098
jbe 0x5970fe
mov dword [esp + 0x28], ecx
lea ebx, [ecx + ecx*4]
lea edi, [esi + ebx*4]
mov ebx, dword [0x7e34e0]
test ebx, ebx
jne 0x597076
mov ebx, eax
xor eax, eax
call fcn.0045cbbb
jmp 0x59703c
lea eax, [0x666300]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.00411f70
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
jmp 0x59703c
sub ebx, edx
cmp ebp, ebx
jb 0x5970f5
mov dword [eax + 4], ebx
mov ecx, dword [eax + 0xc]
mov ebx, edx
add edx, ecx
mov ebp, dword [eax + 0x10]
mov esi, ebx
sar ebx, 0x1f
add esi, ecx
adc ebx, ebp
cmp ebp, ebx
xchg ebp, ebx
seta bl
xchg ebp, ebx
xchg esi, ebx
sete bl
xchg esi, ebx
cmp edx, ecx
setb cl
and ecx, esi
or ebp, ecx
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5970dd
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
sub esp, 0xffffff80
ret
lea eax, [0x643700]
mov dword [esp], eax
lea eax, [0x6c8590]
mov dword [esp + 4], eax
call fcn.00431bb0
mov ecx, ebx
mov edx, ebp
call fcn.0045c9e0
mov eax, ecx
mov ecx, ebx
call fcn.0045c9a0
call fcn.0045ca00
mov eax, ecx
mov ecx, ebx
call fcn.0045c9a0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp], eax
call fcn.00409e70
mov eax, dword [esp + 4]
lea ecx, [0x642dc0]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00409e70
mov eax, dword [esp + 4]
lea ecx, [0x642dc0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
lea eax, [0x6870fa]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004ae800
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409f80
mov eax, dword [esp + 8]
lea ecx, [0x643700]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00431bb0
nop
call fcn.0045b380
jmp fcn.00596df0