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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x65991d51
sub esp, 0x48
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x6599181f
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x6599181f
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x6599181f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x65991847
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x65991847
mov dword [eax + 8], 0xfffffade
jmp 0x65991847
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x6599183d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x6599183d
mov dword [eax + 8], 0xfffffade
add esp, 0x48
ret
inc dword [0x65a766fc]
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
call fcn.65991680
movzx eax, byte [esp + 0x10]
test al, al
jne 0x65991878
xor eax, eax
jmp 0x65991884
call fcn.6599a990
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x65991841
nop
lea eax, [0x65a9ca8c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.659b8a80
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], ecx
call fcn.65991680
movzx eax, byte [esp + 0x10]
test al, al
je 0x659919e7
mov eax, dword [esp + 0x4c]
cmp eax, 2
sete al
mov byte [0x65a9caa0], al
mov eax, dword [0x65a9c2f8]
cmp eax, 1
jne 0x659918ff
mov eax, 1
jmp 0x6599190d
cmp eax, 2
jne 0x6599190b
mov eax, 2
jmp 0x6599190d
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x659ea05c]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.659b8a80
nop
lea eax, [0x659ea07c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.659b8a80
movzx eax, byte [0x65a806c8]
test al, al
je 0x659919cf
nop
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov eax, dword [0x65a806f8]
mov ecx, dword [0x65a806fc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.659c13a0
mov eax, dword [0x65a806f8]
add eax, 1
mov ecx, dword [0x65a806fc]
mov dword [0x65a806f8], eax
adc ecx, 0
mov dword [0x65a806fc], ecx
mov eax, dword [0x65a76620]
mov dword [esp + 0x3c], eax
mov ecx, dword [0x65a76624]
mov dword [esp + 0x20], ecx
xor edx, edx
jmp 0x65991a16
nop
lea eax, [0x65a9ca8c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.659b8d90
add esp, 0x48
ret
mov ebx, dword [esp + 0x1c]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
cmp edx, ecx
jge 0x65991a49
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x34], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.65982400
mov eax, dword [esp + 4]
cmp dword [0x65a7c12c], eax
je 0x65991a07
jmp 0x65991d0e
call fcn.65992ea0
lea eax, [0x65a19750]
mov dword [esp], eax
call fcn.659c96b0
mov eax, dword [0x65a9c094]
mov dword [0x65a9cacc], eax
mov dword [0x65a9cad0], eax
mov ecx, dword [0x65a9c0ac]
cmp ecx, eax
jge 0x65991a7e
mov dword [0x65a9cacc], ecx
lea eax, [0x65a9c810]
mov dword [esp], eax
call fcn.65982600
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x65a9cb08], eax
mov dword [0x65a9cb04], ecx
mov dword [0x65a9caf4], 0
mov dword [0x65a9caf8], 0
mov eax, dword [esp + 0x14]
mov dword [0x65a9ca9c], eax
call fcn.659cbac0
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [0x65a9cad8], ecx
mov dword [0x65a9cad4], eax
mov dword [0x65a9cb00], ecx
mov dword [0x65a9cafc], eax
movzx eax, byte [0x65a806c8]
test al, al
je 0x65991b3f
nop
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.659c13a0
lea eax, [0x65a197f8]
mov dword [esp], eax
call fcn.659c96b0
lea eax, [0x65a19754]
mov dword [esp], eax
call fcn.659c96b0
call fcn.65993af0
inc dword [0x65a9cac8]
lea eax, [0x65a9c7e0]
mov dword [esp], eax
call fcn.65997410
mov eax, dword [0x65a9c800]
mov ecx, dword [0x65a9c804]
mov dword [0x65a9cb1c], eax
mov dword [0x65a9cb20], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x65991b9d
mov byte [esp], 0
call fcn.659b6990
nop
lea eax, [0x65a9c090]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.659825e0
mov eax, dword [0x65a9c090]
cmp eax, 1
jne 0x65991bc6
mov eax, 1
jmp 0x65991bcc
cmp eax, 2
sete al
mov byte [0x65a9c1d4], al
test al, al
je 0x65991bdd
mov eax, 1
jmp 0x65991be4
movzx eax, byte [0x65a9c1d5]
mov byte [0x65a9c1d0], al
nop
mov dword [0x65a9ca58], 0xffffffff
mov dword [0x65a9ca64], 0xffffffff
call fcn.65994100
call fcn.65997270
lea eax, [0x65a9c088]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.659825e0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [0x65a9c858], eax
mov dword [0x65a9c85c], ecx
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea ecx, [0x65991d60]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
mov dword [esp], ecx
call fcn.659c96b0
nop
lea eax, [0x659ea07c]
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 + 0x38]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x65991cd7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x65991ccf
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x65991cdd
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x65991cdd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x65991cee
nop
lea eax, [0x65a19760]
mov dword [esp], eax
call fcn.659c9650
nop
lea eax, [0x65a9ca8c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.659b8d90
add esp, 0x48
ret
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.65987430
mov eax, dword [0x65a7c12c]
mov dword [esp], eax
call fcn.65987430
lea eax, [0x65a14eb0]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.659ab0e0
nop
call fcn.659c97c0
jmp fcn.659917b0