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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xe0]
cmp eax, dword [ecx + 8]
jbe 0x65992e4b
sub esp, 0x160
lea eax, [0x65a9c090]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.659825e0
mov eax, dword [0x65a9c090]
cmp eax, 1
jne 0x659921fb
mov eax, 1
jmp 0x65992201
cmp eax, 2
sete al
mov byte [0x65a9c1d4], al
test al, al
je 0x65992212
mov eax, 1
jmp 0x65992219
movzx eax, byte [0x65a9c1d5]
mov byte [0x65a9c1d0], al
mov eax, dword [0x65a9c810]
mov ecx, dword [0x65a9c814]
mov dword [0x65a9cb0c], eax
mov dword [0x65a9cb10], ecx
nop
call fcn.659cbac0
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
mov edx, dword [esp + 4]
mov dword [esp + 0x28], edx
mov ebx, dword [esp]
mov dword [esp + 0x20], ebx
inc dword [ecx + 0x78]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x150], ecx
test byte [eax], al
mov dword [ecx + 0x74], 5
lea edi, [ecx + 0x70]
mov dword [esp + 0x15c], edi
mov eax, dword [0x65a9c1d0]
test eax, eax
jne 0x65992292
lea eax, [0x65a12efe]
mov dword [ecx + 0x70], eax
jmp 0x6599229d
lea eax, [0x65a12efe]
call fcn.659cac10
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov dword [esp + 0x158], eax
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x99], 2
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x4c]
mov dword [esp + 0x154], ecx
mov dword [esp], ecx
mov dword [esp + 4], 2
mov dword [esp + 8], 4
call fcn.659ae120
mov eax, dword [esp + 0x154]
mov byte [eax + 0x64], 6
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
lea ecx, [0x65992e60]
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xd0], ecx
lea ecx, [esp + 0xcc]
mov dword [esp], ecx
call fcn.659c96b0
lea eax, [0x65a1973c]
mov dword [esp], eax
call fcn.659c96b0
mov eax, dword [esp + 0x158]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x99], 0
mov eax, dword [esp + 0x154]
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 2
call fcn.659ae120
movzx eax, byte [0x65a806c8]
test al, al
je 0x659923b1
nop
mov byte [esp], 8
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.659c13a0
mov ecx, dword [esp + 0x150]
mov dword [ecx + 0x74], 0
mov edx, dword [0x65a9c1d0]
test edx, edx
jne 0x659923d2
mov dword [ecx + 0x70], 0
jmp 0x659923e0
mov edi, dword [esp + 0x15c]
xor eax, eax
call fcn.659cac10
mov eax, dword [0x65a9c090]
test eax, eax
jne 0x65992e34
mov eax, dword [0x65a9c800]
mov ecx, dword [0x65a9c804]
mov dword [0x65a9c808], eax
mov dword [0x65a9c80c], ecx
mov eax, dword [0x65a9db78]
mov ecx, dword [0x65a9db7c]
mov dword [0x65a9f168], eax
mov dword [0x65a9f16c], ecx
lea eax, [0x65a9c7e0]
mov dword [esp], eax
movsd xmm0, qword [esp + 0x164]
movsd qword [esp + 4], xmm0
call fcn.65997f00
nop
call fcn.659cbac0
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 4]
mov dword [esp + 0x54], edx
call fcn.659cbb00
mov eax, dword [esp]
mov ecx, eax
mov eax, 0x3b9aca00
mul ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
add ecx, eax
mov dword [esp + 0x34], ecx
mov ebp, dword [0x65a9cafc]
mov esi, dword [esp + 0x24]
mov edi, esi
sub esi, ebp
mov ecx, dword [0x65a9caf4]
mov dword [esp + 0xb0], ecx
add ecx, esi
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
mov ebx, dword [0x65a9caf8]
mov edx, dword [0x65a9cb00]
mov dword [0x65a9caf4], ecx
mov ecx, edi
sub edi, ebp
mov ebp, dword [esp + 0x54]
mov edi, ebp
sbb ebp, edx
mov edx, dword [esp + 0xb0]
add edx, esi
adc ebp, ebx
mov dword [0x65a9caf8], ebp
mov edx, dword [esp + 0x2c]
mov dword [0x65a9caf0], edx
mov dword [0x65a9caec], ecx
mov edx, dword [0x65a9cafc]
sub ecx, edx
mov edx, dword [0x65a9cb00]
lea ebp, [0x65a9f8b0]
mov dword [esp], ebp
sbb edi, edx
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
call fcn.65986750
lea eax, [0x65a9dbe8]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
imul eax, eax, 0x3b9aca00
mov ecx, dword [esp + 0xb8]
add eax, ecx
mov ecx, dword [esp + 0x50]
mov edx, ecx
sar ecx, 0x1f
mov ebx, dword [esp + 0xb4]
add edx, ebx
adc eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
call fcn.65982620
lea eax, [0x65a9f160]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call fcn.65982620
mov eax, dword [0x65a9ebf8]
and eax, 0xff
lea ecx, [0x65a9dbf8]
lea edx, [ecx + eax*8]
mov ebx, dword [0x65a9caf4]
mov ebp, dword [0x65a9caf8]
mov dword [edx], ebx
lea eax, [ecx + eax*8 + 4]
mov dword [eax], ebp
mov eax, dword [0x65a9ebf8]
and eax, 0xff
lea ecx, [0x65a9e3f8]
lea edx, [ecx + eax*8]
mov ebx, dword [esp + 0x34]
mov dword [edx], ebx
lea eax, [ecx + eax*8 + 4]
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
mov eax, dword [0x65a9dbf0]
mov ecx, dword [0x65a9caf4]
add eax, ecx
mov ecx, dword [0x65a9dbf4]
mov edx, dword [0x65a9caf8]
mov dword [0x65a9dbf0], eax
adc ecx, edx
mov dword [0x65a9dbf4], ecx
mov eax, dword [0x65a9cadc]
mov ecx, dword [0x65a9cad4]
mov edx, eax
sub eax, ecx
mov dword [esp + 0xb8], eax
mov ebx, dword [0x65a9cacc]
mov dword [esp + 0xac], ebx
mov ebp, eax
mov eax, ebx
mov esi, edx
mul ebp
mov dword [esp + 0xb4], edx
mov dword [esp + 0x40], eax
mov edi, dword [0x65a9c838]
mov dword [esp + 0xb0], edi
mov ebp, dword [0x65a9c840]
mov dword [esp + 0xa8], ebp
add edi, ebp
mov dword [esp + 0xa4], edi
mov edx, dword [0x65a9c848]
mov dword [esp + 0xa0], edx
add edx, edi
mov dword [esp + 0x5c], edx
mov edi, dword [0x65a9caec]
mov dword [esp + 0x9c], edi
mov ebp, dword [0x65a9cae4]
mov dword [esp + 0x98], ebp
sub edi, ebp
mov dword [esp + 0x94], edi
mov eax, edi
mul ebx
mov dword [esp + 0x90], edx
mov dword [esp + 0x58], eax
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x40]
add edi, edx
mov dword [esp + 0x8c], edi
add eax, edi
mov dword [esp + 0x6c], eax
mov edi, dword [0x65a9caa4]
mov dword [esp + 0x88], edi
add edi, eax
mov dword [esp + 0x84], edi
mov eax, dword [0x65a9cae0]
mov edx, dword [0x65a9cad8]
mov ebx, dword [0x65a9c83c]
mov dword [esp + 0x80], ebx
mov ebp, dword [0x65a9c844]
mov ebx, dword [0x65a9c84c]
mov dword [esp + 0x7c], ebx
mov ebx, dword [0x65a9caf0]
mov dword [esp + 0x78], ebx
mov ebx, dword [0x65a9cae8]
mov dword [esp + 0x74], ebx
mov ebx, dword [0x65a9caa8]
mov dword [esp + 0x70], ebx
mov dword [0x65a9caa4], edi
sub esi, ecx
sbb eax, edx
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xa8]
add ecx, edx
mov ecx, dword [esp + 0x80]
adc ecx, ebp
mov edx, dword [esp + 0xa0]
mov ebp, dword [esp + 0xa4]
add edx, ebp
mov edx, dword [esp + 0x7c]
adc ecx, edx
mov edx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x98]
sub edx, ebp
mov edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
sbb edx, ebp
mov ebp, dword [esp + 0xac]
mov esi, ebp
sar ebp, 0x1f
imul eax, esi
mov edi, dword [esp + 0xb4]
add eax, edi
mov edi, dword [esp + 0xb8]
imul edi, ebp
add eax, edi
mov dword [esp + 0xb8], eax
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x40]
add edi, ebx
adc ecx, eax
imul edx, esi
mov esi, dword [esp + 0x90]
add edx, esi
mov esi, dword [esp + 0x94]
imul esi, ebp
add edx, esi
mov dword [esp + 0xb4], edx
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x8c]
add esi, ebp
adc ecx, edx
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x6c]
add esi, edi
mov esi, dword [esp + 0x70]
adc esi, ecx
mov dword [0x65a9caa8], esi
mov ecx, dword [0x65a76b28]
mov dword [esp + 0xb0], ecx
mov edi, dword [esp + 0x24]
sub edi, ecx
mov dword [esp + 0xa8], edi
mov edx, dword [0x65a9c094]
mov dword [esp + 0xac], edx
mov eax, edi
mul edx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], eax
mov ebp, dword [0x65a76b30]
mov dword [esp + 0x9c], ebp
add ebp, eax
mov dword [esp + 0x3c], ebp
mov ebx, dword [0x65a76b34]
mov dword [esp + 0x80], ebx
mov ebp, dword [0x65a76b2c]
mov dword [esp + 0x7c], ebp
mov dword [esp + 4], esi
mov esi, dword [esp + 0x84]
mov dword [esp], esi
call fcn.659c66a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xb0]
sub eax, ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x7c]
sbb eax, ecx
mov ecx, dword [esp + 0xac]
imul eax, ecx
sar ecx, 0x1f
mov edx, dword [esp + 0xa8]
imul edx, ecx
mov ecx, dword [esp + 0xa4]
add ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
add ecx, edx
mov ecx, dword [esp + 0x80]
adc ecx, eax
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0xc4], xmm0
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.659c66a0
movsd xmm0, qword [esp + 0xc4]
divsd xmm0, qword [esp + 8]
movsd qword [0x65a9ec00], xmm0
mov dword [0x65a766fc], 0
mov dword [0x65a76700], 0
movzx eax, byte [0x65a9caa0]
test al, al
je 0x659928ed
inc dword [0x65a9ebfc]
nop
nop
lea eax, [0x65a9cac0]
mov dword [esp], eax
call fcn.65987980
inc dword [0x65a9ebf8]
lea eax, [0x65a9cac4]
mov dword [esp], eax
call fcn.659b2020
nop
nop
lea eax, [0x65a9cac0]
mov dword [esp], eax
call fcn.65987b80
call fcn.659a35b0
mov eax, dword [0x65a7c12c]
mov dword [esp + 0xbc], eax
mov byte [esp + 0xc0], 0
nop
lea eax, [0x65a7c134]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.65982520
mov byte [esp + 0xc0], 1
lea eax, [0x65a19740]
mov dword [esp], eax
call fcn.659c96b0
call fcn.659a3620
call fcn.6599c0c0
lea eax, [0x65a19724]
mov dword [esp], eax
call fcn.659c96b0
lea eax, [0x65a19748]
mov dword [esp], eax
call fcn.659c96b0
lea eax, [esp + 0xbc]
mov dword [esp], eax
call fcn.6599a910
mov eax, dword [0x65a9c2fc]
test eax, eax
jle 0x65992a01
lea edi, [esp + 0xd8]
xor eax, eax
call fcn.659cadca
call fcn.659ac2a0
mov ecx, dword [0x65a9cad4]
mov edx, dword [0x65a9c170]
sub ecx, edx
mov edx, dword [0x65a9cad8]
mov ebx, dword [0x65a9c174]
sbb edx, ebx
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xf4240
call fcn.659c68e0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, 0x17
jmp 0x65992a7c
lea eax, [0x659ea07c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.659b8d90
nop
lea eax, [0x659ea05c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.659b8d90
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x150]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x65992a6a
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x65992a6a
mov dword [eax + 8], 0xfffffade
add esp, 0x160
ret
mov ecx, dword [esp + 0xb0]
mov eax, edx
mov edx, edi
test edx, edx
seta bl
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp ecx, 0xa
xchg esi, ebx
setae bl
xchg esi, ebx
and ebp, esi
or ebx, ebp
test bl, bl
jne 0x65992aa3
cmp eax, 0x14
jl 0x65992b7f
mov dword [esp + 0x30], ecx
mov dword [esp + 0x64], eax
mov eax, ecx
mov ebp, 0xcccccccd
mov esi, edx
mul ebp
shr edx, 3
mov edi, edx
add edx, 0
mov dword [esp + 0xb0], edx
mov eax, esi
mul ebp
shr edx, 3
mov dword [esp + 0xa8], edx
lea ebx, [edx + edx*4]
shl ebx, 1
sub esi, ebx
mov eax, 0x19999999
mul esi
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], eax
mov ebx, dword [esp + 0xb0]
add eax, ebx
lea edx, [edi + edi*4]
shl edx, 1
sub ecx, edx
lea edx, [esi + esi*2]
lea edx, [ecx + edx*2]
mov ecx, eax
mov eax, ebp
mul edx
shr edx, 3
mov esi, edx
add edx, ecx
mov dword [esp + 0xb0], edx
mov eax, edx
mov ebp, 0xa
mul ebp
mov edx, dword [esp + 0x30]
sub edx, eax
add edx, 0x30
add edi, 0
mov edi, dword [esp + 0xa8]
adc edi, 0
mov ebp, dword [esp + 0xa0]
add ebp, ebx
mov ebx, dword [esp + 0xa4]
adc edi, ebx
add esi, ecx
adc edi, 0
mov eax, dword [esp + 0x64]
cmp eax, 0x18
jae 0x65992e2a
mov byte [esp + eax + 0xd8], dl
lea edx, [eax - 1]
cmp eax, 0x15
jne 0x65992a71
mov byte [esp + eax + 0xd7], 0x2e
lea edx, [eax - 2]
jmp 0x65992a71
add ecx, 0x30
cmp eax, 0x18
jae 0x65992e20
mov byte [esp + eax + 0xd8], cl
lea ecx, [esp + 0x108]
mov dword [esp], ecx
lea ecx, [eax - 0x18]
neg ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
lea eax, [esp + eax + 0xd8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.659bcc20
mov eax, dword [0x65a9cad4]
mov ecx, dword [0x65a9cad8]
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0xf0]
mov edx, eax
xor eax, eax
call fcn.659cadca
mov ecx, dword [0x65a9cadc]
mov ebx, dword [0x65a9cae0]
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf4], ebx
mov ecx, dword [0x65a9cae4]
mov ebx, dword [0x65a9cae8]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], ebx
mov ecx, dword [0x65a9caec]
mov ebx, dword [0x65a9caf0]
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], ebx
xor ecx, ecx
mov ebx, dword [esp + 0x4c]
jmp 0x65992cbb
mov dword [esp + 0x60], ecx
lea eax, [esp + ecx*8 + 0xf0]
mov ebp, dword [eax]
mov dword [esp + 0x48], ebp
sub ebp, edx
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
lea edx, [esp + 0xd8]
mov dword [esp], edx
mov dword [esp + 4], 0x18
mov dword [esp + 8], 0x18
sbb eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebp
call fcn.65993c30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.659bcc20
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.65987540
mov eax, dword [esp + 0x60]
lea ecx, [eax + 1]
xor eax, eax
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
cmp ecx, 3
jl 0x65992c37
lea edi, [esp + 0x128]
call fcn.659cadc6
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x128], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x12c], ecx
mov ecx, dword [0x65a9c838]
mov edx, dword [0x65a9c83c]
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], edx
mov ecx, dword [0x65a9c840]
mov edx, dword [0x65a9c848]
add ecx, edx
mov edx, dword [0x65a9c844]
mov ebx, dword [0x65a9c84c]
mov dword [esp + 0x138], ecx
adc edx, ebx
mov dword [esp + 0x13c], edx
mov ecx, dword [0x65a9c850]
mov edx, dword [0x65a9c854]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], edx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x148], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x14c], ecx
xor eax, eax
jmp 0x65992dc0
lea eax, [esp + 0xd8]
mov dword [esp], eax
mov dword [esp + 4], 0x18
mov dword [esp + 8], 0x18
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
call fcn.65993c30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.659bcc20
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.65987540
mov eax, dword [esp + 0x68]
inc eax
cmp eax, 5
jge 0x65992de1
mov dword [esp + 0x68], eax
lea ecx, [esp + eax*8 + 0x128]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, 2
je 0x65992d64
cmp eax, 3
je 0x65992d64
jmp 0x65992d64
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
nop
movzx ecx, byte [eax + 0x87]
lea edx, [ecx - 1]
mov byte [eax + 0x87], dl
cmp cl, 1
jne 0x65992a01
nop
nop
lea eax, [0x65a9c058]
mov dword [esp], eax
call fcn.65987b80
jmp 0x65992a01
mov ecx, 0x18
call fcn.659cac90
mov ecx, 0x18
call fcn.659cac90
lea eax, [0x65a16d9a]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.659ab0e0
nop
call fcn.659c97c0
jmp fcn.659921b0