Function at 0x1000a870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10083840
push 0x1006b0dc
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10086400]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
wait
mov dword [ebp - 4], 0
mov eax, dword [0x10087ac8]
cmp dword [eax], 0
je 0x1000ac22
xor esi, esi
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], esi
cmp esi, 0xf
jg 0x1000aae8
mov ecx, esi
call fcn.10008130
cmp eax, 1
jl 0x1000aae2
mov eax, dword [0x10089138]
cmp dword [eax], 4
je 0x1000aae2
mov ecx, dword [0x10087800]
sub ecx, dword [0x10088e1c]
add ecx, dword [0x10088f4c]
mov eax, dword [0x10088fdc]
mov ecx, dword [ecx + eax]
mov eax, esi
and eax, reloc.WS2_32.dll_accept
jns 0x1000a917
dec eax
or eax, 0xfffffffe
add eax, 1
sete al
not cl
and cl, 1
cmp al, cl
je 0x1000aad9
cmp dword [0x100879e4], 0
je 0x1000a9af
mov ecx, esi
call fcn.10008130
mov dword [ebp - 0x38], eax
push str.Head
mov edx, esi
lea ecx, [ebp - 0x48]
call fcn.100081c0
add esp, 4
test al, al
je 0x1000a9af
movss xmm1, dword [ebp - 0x44]
addss xmm1, dword [0x10082758]
movss xmm2, dword [ebp - 0x48]
movss dword [ebp - 0x54], xmm2
movss dword [ebp - 0x50], xmm1
movss xmm0, dword [ebp - 0x40]
movss dword [ebp - 0x4c], xmm0
sub esp, 0xc
mov ecx, esp
unpcklps xmm2, xmm1
movq qword [ecx], xmm2
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x78]
call fcn.10008290
add esp, 0xc
test al, al
je 0x1000a9af
movd xmm0, dword [ebp - 0x38]
cvtdq2ps xmm0, xmm0
push ecx
movss dword [esp], xmm0
mov ecx, esi
call fcn.10009080
add esp, 4
cmp dword [0x10087700], 1
jne 0x1000aa12
push str.Head
mov edx, esi
lea ecx, [ebp - 0x60]
call fcn.100081c0
sub esp, 8
mov ecx, esp
movq xmm0, qword [ebp - 0x60]
movq qword [ecx], xmm0
mov eax, dword [ebp - 0x58]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x6c]
call fcn.10008290
add esp, 0xc
test al, al
je 0x1000aa12
movss xmm1, dword [ebp - 0x68]
movss xmm0, dword [0x100827b8]
subss xmm1, xmm0
mov edx, edi
mov ecx, 0xffff0000
movaps xmm3, xmm0
movaps xmm2, xmm0
movss xmm0, dword [ebp - 0x6c]
call fcn.10008540
cmp dword [0x10087adc], 1
jne 0x1000aa26
push ecx
mov ecx, esi
call fcn.10009e40
add esp, 4
cmp dword [0x100878b8], 1
jne 0x1000aa3a
push edi
mov ecx, esi
call fcn.10009410
add esp, 4
cmp dword [0x10087828], 1
jne 0x1000aa4e
push edi
mov ecx, esi
call fcn.10009d70
add esp, 4
cmp dword [0x10087798], 1
jne 0x1000aabc
mov ecx, esi
call fcn.10008130
cmp eax, 0x6e
mov ecx, 0xff96ff00
cmovge ebx, ecx
mov dword [ebp - 0x34], ebx
mov ecx, 0xff00ff00
cmovl ebx, ecx
mov dword [ebp - 0x34], ebx
cmp eax, 0x5a
mov ecx, 0xff00f7ff
cmovle ebx, ecx
mov dword [ebp - 0x34], ebx
cmp eax, 0x46
mov ecx, 0xffff7200
cmovle ebx, ecx
mov dword [ebp - 0x34], ebx
cmp eax, 0x32
mov ecx, 0xffffff00
cmovle ebx, ecx
mov dword [ebp - 0x34], ebx
cmp eax, 0x19
mov eax, 0xffd61e1e
cmovle ebx, eax
mov dword [ebp - 0x34], ebx
push edi
mov edx, ebx
mov ecx, esi
call fcn.100087c0
add esp, 4
cmp dword [0x10087754], 0
je 0x1000aad9
push edi
mov ecx, esi
call fcn.10008130
mov edx, eax
mov ecx, esi
call fcn.10009230
add esp, 4
mov edx, esi
mov ecx, edi
call fcn.10010090
inc esi
jmp 0x1000a8c3
cmp dword [0x100878dc], 0
je 0x1000ab4c
mov eax, dword [0x10087868]
shr eax, 1
sub eax, 2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10082860]
cvtpd2ps xmm1, xmm0
mov eax, dword [0x10087864]
shr eax, 1
sub eax, 2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10082860]
cvtpd2ps xmm0, xmm0
mov edx, edi
mov ecx, 0xff00ff00
movss xmm2, dword [0x100827c0]
movaps xmm3, xmm2
call fcn.10008540
cmp byte [0x100877ee], 0
je 0x1000ab5e
push ecx
call fcn.10009c10
add esp, 4
mov dword [ebp - 0x30], 0x14
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorInfo]
cmp dword [0x10087758], 0
je 0x1000ab9c
cmp byte [0x10087693], 0
jne 0x1000abc1
push 1
mov edx, 0x1007cc44
mov ecx, dword [0x10088f20]
call fcn.10005490
mov byte [0x10087693], 1
jmp 0x1000abbe
cmp byte [0x10087693], 1
jne 0x1000abc1
push 1
mov edx, 0x1007da70
mov ecx, dword [0x10088f20]
call fcn.10005490
mov byte [0x10087693], 0
add esp, 4
mov eax, dword [0x10087ac8]
cmp dword [eax], 0
je 0x1000ac22
mov eax, dword [0x1008787c]
dec eax
neg eax
sbb eax, eax
add eax, 2
mov dword [0x10086eb8], eax
cmp dword [ebp - 0x2c], 0
jne 0x1000ac22
mov ecx, dword [0x10087800]
sub ecx, dword [0x10088e1c]
add ecx, dword [0x10088f4c]
mov eax, dword [0x10088fdc]
mov ecx, dword [ecx + eax]
call fcn.10008130
test eax, eax
jle 0x1000ac22
call fcn.1000aea0
push ecx
mov ecx, eax
call fcn.10009540
call fcn.1000ad30
mov ecx, eax
call fcn.10009880
add esp, 4
cmp dword [0x10087a2c], 0
je 0x1000ac62
cmp byte [0x100878e4], 0
je 0x1000ac40
push 0x1007dbcc
push 0xff00ff00
jmp 0x1000ac4a
push 0x1007dbd0
push 0xffffff00
push 0x1c2
push 0x12c
push dword [0x1008798c]
call fcn.100085a0
add esp, 0x14
mov ecx, edi
call fcn.1000a0d0
cmp dword [0x10087c78], 0
je 0x1000ac8b
mov edx, 1
lea ecx, [edx + 0x22]
call fcn.1000b090
test eax, eax
je 0x1000ac8b
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
wait
jmp 0x1000ac97
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret