Function at 0x1012f260
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [0x101e6b78]
push edi
test esi, esi
je 0x1012f4ca
push 0x54
lea edi, [esi + 0x2fc]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test byte [esi + 8], 2
je 0x1012f4c4
cmp byte [0x101e4348], 0
je 0x1012f2be
lea eax, [ebp - 0x24]
push eax
push 1
push 0
call dword [sym.imp.XINPUT1_4.dll_Ordinal_4]
test eax, eax
mov byte [0x101e4348], 0
sete cl
mov byte [0x101e6c7c], cl
jmp 0x1012f2c4
mov cl, byte [0x101e6c7c]
and dword [esi + 0xc], 0xfffffffe
test cl, cl
je 0x1012f4c4
lea eax, [ebp - 0x10]
push eax
push 0
call dword [sym.imp.XINPUT1_4.dll_Ordinal_2]
test eax, eax
jne 0x1012f4c4
or dword [esi + 0xc], 1
xorps xmm2, xmm2
mov eax, dword [ebp - 0xc]
movss xmm1, dword [0x1017f158]
test eax, 0x1000
je 0x1012f302
movaps xmm0, xmm1
jmp 0x1012f305
xorps xmm0, xmm0
movss dword [edi], xmm0
test eax, 0x2000
je 0x1012f315
movaps xmm0, xmm1
jmp 0x1012f318
xorps xmm0, xmm0
movss dword [esi + 0x300], xmm0
test eax, 0x4000
je 0x1012f32c
movaps xmm0, xmm1
jmp 0x1012f32f
xorps xmm0, xmm0
movss dword [esi + 0x308], xmm0
test ax, ax
jns 0x1012f341
movaps xmm0, xmm1
jmp 0x1012f344
xorps xmm0, xmm0
movss dword [esi + 0x304], xmm0
test al, 4
je 0x1012f355
movaps xmm0, xmm1
jmp 0x1012f358
xorps xmm0, xmm0
movss dword [esi + 0x30c], xmm0
test al, 8
je 0x1012f369
movaps xmm0, xmm1
jmp 0x1012f36c
xorps xmm0, xmm0
movss dword [esi + 0x310], xmm0
test al, 1
je 0x1012f37d
movaps xmm0, xmm1
jmp 0x1012f380
xorps xmm0, xmm0
movss dword [esi + 0x314], xmm0
test al, 2
je 0x1012f391
movaps xmm0, xmm1
jmp 0x1012f394
xorps xmm0, xmm0
mov ecx, eax
movss dword [esi + 0x318], xmm0
and ecx, 0x100
je 0x1012f3ab
movaps xmm0, xmm1
jmp 0x1012f3ae
xorps xmm0, xmm0
movss dword [esi + 0x32c], xmm0
and eax, 0x200
je 0x1012f3c2
movaps xmm0, xmm1
jmp 0x1012f3c5
xorps xmm0, xmm0
movss dword [esi + 0x330], xmm0
test cx, cx
je 0x1012f3d7
movaps xmm0, xmm1
jmp 0x1012f3da
xorps xmm0, xmm0
movss dword [esi + 0x334], xmm0
test ax, ax
je 0x1012f3ec
movaps xmm0, xmm1
jmp 0x1012f3ef
xorps xmm0, xmm0
movsx ecx, word [ebp - 8]
movaps xmm3, xmm1
movss dword [esi + 0x338], xmm0
lea eax, [ecx + 0x1ea9]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x1017f42c]
minss xmm3, xmm0
comiss xmm3, xmm2
jbe 0x1012f42d
comiss xmm3, dword [esi + 0x31c]
jbe 0x1012f42d
movss dword [esi + 0x31c], xmm3
movss xmm4, dword [0x1017f3a4]
lea eax, [ecx - 0x1ea9]
movd xmm0, eax
movaps xmm3, xmm1
cvtdq2ps xmm0, xmm0
divss xmm0, xmm4
minss xmm3, xmm0
comiss xmm3, xmm2
jbe 0x1012f463
comiss xmm3, dword [esi + 0x320]
jbe 0x1012f463
movss dword [esi + 0x320], xmm3
movsx ecx, word [ebp - 6]
movaps xmm3, xmm1
lea eax, [ecx - 0x1ea9]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, xmm4
minss xmm3, xmm0
comiss xmm3, xmm2
jbe 0x1012f495
comiss xmm3, dword [esi + 0x324]
jbe 0x1012f495
movss dword [esi + 0x324], xmm3
lea eax, [ecx + 0x1ea9]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x1017f428]
minss xmm1, xmm0
comiss xmm1, xmm2
jbe 0x1012f4c4
comiss xmm1, dword [esi + 0x328]
jbe 0x1012f4c4
movss dword [esi + 0x328], xmm1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3