Function at 0x1012f3f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [0x101e6b78]
push edi
test esi, esi
je 0x1012f65a
push 0x54
lea edi, [esi + 0x2fc]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test byte [esi + 8], 2
je 0x1012f654
cmp byte [0x101e4348], 0
je 0x1012f44e
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 0x1012f454
mov cl, byte [0x101e6c7c]
and dword [esi + 0xc], 0xfffffffe
test cl, cl
je 0x1012f654
lea eax, [ebp - 0x10]
push eax
push 0
call dword [sym.imp.XINPUT1_4.dll_Ordinal_2]
test eax, eax
jne 0x1012f654
or dword [esi + 0xc], 1
xorps xmm2, xmm2
mov eax, dword [ebp - 0xc]
movss xmm1, dword [0x1017f0d8]
test eax, 0x1000
je 0x1012f492
movaps xmm0, xmm1
jmp 0x1012f495
xorps xmm0, xmm0
movss dword [edi], xmm0
test eax, 0x2000
je 0x1012f4a5
movaps xmm0, xmm1
jmp 0x1012f4a8
xorps xmm0, xmm0
movss dword [esi + 0x300], xmm0
test eax, 0x4000
je 0x1012f4bc
movaps xmm0, xmm1
jmp 0x1012f4bf
xorps xmm0, xmm0
movss dword [esi + 0x308], xmm0
test ax, ax
jns 0x1012f4d1
movaps xmm0, xmm1
jmp 0x1012f4d4
xorps xmm0, xmm0
movss dword [esi + 0x304], xmm0
test al, 4
je 0x1012f4e5
movaps xmm0, xmm1
jmp 0x1012f4e8
xorps xmm0, xmm0
movss dword [esi + 0x30c], xmm0
test al, 8
je 0x1012f4f9
movaps xmm0, xmm1
jmp 0x1012f4fc
xorps xmm0, xmm0
movss dword [esi + 0x310], xmm0
test al, 1
je 0x1012f50d
movaps xmm0, xmm1
jmp 0x1012f510
xorps xmm0, xmm0
movss dword [esi + 0x314], xmm0
test al, 2
je 0x1012f521
movaps xmm0, xmm1
jmp 0x1012f524
xorps xmm0, xmm0
mov ecx, eax
movss dword [esi + 0x318], xmm0
and ecx, 0x100
je 0x1012f53b
movaps xmm0, xmm1
jmp 0x1012f53e
xorps xmm0, xmm0
movss dword [esi + 0x32c], xmm0
and eax, 0x200
je 0x1012f552
movaps xmm0, xmm1
jmp 0x1012f555
xorps xmm0, xmm0
movss dword [esi + 0x330], xmm0
test cx, cx
je 0x1012f567
movaps xmm0, xmm1
jmp 0x1012f56a
xorps xmm0, xmm0
movss dword [esi + 0x334], xmm0
test ax, ax
je 0x1012f57c
movaps xmm0, xmm1
jmp 0x1012f57f
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 [0x1017f39c]
minss xmm3, xmm0
comiss xmm3, xmm2
jbe 0x1012f5bd
comiss xmm3, dword [esi + 0x31c]
jbe 0x1012f5bd
movss dword [esi + 0x31c], xmm3
movss xmm4, dword [0x1017f318]
lea eax, [ecx - 0x1ea9]
movd xmm0, eax
movaps xmm3, xmm1
cvtdq2ps xmm0, xmm0
divss xmm0, xmm4
minss xmm3, xmm0
comiss xmm3, xmm2
jbe 0x1012f5f3
comiss xmm3, dword [esi + 0x320]
jbe 0x1012f5f3
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 0x1012f625
comiss xmm3, dword [esi + 0x324]
jbe 0x1012f625
movss dword [esi + 0x324], xmm3
lea eax, [ecx + 0x1ea9]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x1017f398]
minss xmm1, xmm0
comiss xmm1, xmm2
jbe 0x1012f654
comiss xmm1, dword [esi + 0x328]
jbe 0x1012f654
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