Function at 0x14005b160
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
call fcn.14005bae0
mov ecx, 0x10
call fcn.14005cb50
lea rdx, [0x140002a20]
mov rcx, rax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
call fcn.140001b70
mov ecx, 0x10
mov qword [0x140070978], rax
call fcn.14005cb50
lea rdx, [0x140001440]
mov rcx, rax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
call fcn.140001b70
mov ecx, 0x10
call fcn.14005cb50
lea rcx, [0x1400020b0]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140001b70
add rsp, 0x38
jmp 0x14005b160
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140070010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rax, qword [0x140070988]
test rax, rax
je 0x14005b1b4
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x14005b1b4
mov byte [rcx + 0x2e], 1
mov ebx, 4
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.140049e60
test eax, eax
je 0x14005b23a
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x140070b00], eax
jle 0x14005b213
lea rcx, [0x140070b00]
call fcn.14005ce7c
cmp dword [0x140070b00], 0xffffffff
jne 0x14005b213
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140070b10], rax
lea rcx, [0x140070b00]
call fcn.14005ce10
lea rdx, str.SetThreadDpiAwarenessContext
mov rcx, qword [0x140070b10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005b23a
mov rcx, 0xfffffffffffffffc
call rax
jmp 0x14005b2bf
mov edx, 3
lea ecx, [rdx + 3]
call fcn.140049e60
test eax, eax
je 0x14005b2b9
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x140070b08], eax
jle 0x14005b297
lea rcx, [0x140070b08]
call fcn.14005ce7c
cmp dword [0x140070b08], 0xffffffff
jne 0x14005b297
lea rcx, str.shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140070af0], rax
lea rcx, [0x140070b08]
call fcn.14005ce10
lea rdx, str.SetProcessDpiAwareness
mov rcx, qword [0x140070af0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005b2b9
mov ecx, 2
call rax
jmp 0x14005b2bf
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
mov dword [rbp + 0x10], 0x50
mov dword [rbp + 0x14], 0x40
lea rax, [0x14005b030]
mov qword [rbp + 0x18], rax
xor r15d, r15d
mov qword [rbp + 0x20], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x28], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x40], xmm1
lea rbx, str.ImGui_Standalone
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], r15
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], r15
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 0x32
mov dword [rsp + 0x30], 0x32
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
mov r9d, 0xcf0000
mov r8, rbx
mov rdx, qword [rbp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r12, rax
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x6c], r15
mov qword [rbp - 0x58], 2
mov qword [rbp - 0x40], 2
mov qword [rbp - 0x80], r15
mov dword [rbp - 0x70], 0x1c
mov dword [rbp - 0x78], 0x3c
mov dword [rbp - 0x74], 1
mov dword [rbp - 0x5c], 0x20
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x64], 1
mov qword [rbp - 0x48], 1
mov dword [rbp + 0x88], 0xb000
mov dword [rbp + 0x8c], 0xa000
lea rax, [0x140070998]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [0x1400709a8]
mov qword [rsp + 0x48], rax
lea rax, [0x1400709a0]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 1]
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x14005b438
call fcn.14005afb0
jmp 0x14005ba94
call fcn.14005af40
xor edx, edx
mov rcx, r12
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, r12
call qword [sym.imp.USER32.dll_UpdateWindow]
mov r13, qword [0x140070988]
test r13, r13
je 0x14005b464
inc dword [r13 + 0xf4]
mov ecx, 0x6450
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x88], rcx
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14005b496
xor edx, edx
mov rcx, rax
call fcn.14000fd80
jmp 0x14005b499
mov rax, r15
mov qword [0x140070988], rax
call fcn.140017ad0
test r13, r13
je 0x14005b4b3
mov qword [0x140070988], r13
jmp 0x14005b4ba
mov r13, qword [0x140070988]
or dword [r13 + 8], 0x401
xor ecx, ecx
call fcn.14003cea0
mov rax, qword [0x140070988]
test dword [r13 + 8], 0x400
je 0x14005b4ee
mov dword [rax + 0x3918], 0x40800000
mov dword [rax + 0x39fc], 0x3f800000
mov edx, 2
mov rcx, r12
call qword [sym.imp.USER32.dll_MonitorFromWindow]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rcx
mov dword [rbp + 0x60], 0x28
lea rdx, [rbp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov byte [rbp - 0x74], 1
mov dword [rbp - 0x68], 3
mov dword [rbp - 0x64], 1
mov dword [rbp - 0x3c], 0x7f7fffff
mov dword [rbp - 0x30], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x2c], ax
mov dword [rbp - 0x6c], 0x41d00000
lea rdx, [rbp - 0x80]
mov rcx, qword [0x140070988]
mov rcx, qword [rcx + 0x50]
call fcn.140041ca0
mov rax, qword [0x140070988]
mov qword [rax + 0x20], r15
mov rcx, r12
call fcn.140047d70
mov r14, qword [0x140070998]
mov rsi, qword [0x1400709a8]
mov rdi, qword [0x140070988]
test rdi, rdi
je 0x14005b5c4
inc dword [rdi + 0xf4]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14005b610
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
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
mov qword [rbx + 0x70], rax
mov dword [rbx + 0x70], 0x1388
mov dword [rbx + 0x74], 0x2710
jmp 0x14005b613
mov rbx, r15
mov qword [rdi + 0xa0], rbx
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x90], rax
or dword [rdi + 0xc], 0x1008
mov qword [rsp + 0x78], r15
mov qword [rbp + 0x88], r15
mov qword [rsp + 0x70], r15
mov rax, qword [rsi]
lea r8, [rsp + 0x78]
lea rdx, [0x140065b08]
mov rcx, rsi
call qword [rax]
test eax, eax
jne 0x14005b6a2
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea r8, [rbp + 0x88]
lea rdx, [0x140065b18]
call qword [rax + 0x30]
test eax, eax
jne 0x14005b6a2
mov rcx, qword [rbp + 0x88]
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [0x140065b38]
call qword [rax + 0x30]
test eax, eax
jne 0x14005b6a2
mov qword [rbx], rsi
mov qword [rbx + 8], r14
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x10], rax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14005b6b2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14005b6c4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 8]
test dword [rdi + 8], 0x400
je 0x14005b72d
mov rax, qword [0x140070988]
lea rcx, [0x1400479c0]
mov qword [rax + 0x38a0], rcx
lea rcx, [0x140047b20]
mov qword [rax + 0x38a8], rcx
lea rcx, [0x140047bb0]
mov qword [rax + 0x38b0], rcx
lea rcx, [0x140047ca0]
mov qword [rax + 0x38b8], rcx
lea rcx, [0x140047d50]
mov qword [rax + 0x38c0], rcx
xor r15b, r15b
mov edi, 1
nop word [rax + rax]
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14005b79a
nop word [rax + rax]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageW]
movzx r15d, r15b
cmp dword [rbp - 0x78], 0x12
cmove r15d, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14005b760
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x14005b95c
test r15b, r15b
jne 0x14005b95c
mov rax, qword [0x140070988]
test rax, rax
je 0x14005b7cb
mov rcx, qword [rax + 0xa0]
jmp 0x14005b7cd
xor ecx, ecx
cmp qword [rcx + 0x48], 0
jne 0x14005b7d9
call fcn.1400474b0
call fcn.140048dd0
call fcn.1400168e0
call fcn.14005a670
call fcn.140019590
call fcn.140019a90
movaps xmm0, xmmword [0x140066520]
movups xmmword [rbp + 0x90], xmm0
mov rcx, qword [0x140070998]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1400709b0]
mov edx, edi
call qword [rax + 0x108]
mov rcx, qword [0x140070998]
mov rax, qword [rcx]
lea r8, [rbp + 0x90]
mov rdx, qword [0x1400709b0]
call qword [rax + 0x190]
mov rax, qword [0x140070988]
mov rcx, qword [rax + 0x4210]
mov rax, qword [rcx]
add rax, 0xa8
xor ecx, ecx
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140046830
test dword [r13 + 8], 0x400
je 0x14005b93d
call fcn.14002ac60
mov rbx, qword [0x140070988]
mov r14d, edi
mov eax, dword [rbx + 0x38d8]
cmp eax, 1
jle 0x14005b8e1
mov esi, 8
nop dword [rax + rax]
mov rax, qword [rbx + 0x38e0]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x14005b8ca
mov rax, qword [rbx + 0x3878]
test rax, rax
je 0x14005b8b7
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x38b8]
test rax, rax
je 0x14005b8ca
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
mov eax, dword [rbx + 0x38d8]
cmp r14d, eax
jl 0x14005b890
mov edi, 1
mov esi, edi
cmp eax, 1
jle 0x14005b93d
mov r14d, 8
nop
mov rax, qword [rbx + 0x38e0]
mov rdi, qword [r14 + rax]
test dword [rdi + 4], 0x400
jne 0x14005b92a
mov rax, qword [rbx + 0x3880]
test rax, rax
je 0x14005b917
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x38c0]
test rax, rax
je 0x14005b92a
xor edx, edx
mov rcx, rdi
call rax
inc esi
add r14, 8
cmp esi, dword [rbx + 0x38d8]
jl 0x14005b8f0
mov edi, 1
mov rcx, qword [0x1400709a0]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, edi
call qword [rax + 0x40]
cmp byte [0x140070055], 1
je 0x14005b740
mov rdi, qword [0x140070988]
xor esi, esi
test rdi, rdi
je 0x14005b973
mov rbx, qword [rdi + 0xa0]
jmp 0x14005b976
mov rbx, rsi
call fcn.14002b250
call fcn.1400478a0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005b98f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005b99d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005b9ac
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0xa0], rsi
mov rax, qword [0x140070988]
test rax, rax
je 0x14005b9cc
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140070988]
test rbx, rbx
je 0x14005b9ea
mov rdi, qword [rbx + 0x98]
jmp 0x14005b9ed
mov rdi, 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]
call fcn.14002b250
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14005ba19
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x98], rsi
mov rax, qword [0x140070988]
test rax, rax
je 0x14005ba39
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140070988]
mov qword [0x140070988], rbx
call fcn.140017e30
mov qword [0x140070988], rsi
test rbx, rbx
je 0x14005ba84
mov rcx, rbx
call fcn.140035910
mov rax, qword [0x140070988]
test rax, rax
je 0x14005ba7b
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.14005afb0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14005cb30
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret