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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5975ee
sub esp, 0x6c
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x64]
mov edx, dword [eax + 0x68]
movzx ebx, byte [0x7a0668]
test bl, bl
jne 0x597528
movzx ecx, byte [eax + 0xab]
test cl, cl
je 0x596ffb
mov ecx, dword [eax + 0xb0]
test ecx, ecx
jne 0x597514
nop
mov esi, dword [esp + 0x74]
movzx ecx, byte [esi]
test cl, cl
je 0x5975bd
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x28], ecx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x50], edx
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x2c], ebx
lea edi, [esp + 0x40]
call fcn.0045e5a2
lea edi, [esp + 0x34]
lea esi, [esp + 0x40]
call fcn.0045e5a2
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00592690
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x597072
lea eax, [0x65ee24]
mov dword [esp + 0x78], eax
lea eax, [0x6273f8]
mov dword [esp + 0x7c], eax
add esp, 0x6c
ret
test ecx, ecx
je 0x59705a
mov dword [esp + 0x4c], eax
test eax, eax
je 0x597087
cmp ecx, 1
je 0x5971b6
mov ecx, dword [esp + 0x70]
mov ebx, dword [ecx + 0x48]
mov ebp, dword [ecx + 0x4c]
test ebp, ebp
je 0x5971af
mov esi, dword [ebp]
cmp ebx, esi
jle 0x5971af
mov edi, dword [esp + 0x74]
mov eax, dword [edi + 4]
cmp esi, eax
jl 0x597169
nop
test ebp, ebp
je 0x597162
mov ebp, dword [ebp]
cmp ebx, ebp
jle 0x597162
cmp eax, ebp
jg 0x5975a5
sub ebx, eax
mov dword [ecx + 0x48], ebx
mov ebx, dword [ecx + 0x4c]
test ebx, ebx
je 0x5970dd
sub dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], eax
call fcn.0059a300
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x597104
movzx eax, byte [eax + 0x40]
test al, al
jne 0x59714e
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 5
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x65ee38]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x6c
ret
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x6c
ret
mov ebp, ebx
jmp 0x5970c7
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x65ee38]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x6c
ret
mov esi, ebx
jmp 0x5970a4
movzx ecx, byte [eax + 0x41]
test cl, cl
jne 0x597087
movzx ecx, byte [eax + 0x40]
test cl, cl
jne 0x597087
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x59758d
mov ecx, dword [eax + 0x24]
cmp ecx, 0xffffffff
setne bl
mov ebp, dword [eax + 0x28]
cmp ebp, 0xffffffff
xchg esi, ebx
setne bl
xchg esi, ebx
or esi, ebx
xchg esi, eax
test al, al
xchg esi, eax
je 0x59750b
mov ebx, dword [eax + 0x1c]
mov esi, dword [esp + 0x28]
mov edi, ebx
add ebx, esi
mov edx, dword [eax + 0x20]
sar esi, 0x1f
mov eax, dword [esp + 0x28]
add edi, eax
adc edx, esi
cmp ebx, ecx
seta cl
cmp edx, ebp
sete dl
setg bl
and edx, ecx
or ebx, edx
test bl, bl
jne 0x59742b
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
test edx, edx
jbe 0x597422
mov ebx, dword [esp + 0x4c]
mov ebp, dword [ebx + 0x34]
mov esi, dword [ebx + 0x38]
test esi, esi
je 0x59741b
mov edi, dword [esi]
cmp ebp, edi
jle 0x59741b
cmp edx, edi
jg 0x5973d1
nop
test esi, esi
je 0x5973ca
mov esi, dword [esi]
cmp ebp, esi
jle 0x5973ca
cmp edx, esi
jg 0x597575
sub ebp, edx
mov dword [ebx + 0x34], ebp
mov ebp, dword [ebx + 0x38]
test ebp, ebp
je 0x59728a
sub dword [ebp], edx
test eax, eax
jg 0x597300
mov edx, dword [ecx + 4]
sub edx, eax
test edx, edx
jg 0x5972be
movzx eax, byte [ecx + 2]
test al, 1
jne 0x5972b4
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x6c
ret
mov dword [esp], ebx
call fcn.00597780
jmp 0x5972a0
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], edx
call fcn.0059a3d0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
call fcn.0059a3d0
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x4c]
jmp 0x597297
mov ecx, dword [ebx + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
call fcn.00590b50
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x59735f
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jne 0x59755d
mov ebx, dword [esp + 0x4c]
mov edx, dword [ebx + 0x1c]
mov eax, ecx
add ecx, edx
mov ebp, dword [ebx + 0x20]
mov dword [ebx + 0x1c], ecx
mov esi, eax
sar eax, 0x1f
add edx, esi
adc ebp, eax
mov dword [ebx + 0x20], ebp
mov eax, esi
mov ecx, dword [esp + 0x74]
jmp 0x59728e
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov dword [esp + 4], 0
sub ecx, eax
mov dword [esp + 8], ecx
call fcn.0059a300
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 5
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x65ee38]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x6c
ret
mov esi, ebp
jmp 0x597273
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x65ee38]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x6c
ret
mov edi, ebp
jmp 0x597258
mov ebx, dword [esp + 0x4c]
jmp 0x597297
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x28]
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.00409080
mov eax, dword [esp + 8]
lea ecx, [0x5daa00]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x6201bf]
mov dword [esp], eax
mov dword [esp + 4], 0x42
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004ad3c0
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test byte [eax], al
mov dword [esp], eax
add eax, 0x34
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
call fcn.00590d20
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x65ee38]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x28]
jmp 0x59722d
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x6c
ret
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
call fcn.0058f530
mov eax, dword [esp + 0x20]
cmp dword [esp], eax
setne al
mov ecx, dword [esp + 0x24]
cmp dword [esp + 4], ecx
setne cl
or ecx, eax
test cl, cl
jne 0x5975d5
mov eax, dword [esp + 0x70]
jmp 0x596fe2
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bea8]
mov dword [esp + 4], eax
call fcn.00431a30
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bf70]
mov dword [esp + 4], eax
call fcn.00431a30
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bea0]
mov dword [esp + 4], eax
call fcn.00431a30
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bf70]
mov dword [esp + 4], eax
call fcn.00431a30
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bf78]
mov dword [esp + 4], eax
call fcn.00431a30
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65be50]
mov dword [esp + 4], eax
call fcn.00431a30
nop
call fcn.0045c8b0
jmp fcn.00596fb0