Function at 0x140127530
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x220
movaps xmmword [rsp + 0x210], xmm6
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1401be040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r13, rdx
mov r12, rcx
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rdx
movabs r8, 0x53a118d95ce8cd28
mov qword [rbp], r8
mov rax, qword [rbp]
mov qword [rbp + 0xe0], rax
movabs rdx, 0x9907882204c75f96
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0xe8], rax
movabs rcx, 0xd67808ee56056cb5
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0xf0], rax
movabs r10, 0x781438265eafd074
mov qword [rbp], r10
mov rax, qword [rbp]
mov qword [rbp + 0xf8], rax
movabs rsi, 0x53c018bd5c8dcd65
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x180], rax
movabs rbx, 0x9962885404885ffa
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0x188], rax
movabs r9, 0xd601088f56696cc7
mov qword [rbp], r9
mov rax, qword [rbp]
mov qword [rbp + 0x190], rax
mov qword [rbp], r10
mov rax, qword [rbp]
mov qword [rbp + 0x198], rax
vmovdqu ymm0, ymmword [rbp + 0xe0]
vpxor ymm1, ymm0, ymmword [rbp + 0x180]
vmovdqu ymmword [rbp + 0xe0], ymm1
mov qword [rbp], r8
mov rax, qword [rbp]
mov qword [rbp + 0x100], rax
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0x108], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x110], rax
movabs rax, 0x786738475ec3d037
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x118], rax
movabs rax, 0x45e84c496a1eefba
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x120], rax
movabs rcx, 0x8c2f950042b021ee
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x128], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x140], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0x148], rax
mov qword [rbp], r9
mov rax, qword [rbp]
mov qword [rbp + 0x150], rax
mov qword [rbp], r10
mov rax, qword [rbp]
mov qword [rbp + 0x158], rax
movabs rax, 0x45e84c496a1eefc9
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x160], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x168], rax
vmovdqu ymm0, ymmword [rbp + 0x100]
vpxor ymm1, ymm0, ymmword [rbp + 0x140]
vmovdqa ymmword [rbp + 0x100], ymm1
vmovdqa xmm0, xmmword [rbp + 0x120]
vxorps xmm0, xmm0, xmmword [rbp + 0x160]
vmovdqa xmmword [rbp + 0x120], xmm0
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x100]
vzeroupper
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
mov qword [rbp], rax
test rax, rax
jne 0x140127786
xor esi, esi
jmp 0x140127eca
movabs rax, 0x53c018bd28feb837
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0x10], rbx
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0x10], rsi
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x10], rbx
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x48], rax
movdqa xmm0, xmmword [rbp + 0xd0]
xorps xmm0, xmmword [rbp + 0x40]
movdqa xmmword [rbp + 0xd0], xmm0
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x1401277f9
xor esi, esi
jmp 0x140127eca
mov edx, 5
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
movzx ebx, word [0x14023c95c]
movzx r14d, word [0x14023c958]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rcx, rax
mov qword [0x1402419e0], rax
xor esi, esi
test rax, rax
je 0x140127eca
mov dword [0x140241a18], 1
mov dword [0x140241a08], 1
mov qword [0x140241a10], rdi
mov dword [0x1402419f8], 0x15
mov dword [0x1402419f0], r14d
mov dword [0x1402419f4], ebx
mov qword [0x1402419fc], 2
mov dword [0x140241a04], esi
mov dword [0x140241a1c], 1
mov dword [0x140241a20], 0x50
mov dword [0x140241a2c], 1
mov dword [0x140241a28], esi
mov rax, qword [rax]
lea rdx, [0x1402419e8]
mov qword [rsp + 0x30], rdx
lea rdx, [0x1402419f0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rdi
xor edx, edx
lea r8d, [rsi + 1]
call qword [rax + 0x80]
test eax, eax
js 0x140127eca
mov r14, qword [0x140241980]
test r14, r14
je 0x1401278f3
inc dword [r14 + 0xec]
mov ecx, 0x5570
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 8]
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x18], rax
test rax, rax
je 0x140127925
xor edx, edx
mov rcx, rax
call fcn.1400e0050
jmp 0x140127928
mov rax, rsi
mov qword [0x140241980], rax
call fcn.1400e6730
test r14, r14
je 0x140127942
mov qword [0x140241980], r14
jmp 0x140127949
mov r14, qword [0x140241980]
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140127a8e
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140127a8e
mov rax, qword [0x140241980]
test rax, rax
je 0x14012797f
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1401279ac
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], rax
jmp 0x1401279af
mov rbx, rsi
mov qword [r14 + 0x90], rbx
lea rax, str.imgui_impl_win32
mov qword [r14 + 0x80], rax
or dword [r14 + 0xc], 6
mov qword [rbx], rdi
mov byte [rbx + 0x2d], 1
mov rax, qword [rbp + 0x28]
mov qword [rbx + 0x20], rax
mov rax, qword [rbp + 0x30]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x28], 9
mov rax, qword [0x140241980]
mov rcx, qword [rax + 0x4088]
mov rax, qword [rcx]
mov qword [rax + 0x28], rdi
lea rax, str.xinput1_4.dll
mov qword [rbp + 0x50], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 0x58], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0x60], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0x68], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0x70], rax
mov rdi, rsi
nop word [rax + rax]
mov rcx, qword [rbp + rdi*8 + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
jne 0x140127a5e
inc rdi
cmp rdi, 5
jl 0x140127a40
jmp 0x140127a8a
mov qword [rbx + 0x30], r15
lea rdx, str.XInputGetCapabilities
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
mov rdi, qword [rbp]
mov r15, qword [0x1402419e8]
mov rbx, qword [0x140241980]
test rbx, rbx
je 0x140127aa7
inc dword [rbx + 0xec]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140127ad6
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140127ad9
mov rax, rsi
mov qword [rbx + 0x98], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x88], rcx
or dword [rbx + 0xc], 8
mov qword [rax], r15
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 8]
lea rcx, [r14 + 8]
call fcn.140126e60
mov rcx, qword [0x1402419e0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov dword [rsp + 0x30], esi
mov eax, dword [0x14023c95c]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14023c958]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongA]
btr eax, 0x1b
mov r8d, eax
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowLongA]
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
movups xmmword [rbp + 0xa8], xmm0
movups xmmword [rbp + 0xb8], xmm0
movss xmm6, dword [0x1401aefc0]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x98]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140127bbb
lea rcx, [rbp + 0x98]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x98]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15d, eax
mov ecx, eax
sub ecx, dword [0x140241a5c]
cmp ecx, 0x3e8
jbe 0x140127c24
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [rbp + 0x10]
cmp rax, rcx
jne 0x140127c24
mov ebx, dword [0x14023c95c]
mov edi, dword [0x14023c958]
mov edx, 3
call qword [sym.imp.USER32.dll_GetWindow]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov dword [0x140241a5c], r15d
cmp byte [0x14023c960], 0
je 0x140127c91
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [rbp + 0x20]
cvtdq2ps xmm0, xmm0
movss dword [r14 + 0xdf4], xmm0
movd xmm0, dword [rbp + 0x24]
cvtdq2ps xmm0, xmm0
movss dword [r14 + 0xdf8], xmm0
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140127c89
mov byte [r14 + 0xdfc], 1
mov byte [r14 + 0x3730], 1
mov eax, dword [r14 + 0xdf8]
mov dword [r14 + 0x36e0], eax
jmp 0x140127c91
mov byte [r14 + 0xdfc], 0
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140127cc1
cmp byte [0x14023c6b8], 0
je 0x140127cc8
cmp byte [0x14023c960], 0
sete byte [0x14023c960]
mov byte [0x14023c6b8], 0
jmp 0x140127cc8
mov byte [0x14023c6b8], 1
mov rax, qword [0x140241980]
test rax, rax
je 0x140127cdd
mov rcx, qword [rax + 0x98]
jmp 0x140127ce0
mov rcx, rsi
cmp qword [rcx + 0x18], 0
jne 0x140127d03
test rax, rax
je 0x140127d03
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x140127d03
cmp qword [rcx], 0
je 0x140127d03
call fcn.140105bc0
call fcn.1401065b0
call fcn.1400e5500
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x140127ec3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140236298]
mov r9, qword [0x140236288]
mov rdx, qword [0x140236290]
mov r8d, dword [0x14023c964]
test r8d, r8d
jne 0x140127d4a
mov qword [0x140236278], rdx
jmp 0x140127d5c
mov rax, rcx
cmp r8d, 1
cmove rax, r9
mov qword [0x140236278], rax
mov eax, dword [0x14023c968]
test eax, eax
jne 0x140127d6f
mov qword [0x140236280], rdx
jmp 0x140127d7d
cmp eax, 1
cmove rcx, r9
mov qword [0x140236280], rcx
call fcn.140121670
mov rax, qword [0x140241980]
mov rcx, qword [rax + 0x4088]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rcx]
call fcn.1400e3cc0
mov rax, qword [0x140241980]
mov rcx, qword [rax + 0x4088]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rcx]
call fcn.1400e3cc0
cmp byte [0x14023c960], 0
je 0x140127de0
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x140127ec3
mov rax, qword [rcx]
call qword [rax + 0x10]
call fcn.1400e7440
mov rcx, qword [0x1402419e8]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x1402419e8]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x1402419e8]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x1402419e8]
mov rax, qword [rcx]
mov dword [rsp + 0x30], esi
movss dword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], esi
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x1402419e8]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140127ea1
call fcn.1400e7780
mov rax, qword [0x140241980]
mov rcx, qword [rax + 0x4088]
mov rax, qword [rcx]
add rax, 0x48
mov rcx, rsi
cmp byte [rax], sil
cmovne rcx, rax
call fcn.140105600
mov rcx, qword [0x1402419e8]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1402419e8]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
jmp 0x140127b80
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x140127ee8
cmp rcx, r12
sete dl
mov rax, qword [rcx]
xor dl, 1
call qword [rax + 0x20]
mov qword [r12 + 0x38], rsi
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x140127f01
cmp rcx, r13
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [r13 + 0x38], rsi
xor al, al
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14014b630
mov rbx, qword [rsp + 0x270]
movaps xmm6, xmmword [rsp + 0x210]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret