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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 0xc]
jbe 0x659b45ce
sub esp, 0x28
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x659b45ad
mov edx, dword [eax + 0x18]
nop
inc dword [edx + 0x78]
test byte [eax], al
mov edx, dword [esp + 0x34]
lea ebx, [edx + 7]
and ebx, 0xfffffff8
cmp ebx, 0x7ec
jge 0x659b4597
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x24], ecx
mov dword [esp], ecx
call fcn.659b4a60
mov eax, dword [esp + 4]
test eax, eax
jne 0x659b41ef
mov dword [esp], 0x800
call fcn.659b3f30
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 6
call fcn.659ae120
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.659ad560
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x659b4581
mov dword [esp + 0x1c], eax
lea ecx, [eax + 0x48]
mov dword [esp], ecx
call fcn.65982400
cmp dword [esp + 4], 6
jne 0x659b456b
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x10]
neg ecx
and ecx, 3
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
sub edx, eax
lea eax, [edx - 0x10]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x34]
test edx, edx
jle 0x659b42d5
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.659cb4d0
movzx eax, byte [0x65a9c1d4]
test al, al
je 0x659b42cd
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x4c]
movzx ecx, byte [ecx + 0x6a]
test cl, cl
jne 0x659b42d1
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [esp], ecx
call fcn.659bdca0
mov eax, dword [esp + 4]
movzx ecx, byte [eax + 0x27]
test cl, cl
ja 0x659b428d
xor eax, eax
jmp 0x659b4299
lea ecx, [eax + 0x27]
mov eax, dword [eax + 0x1c]
lea eax, [ecx + eax*4 + 1]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x659b42c7
nop
mov edx, dword [esp + 0x14]
mov dword [esp], edx
mov dword [esp + 4], edx
shl ecx, 2
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
add eax, 8
mov dword [esp + 0x10], eax
call fcn.6598d540
mov eax, dword [esp + 0x20]
jmp 0x659b42d1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
call fcn.659cb2f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x40], eax
lea eax, [0x659cabb0]
inc eax
mov dword [ecx + 0x20], eax
mov eax, ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [eax + 0x1c]
add ecx, 0xfffffffc
mov edx, ecx
nop
mov ebx, dword [esp + 0x2c]
mov ebp, dword [ebx]
nop
mov esi, dword [eax + 0x20]
mov dword [ecx], esi
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ebp
mov ecx, dword [0x65a9c1d0]
test ecx, ecx
jne 0x659b432f
mov dword [eax + 0x28], ebx
jmp 0x659b433d
lea edi, [eax + 0x28]
mov ecx, eax
mov eax, ebx
call fcn.659cac10
mov eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xb8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call fcn.659b45e0
mov eax, dword [0x65a9c1d0]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x659b436d
mov edx, dword [esp + 0x1c]
mov dword [edx + 0xbc], ecx
jmp 0x659b437e
mov edx, dword [esp + 0x1c]
lea edi, [edx + 0xbc]
mov eax, ecx
call fcn.659cac10
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov dword [edx + 0xc0], ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x18]
mov ebx, dword [ebx + 0x4c]
test ebx, ebx
je 0x659b43bb
mov ebp, dword [0x65a9c1d0]
mov eax, dword [ebx + 0xd8]
test ebp, ebp
jne 0x659b43b0
mov dword [edx + 0xd8], eax
jmp 0x659b43bb
lea edi, [edx + 0xd8]
call fcn.659cac10
mov dword [esp], edx
mov byte [esp + 4], 0
call fcn.659c44e0
movzx eax, byte [esp + 8]
test al, al
je 0x659b43e7
lea eax, [0x65a76aa0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.65982520
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0x90]
mov edx, dword [eax + 0x94]
mov dword [eax + 0x90], edx
mov ebx, ecx
shl ecx, 0x11
xor ecx, ebx
mov ebx, edx
xor edx, ecx
shr ecx, 7
xor ecx, edx
mov edx, ebx
shr ebx, 0x10
xor ebx, ecx
mov dword [eax + 0x94], ebx
lea eax, [edx + ebx]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x71], al
test al, 7
jne 0x659b4439
mov byte [ecx + 0x70], 1
mov dword [esp], ecx
mov dword [esp + 4], 6
mov dword [esp + 8], 1
call fcn.659ae120
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x310]
cmp dword [eax + 0x308], ecx
sete cl
mov edx, dword [eax + 0x30c]
cmp dword [eax + 0x314], edx
sete dl
and edx, ecx
test dl, dl
je 0x659b44dd
lea eax, [0x65a76a60]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
call fcn.65982540
mov eax, dword [esp + 0xc]
mov ecx, eax
add eax, 0xfffffff1
mov edx, ecx
add ecx, 1
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
mov dword [ebp + 0x30c], ebx
mov dword [ebp + 0x308], eax
mov eax, edx
add edx, 0xfffffff1
mov edx, ebx
adc ebx, 0xffffffff
mov dword [ebp + 0x30c], ebx
mov dword [ebp + 0x310], ecx
add eax, 1
adc edx, 0
mov dword [ebp + 0x314], edx
mov eax, ebp
mov ecx, dword [eax + 0x308]
mov edx, dword [eax + 0x30c]
mov ebx, dword [esp + 0x1c]
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x54], edx
mov ecx, dword [eax + 0x308]
add ecx, 1
mov edx, dword [eax + 0x30c]
mov dword [eax + 0x308], ecx
adc edx, 0
mov dword [eax + 0x30c], edx
movzx eax, byte [0x65a806c8]
test al, al
je 0x659b4532
mov eax, dword [ebx + 0xc0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.659c2420
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x18]
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [eax + 0x78]
lea ebp, [edx - 1]
mov dword [eax + 0x78], ebp
cmp edx, 1
jne 0x659b4563
movzx eax, byte [ecx + 0x65]
test al, al
je 0x659b4563
mov dword [ecx + 8], 0xfffffade
mov dword [esp + 0x40], ebx
add esp, 0x28
ret
lea eax, [0x65a16c0b]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
call fcn.659ab0e0
lea eax, [0x65a16c27]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
call fcn.659ab0e0
lea eax, [0x65a19204]
mov dword [esp], eax
mov dword [esp + 4], 0x37
call fcn.659ab0e0
mov eax, dword [eax + 0x18]
mov dword [eax + 0x6c], 0xffffffff
lea eax, [0x65a14e10]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.659ab0e0
nop
call fcn.659c84b0
jmp fcn.659b4140