Function at 0x14004f990
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140149040]
xor rax, rsp
mov qword [rbp + 0x128], rax
mov dword [rbp + 0xa0], 0x50
mov dword [rbp + 0xa4], 0x40
lea rax, [0x140050340]
mov qword [rbp + 0xa8], rax
xor r12d, r12d
mov qword [rbp + 0xb0], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0xb8], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xd0], xmm1
lea rbx, [0x14013e11c]
mov qword [rbp + 0xe0], rbx
mov qword [rbp + 0xe8], r12
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], r12
mov rax, qword [rbp + 0xb8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9d, 0x80000000
mov r8, rbx
mov rdx, qword [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
mov qword [0x140149dd8], rax
lea ecx, [r12 + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rcx, rax
mov qword [0x140149dd0], rax
test rax, rax
je 0x140050222
mov qword [0x140149d90], r12
mov qword [0x140149d9c], r12
mov dword [0x140149da4], r12d
mov qword [0x140149dac], r12
mov dword [0x140149db4], r12d
mov qword [0x140149dc4], r12
mov dword [0x140149db8], 1
mov dword [0x140149da8], 1
mov dword [0x140149d98], r12d
mov dword [0x140149dbc], 1
mov dword [0x140149dc0], 0x50
mov dword [0x140149dcc], 1
mov rax, qword [rax]
lea rdx, [0x140149d88]
mov qword [rsp + 0x30], rdx
lea rdx, [0x140149d90]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rbx
xor edx, edx
lea r8d, [r12 + 1]
call qword [rax + 0x80]
test eax, eax
js 0x14005021b
xor edx, edx
mov rcx, qword [0x140149dd8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140149dd8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x140149d70]
test rax, rax
je 0x14004fb7f
inc dword [rax + 0x3b0]
mov ecx, 0x40b0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0xf0], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], rcx
mov qword [rbp + 0x90], rax
test rax, rax
je 0x14004fbb3
xor edx, edx
mov rcx, rax
call fcn.140007f60
jmp 0x14004fbb6
mov rax, r12
cmp qword [0x140149d70], 0
jne 0x14004fbc7
mov qword [0x140149d70], rax
mov rcx, rax
call fcn.14000ebc0
mov r13, qword [0x140149d70]
mov qword [r13 + 0x20], r12
or dword [r13 + 8], 0x400
mov dword [r13 + 0x1644], r12d
mov dword [r13 + 0x1728], 0x3f800000
call fcn.14003b990
mov rcx, qword [0x140149d88]
mov rbx, qword [0x140149d70]
lea rax, str.imgui_impl_dx9
mov qword [rbx + 0xe8], rax
or dword [rbx + 0xc], 0x1008
mov qword [0x140149e10], rcx
mov rax, qword [rcx]
call qword [rax + 8]
test dword [rbx + 8], 0x400
je 0x14004fc7f
mov rax, qword [0x140149d70]
lea rcx, [fcn.14003b660]
mov qword [rax + 0x15f0], rcx
lea rcx, [fcn.14003b730]
mov qword [rax + 0x15f8], rcx
lea rcx, [0x14003b7b0]
mov qword [rax + 0x1600], rcx
lea rcx, [0x14003b810]
mov qword [rax + 0x1608], rcx
lea rcx, [0x14003b960]
mov qword [rax + 0x1610], rcx
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x80], xmm2
movups xmmword [rbp - 0x50], xmm2
movups xmmword [rbp - 0x40], xmm2
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x78], 3
mov dword [rbp - 0x74], 1
mov dword [rbp - 0x4c], 0x7f7fffff
movss xmm6, dword [0x14013e1b8]
mov dword [rbp - 0x40], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x3c], ax
mov byte [rsp + 0x7c], 0
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x10], xmm1
movaps xmmword [rbp + 0x20], xmm2
movaps xmmword [rbp + 0x30], xmm2
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x40], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x50], xmm1
movaps xmmword [rbp + 0x60], xmm2
movaps xmmword [rbp + 0x70], xmm2
movsd xmm0, qword [rbp - 0x10]
movsd qword [rbp + 0x80], xmm0
lea rax, [0x140058760]
mov qword [rbp], rax
mov dword [rbp + 8], 0xe5510
mov dword [rbp + 0x14], 0x41880000
lea rdx, [rbp]
mov rcx, qword [r13 + 0xa8]
call fcn.140035770
mov rcx, qword [r13 + 0xa8]
call fcn.140035a30
xorps xmm0, xmm0
movups xmmword [rbp + 0xf8], xmm0
movups xmmword [rbp + 0x108], xmm0
movups xmmword [rbp + 0x118], xmm0
nop word [rax + rax]
cmp byte [0x1401490d8], 0
je 0x140050104
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xf8]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14004fdad
lea rcx, [rbp + 0xf8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0xf8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400500f7
cmp qword [0x140149e00], 0
jne 0x14004fdbc
call fcn.14003b4f0
mov rbx, qword [0x140149d70]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x90], xmm0
lea rdx, [rbp + 0x90]
mov rcx, qword [0x140149e40]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp + 0x98]
sub eax, dword [rbp + 0x90]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rbp + 0x9c]
sub eax, dword [rbp + 0x94]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm1
movss dword [rbx + 0x14], xmm0
cmp byte [0x1401492b1], 0
je 0x14004fe6b
mov rdi, qword [0x140149d70]
mov ecx, dword [rdi + 0x161c]
test ecx, ecx
jns 0x14004fe49
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov edx, r12d
test eax, eax
cmovg edx, eax
lea rcx, [rdi + 0x1618]
call fcn.140028f60
mov dword [rdi + 0x1618], r12d
xor r9d, r9d
lea r8, [0x14003c3f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov byte [0x1401492b1], 0
mov qword [rbp + 0xf0], r12
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
sub rax, qword [0x140149e48]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140149e50]
divss xmm1, xmm0
movss dword [rbx + 0x18], xmm1
mov qword [0x140149e48], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13c], al
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13d], al
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13e], al
mov byte [rbx + 0x13f], 0
call fcn.14003bf10
cmp byte [rbx + 0xcf], 0
je 0x14004ff12
mov eax, 0xffffffff
jmp 0x14004ff1f
mov rax, qword [0x140149d70]
mov eax, dword [rax + 0x20d0]
cmp dword [0x1401492b4], eax
je 0x14004ff32
mov dword [0x1401492b4], eax
call fcn.14003bd90
call fcn.14003c120
call fcn.14000d8a0
cmp dword [0x140149f90], 0
jne 0x14004ff56
call fcn.140050400
mov dword [0x140149f90], 1
jmp 0x14004ff5b
call fcn.14004ed70
call fcn.14000ffe0
mov rcx, qword [0x140149d88]
mov rax, qword [rcx]
mov dword [rsp + 0x30], r12d
movss dword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], r12d
mov r9d, 3
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x140149d88]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004ffda
call fcn.1400104b0
mov rax, qword [0x140149d70]
mov rcx, qword [rax + 0x1ef8]
mov rax, qword [rcx]
add rax, 0xa8
mov rcx, r12
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.14003ac40
mov rcx, qword [0x140149d88]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r13 + 8], 0x400
je 0x1400500ba
call fcn.14001f4f0
mov rbx, qword [0x140149d70]
mov r14d, 1
mov eax, dword [rbx + 0x1628]
cmp eax, r14d
jle 0x14005005c
mov esi, 8
nop word [rax + rax]
mov rax, qword [rbx + 0x1630]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x14005004a
mov rax, qword [rbx + 0x15c0]
test rax, rax
je 0x140050037
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1608]
test rax, rax
je 0x14005004a
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
mov eax, dword [rbx + 0x1628]
cmp r14d, eax
jl 0x140050010
mov r14d, 1
cmp eax, r14d
jle 0x1400500ba
mov esi, 8
nop dword [rax]
mov rax, qword [rbx + 0x1630]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x1400500aa
mov rax, qword [rbx + 0x15c8]
test rax, rax
je 0x140050097
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1610]
test rax, rax
je 0x1400500aa
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
cmp r14d, dword [rbx + 0x1628]
jl 0x140050070
mov rcx, qword [0x140149d88]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x1400500f7
mov rcx, qword [0x140149d88]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x1400500f7
call fcn.1400502a0
cmp dword [rbp + 0x100], 0x12
jne 0x14004fd60
call fcn.14001fad0
call fcn.14003b580
mov rcx, qword [0x140149e10]
test rcx, rcx
je 0x140050127
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140149e10], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rax
lea rcx, str.ImGui_Platform
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov rcx, qword [0x140149e28]
test rcx, rcx
je 0x140050151
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140149e28], r12
mov qword [0x140149e30], r12
mov qword [0x140149e38], r12
mov qword [0x140149e40], r12
mov qword [0x140149e48], r12
mov qword [0x140149e50], r12
mov dword [0x1401492b4], 9
mov byte [0x140149e20], 0
mov byte [0x1401492b0], 1
mov rbx, qword [0x140149d70]
mov rcx, rbx
call fcn.14000ef20
cmp qword [0x140149d70], rbx
jne 0x1400501b2
mov qword [0x140149d70], r12
test rbx, rbx
je 0x1400501da
mov rcx, rbx
call fcn.140029a80
mov rax, qword [0x140149d70]
test rax, rax
je 0x1400501d1
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140149d88]
test rcx, rcx
je 0x1400501f3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140149d88], r12
mov rcx, qword [0x140149dd0]
test rcx, rcx
je 0x14005020c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140149dd0], r12
mov rcx, qword [0x140149dd8]
call qword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x140050257
mov rcx, qword [0x140149dd0]
mov rdx, qword [0x140149d88]
test rdx, rdx
je 0x140050245
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [0x140149d88], r12
mov rcx, qword [0x140149dd0]
test rcx, rcx
je 0x140050257
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140149dd0], r12
mov rdx, qword [rbp + 0xb8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov rcx, qword [rbp + 0x128]
xor rcx, rsp
call fcn.140051060
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret