Function at 0x140058be0
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 - 0x1f8]
sub rsp, 0x2d0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
mov rax, qword [0x140155010]
xor rax, rsp
mov qword [rbp + 0x150], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x108], xmm0
lea rdi, [rbp + 0x1f8]
movabs r14, 0xff00ff00ff00ff00
mov qword [rbp + 0x110], r14
mov qword [rbp + 0x118], rdi
mov r12, qword [rdi]
xor r12, r14
mov qword [rbp + 0x108], r12
xor esi, esi
mov qword [rdi], rsi
mov dword [rbp + 0xb0], 0x50
mov dword [rbp + 0xb4], 0x40
lea rax, [0x1400597c0]
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0xc8], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xd0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xe0], xmm1
lea rbx, [0x140148514]
mov qword [rbp + 0xf0], rbx
mov qword [rbp + 0xf8], rsi
lea rcx, [rbp + 0xb0]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], rsi
mov rax, qword [rbp + 0xc8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 0x80000000
mov r8, rbx
mov rdx, qword [rbp + 0xf0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
mov qword [0x14016e400], rax
lea ecx, [rsi + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rcx, rax
mov qword [0x14016e3f8], rax
test rax, rax
je 0x14005966e
mov qword [0x14016e3b0], rsi
mov qword [0x14016e3bc], rsi
mov dword [0x14016e3c4], esi
mov qword [0x14016e3cc], rsi
mov dword [0x14016e3d4], esi
mov qword [0x14016e3e4], rsi
mov dword [0x14016e3d8], 1
mov dword [0x14016e3c8], 1
mov dword [0x14016e3b8], esi
mov dword [0x14016e3dc], 1
mov dword [0x14016e3e0], 0x50
mov dword [0x14016e3ec], 1
mov rax, qword [rax]
lea rdx, [0x14016e3f0]
mov qword [rsp + 0x30], rdx
lea rdx, [0x14016e3b0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rbx
xor edx, edx
lea r8d, [rsi + 1]
call qword [rax + 0x80]
test eax, eax
js 0x140059667
xor edx, edx
mov rcx, qword [0x14016e400]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14016e400]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x14016e390]
test rax, rax
je 0x140058e22
inc dword [rax + 0x3b0]
mov ecx, 0x40b0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x100], rax
lea rcx, [rsp + 0x60]
mov qword [rbp], rcx
mov qword [rbp + 0xa0], rax
test rax, rax
je 0x140058e58
xor edx, edx
mov rcx, rax
call fcn.14000dbd0
mov rcx, rax
jmp 0x140058e5b
mov rcx, rsi
mov rax, qword [0x14016e390]
test rax, rax
cmove rax, rcx
mov qword [0x14016e390], rax
call fcn.1400148f0
mov r13, qword [0x14016e390]
mov qword [r13 + 0x20], rsi
or dword [r13 + 8], 0x400
mov dword [r13 + 0x1644], esi
mov dword [r13 + 0x1728], 0x3f800000
call fcn.140041990
mov rcx, qword [0x14016e3f0]
mov rbx, qword [0x14016e390]
lea rax, str.imgui_impl_dx9
mov qword [rbx + 0xe8], rax
or dword [rbx + 0xc], 0x1008
mov qword [0x14016e480], rcx
mov rax, qword [rcx]
call qword [rax + 8]
test dword [rbx + 8], 0x400
je 0x140058f25
mov rax, qword [0x14016e390]
lea rcx, [fcn.140041660]
mov qword [rax + 0x15f0], rcx
lea rcx, [fcn.140041730]
mov qword [rax + 0x15f8], rcx
lea rcx, [0x1400417b0]
mov qword [rax + 0x1600], rcx
lea rcx, [0x140041810]
mov qword [rax + 0x1608], rcx
lea rcx, [0x140041960]
mov qword [rax + 0x1610], rcx
xorps xmm11, xmm11
xor eax, eax
movups xmmword [rbp + 0x10], xmm11
movups xmmword [rbp + 0x20], xmm11
movups xmmword [rbp + 0x60], xmm11
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x28], 3
mov dword [rbp + 0x2c], 1
movss xmm0, dword [0x140148674]
movss xmm12, dword [0x1401485b0]
mov dword [rbp + 0x60], 0x3f800000
mov eax, 0xffff
mov word [rbp + 0x64], ax
mov byte [rbp + 0x1c], 0
movaps xmm10, xmmword [rbp + 0x10]
movaps xmmword [rsp + 0x70], xmm10
movaps xmm9, xmmword [rbp + 0x20]
movaps xmmword [rbp - 0x80], xmm9
movaps xmmword [rbp - 0x70], xmm11
movaps xmmword [rbp - 0x60], xmm11
xorps xmm8, xmm8
shufps xmm8, xmm8, 0xe1
movss xmm8, xmm0
shufps xmm8, xmm8, 0xe1
movaps xmmword [rbp - 0x50], xmm8
movaps xmm7, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x40], xmm7
movaps xmmword [rbp - 0x30], xmm11
movaps xmmword [rbp - 0x20], xmm11
movsd xmm6, qword [rbp + 0x90]
movsd qword [rbp - 0x10], xmm6
lea rax, [0x140062b20]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0xe5510
movss xmm0, dword [0x140148614]
movss dword [rbp - 0x7c], xmm0
lea rdx, [rsp + 0x70]
mov rcx, qword [r13 + 0xa8]
call fcn.14003b7b0
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rbp - 0x80], xmm9
movaps xmmword [rbp - 0x70], xmm11
movaps xmmword [rbp - 0x60], xmm11
movaps xmmword [rbp - 0x50], xmm8
movaps xmmword [rbp - 0x40], xmm7
movaps xmmword [rbp - 0x30], xmm11
movaps xmmword [rbp - 0x20], xmm11
movsd qword [rbp - 0x10], xmm6
lea rbx, [0x140155070]
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], 0x184f8
movss xmm0, dword [0x140148624]
movss dword [rbp - 0x7c], xmm0
lea rdx, [rsp + 0x70]
mov rcx, qword [r13 + 0xa8]
call fcn.14003b7b0
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rbp - 0x80], xmm9
movaps xmmword [rbp - 0x70], xmm11
movaps xmmword [rbp - 0x60], xmm11
movaps xmmword [rbp - 0x50], xmm8
movaps xmmword [rbp - 0x40], xmm7
movaps xmmword [rbp - 0x30], xmm11
movaps xmmword [rbp - 0x20], xmm11
movsd qword [rbp - 0x10], xmm6
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], 0x184f8
movss xmm0, dword [0x140148618]
movss dword [rbp - 0x7c], xmm0
lea rdx, [rsp + 0x70]
mov rcx, qword [r13 + 0xa8]
call fcn.14003b7b0
mov rcx, qword [r13 + 0xa8]
call fcn.14003ba60
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movss xmm6, dword [0x14014856c]
movss xmm7, dword [0x140148644]
movss xmm8, dword [0x140148650]
cmp byte [0x140155068], 0
je 0x140059526
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x120]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14005913d
lea rcx, [rbp + 0x120]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x120]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140059519
cmp qword [0x14016e470], 0
jne 0x14005914c
call fcn.1400414f0
mov rbx, qword [0x14016e390]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
lea rdx, [rbp + 0xa0]
mov rcx, qword [0x14016e4b0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp + 0xac]
sub eax, dword [rbp + 0xa4]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rbp + 0xa8]
sub eax, dword [rbp + 0xa0]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm0
movss dword [rbx + 0x14], xmm1
cmp byte [0x14016d719], 0
je 0x1400591f9
mov rdi, qword [0x14016e390]
mov ecx, dword [rdi + 0x161c]
test ecx, ecx
jns 0x1400591d8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov edx, esi
test eax, eax
cmovg edx, eax
lea rcx, [rdi + 0x1618]
call fcn.14002f320
mov dword [rdi + 0x1618], esi
xor r9d, r9d
lea r8, [0x1400423e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov byte [0x14016d719], 0
mov qword [rbp + 0x100], rsi
lea rcx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0x100]
mov rax, rcx
sub rax, qword [0x14016e4b8]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x14016e4c0]
divss xmm1, xmm0
movss dword [rbx + 0x18], xmm1
mov qword [0x14016e4b8], 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.140041f10
cmp byte [rbx + 0xcf], 0
je 0x1400592a0
mov eax, 0xffffffff
jmp 0x1400592ad
mov rax, qword [0x14016e390]
mov eax, dword [rax + 0x20d0]
cmp dword [0x14016d71c], eax
je 0x1400592c0
mov dword [0x14016d71c], eax
call fcn.140041d90
call fcn.140042110
call fcn.1400135b0
cmp dword [0x14016e5f0], 0
jne 0x1400592e7
call fcn.140059880
mov dword [0x14016e5f0], 1
jmp 0x140059378
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rcx, qword [0x14016e390]
mov dword [rcx + 0x1de4], 0x44480000
mov dword [rcx + 0x1de8], 0x43af0000
mov dword [rcx + 0x1dc8], 2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm6
subss xmm1, xmm7
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm6
subss xmm0, xmm8
or dword [rcx + 0x1dc0], 3
movss dword [rcx + 0x1dd4], xmm0
movss dword [rcx + 0x1dd8], xmm1
mov qword [rcx + 0x1ddc], 0
mov dword [rcx + 0x1dc4], 2
mov byte [rcx + 0x1dfc], 1
call fcn.140055c00
call fcn.140015d10
mov rcx, qword [0x14016e3f0]
mov rax, qword [rcx]
mov dword [rsp + 0x30], esi
movss dword [rsp + 0x28], xmm12
mov dword [rsp + 0x20], esi
mov r9d, 3
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x14016e3f0]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x1400593fa
call fcn.1400161d0
mov rax, qword [0x14016e390]
mov rax, qword [rax + 0x1ef8]
mov rcx, qword [rax]
add rcx, 0xa8
mov rax, rsi
cmp byte [rcx], 0
cmovne rax, rcx
mov rcx, rax
call fcn.140040c40
mov rcx, qword [0x14016e3f0]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r13 + 8], 0x400
je 0x1400594dc
call fcn.140025bc0
mov rbx, qword [0x14016e390]
mov r14d, 1
mov eax, dword [rbx + 0x1628]
cmp eax, r14d
jle 0x14005947e
mov esi, 8
nop word [rax + rax]
mov rax, qword [rbx + 0x1630]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x14005946a
mov rax, qword [rbx + 0x15c0]
test rax, rax
je 0x140059457
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1608]
test rax, rax
je 0x14005946a
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
mov eax, dword [rbx + 0x1628]
cmp r14d, eax
jl 0x140059430
xor esi, esi
mov r14d, 1
cmp eax, r14d
jle 0x1400594dc
mov esi, 8
nop
mov rax, qword [rbx + 0x1630]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x1400594ca
mov rax, qword [rbx + 0x15c8]
test rax, rax
je 0x1400594b7
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1610]
test rax, rax
je 0x1400594ca
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
cmp r14d, dword [rbx + 0x1628]
jl 0x140059490
xor esi, esi
mov rcx, qword [0x14016e3f0]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140059519
mov rcx, qword [0x14016e3f0]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140059519
call fcn.140059720
cmp dword [rbp + 0x128], 0x12
jne 0x1400590f0
call fcn.1400261c0
call fcn.140041580
mov rcx, qword [0x14016e480]
test rcx, rcx
je 0x140059549
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14016e480], rsi
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 [0x14016e498]
test rcx, rcx
je 0x140059573
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14016e498], rsi
mov qword [0x14016e4a0], rsi
mov qword [0x14016e4a8], rsi
mov qword [0x14016e4b0], rsi
mov qword [0x14016e4b8], rsi
mov qword [0x14016e4c0], rsi
mov dword [0x14016d71c], 9
mov byte [0x14016e490], 0
mov byte [0x14016d718], 1
mov rbx, qword [0x14016e390]
mov rcx, rbx
call fcn.140014c50
mov rax, qword [0x14016e390]
cmp rax, rbx
cmove rax, rsi
mov qword [0x14016e390], rax
test rbx, rbx
je 0x140059601
mov rcx, rbx
call fcn.14002fd70
mov rax, qword [0x14016e390]
test rax, rax
je 0x1400595f8
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x14016e3f0]
test rcx, rcx
je 0x14005961a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14016e3f0], rsi
mov rcx, qword [0x14016e3f8]
test rcx, rcx
je 0x140059633
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14016e3f8], rsi
mov rcx, qword [0x14016e400]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.USER32.dll_UnregisterClassW]
lea rdi, [rbp + 0x1f8]
movabs r14, 0xff00ff00ff00ff00
jmp 0x1400596b8
mov rcx, qword [0x14016e3f8]
mov rdx, qword [0x14016e3f0]
test rdx, rdx
je 0x140059691
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [0x14016e3f0], rsi
mov rcx, qword [0x14016e3f8]
test rcx, rcx
je 0x1400596a3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14016e3f8], rsi
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.USER32.dll_UnregisterClassW]
nop
xor r12, r14
mov qword [rdi], r12
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14005a640
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret