Function at 0x14004fb70
Capabilities:
Log keystrokes via polling

Disassembly:
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 - 0x190]
sub rsp, 0x290
mov rax, qword [0x140063010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov dword [rbp + 0x20], 0x50
mov dword [rbp + 0x24], 0x40
lea rax, [0x140050690]
mov qword [rbp + 0x28], rax
xor r13d, r13d
mov qword [rbp + 0x30], r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x38], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x50], xmm1
lea rdi, str.ImGui_Example
mov qword [rbp + 0x60], rdi
mov qword [rbp + 0x68], r13
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov r12d, 1
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov qword [rsp + 0x58], r13
mov rcx, qword [rbp + 0x38]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, 0x80000000
mov r8, rdi
mov rdx, qword [rbp + 0x60]
mov ecx, 0x8000028
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rdi, rax
lea r9d, [r13 + 2]
mov r8b, 0xff
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x14005ae70]
movdqu xmmword [rbp + 0x170], xmm0
lea rdx, [rbp + 0x170]
mov rcx, rdi
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov qword [rbp - 0x5c], r13
mov qword [rbp - 0x48], 2
mov qword [rbp - 0x30], 2
mov qword [rbp - 0x70], r13
mov dword [rbp - 0x60], 0x1c
mov dword [rbp - 0x68], 0x3c
mov dword [rbp - 0x64], r12d
mov dword [rbp - 0x4c], 0x20
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x54], r12
mov qword [rbp - 0x38], r12
mov dword [rsp + 0x70], 0xb000
mov dword [rsp + 0x74], 0xa000
lea rbx, [0x14008cbb0]
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x70]
mov qword [rsp + 0x50], rax
lea rsi, [0x14008cba8]
mov qword [rsp + 0x48], rsi
lea r14, [0x14008cba0]
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x14004fd8f
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 5]
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x14004fd9d
call fcn.140050610
jmp 0x1400505ca
mov rcx, qword [0x14008cba0]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
lea r8, [0x14005aca8]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x14008cba8]
mov rax, qword [rcx]
lea r9, [0x14008cb98]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, 0xa
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x14008cad0]
test rbx, rbx
je 0x14004fe08
inc dword [rbx + 0xec]
mov ecx, 0x5e68
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x78], rcx
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14004fe37
xor edx, edx
mov rcx, rax
call fcn.140004300
jmp 0x14004fe3a
mov rax, r13
mov qword [0x14008cad0], rax
call fcn.1400082c0
test rbx, rbx
je 0x14004fe54
mov qword [0x14008cad0], rbx
jmp 0x14004fe5b
mov rbx, qword [0x14008cad0]
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
movups xmmword [rbp - 0x30], xmm2
movups xmmword [rbp - 0x20], xmm2
mov qword [rbp + 0x10], rax
mov dword [rbp - 0x58], 3
mov dword [rbp - 0x54], r12d
mov dword [rbp - 0x2c], 0x7f7fffff
mov dword [rbp - 0x20], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x1c], ax
mov byte [rbp - 0x64], 0
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x90], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0xa0], xmm1
movaps xmmword [rbp + 0xb0], xmm2
movaps xmmword [rbp + 0xc0], xmm2
movaps xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0xd0], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0xe0], xmm1
movaps xmmword [rbp + 0xf0], xmm2
movaps xmmword [rbp + 0x100], xmm2
movsd xmm0, qword [rbp + 0x10]
movsd qword [rbp + 0x110], xmm0
lea rax, [0x140086380]
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x98], 0x602c
mov dword [rbp + 0xa4], 0x41600000
lea rdx, [rbp + 0x90]
mov rcx, qword [rbx + 0x38]
call fcn.14002a2e0
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x20], r13
or dword [rbx + 8], 3
call fcn.14004fa70
mov dword [rsp + 0x70], r13d
mov dword [rbp + 0x70], r13d
mov qword [rbp + 0xa0], r13
mov dword [rbp + 0xc0], r13d
mov dword [rbp + 0x148], r13d
lea rax, [0x140057100]
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x150], rax
lea rax, [0x140058974]
mov qword [rbp + 0x168], rax
mov qword [rbp + 0x158], rax
lea r8, [rbp + 0x70]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x90]
call fcn.14003ec30
mov rbx, rax
mov qword [rbp - 0x5c], 1
mov qword [rbp - 0x4c], r13
mov eax, dword [rsp + 0x70]
mov dword [rbp - 0x70], eax
mov ecx, dword [rbp + 0x70]
mov dword [rbp - 0x6c], ecx
mov dword [rbp - 0x68], r12d
mov dword [rbp - 0x64], r12d
mov dword [rbp - 0x60], 0x1c
mov dword [rbp - 0x54], r13d
mov dword [rbp - 0x50], 8
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], rbx
lea eax, [rax*4]
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x7c], r13d
mov rcx, qword [0x14008cba8]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x70]
call qword [rax + 0x28]
mov qword [rbp + 0x88], r13
mov dword [rbp + 0x78], 0x1c
mov qword [rbp + 0x7c], 4
mov eax, dword [rbp - 0x68]
mov dword [rbp + 0x84], eax
mov rcx, qword [0x14008cba8]
mov rax, qword [rcx]
lea r9, [0x14008cb20]
lea r8, [rbp + 0x78]
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rbp + 0x70], r13d
mov dword [rsp + 0x70], r13d
mov qword [rbp + 0xa0], r13
mov dword [rbp + 0xc0], r13d
mov dword [rbp + 0x148], r13d
lea rax, [0x140063180]
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x150], rax
lea rax, [0x140086353]
mov qword [rbp + 0x168], rax
mov qword [rbp + 0x158], rax
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x90]
call fcn.14003ec30
mov rbx, rax
mov qword [rbp - 0x5c], 1
mov qword [rbp - 0x4c], r13
mov eax, dword [rbp + 0x70]
mov dword [rbp - 0x70], eax
mov ecx, dword [rsp + 0x70]
mov dword [rbp - 0x6c], ecx
mov dword [rbp - 0x68], r12d
mov dword [rbp - 0x64], r12d
mov dword [rbp - 0x60], 0x1c
mov dword [rbp - 0x54], r13d
mov dword [rbp - 0x50], 8
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], rbx
lea eax, [rax*4]
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x7c], r13d
mov rcx, qword [0x14008cba8]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x70]
call qword [rax + 0x28]
mov qword [rbp + 0x88], r13
mov dword [rbp + 0x78], 0x1c
mov qword [rbp + 0x7c], 4
mov eax, dword [rbp - 0x68]
mov dword [rbp + 0x84], eax
mov rcx, qword [0x14008cba8]
mov rax, qword [rcx]
lea r9, [0x14008cb28]
lea r8, [rbp + 0x78]
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call fcn.14002f9d0
mov r15, qword [0x14008cbb0]
mov r14, qword [0x14008cba8]
mov rsi, qword [0x14008cad0]
test rsi, rsi
je 0x140050186
inc dword [rsi + 0xec]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400501c7
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov dword [rax + 0x70], 0x1388
mov dword [rax + 0x74], 0x2710
jmp 0x1400501ca
mov rbx, r13
mov qword [rsi + 0x98], rbx
lea rax, str.imgui_impl_dx11
mov qword [rsi + 0x88], rax
or dword [rsi + 0xc], 8
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x78], r13
mov rax, qword [r14]
lea r8, [rsp + 0x68]
lea rdx, [0x14005a288]
mov rcx, r14
call qword [rax]
test eax, eax
jne 0x14005024d
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [0x14005a298]
call qword [rax + 0x30]
test eax, eax
jne 0x14005024d
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r8, [rbp - 0x78]
lea rdx, [0x14005a2a8]
call qword [rax + 0x30]
test eax, eax
jne 0x14005024d
mov qword [rbx], r14
mov qword [rbx + 8], r15
mov rax, qword [rbp - 0x78]
mov qword [rbx + 0x10], rax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005025d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14005026d
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]
xor bl, bl
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
test eax, eax
js 0x1400502a8
lea rdx, [rbp + 0x70]
mov rcx, qword [0x14008caf8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
movzx ebx, bl
cmp dword [rbp + 0x70], 0
cmove ebx, r12d
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400502c5
cmp byte [0x14008cbd0], 0
sete byte [0x14008cbd0]
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14005031a
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageA]
movzx ebx, bl
cmp dword [rbp - 0x68], 0x12
cmove ebx, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x1400502e0
test bl, bl
jne 0x1400504af
mov r8d, dword [0x14008cb3c]
test r8d, r8d
je 0x1400503d2
mov r9d, dword [0x14008cb74]
test r9d, r9d
je 0x1400503d2
mov rcx, qword [0x14008cb98]
test rcx, rcx
je 0x140050369
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14008cb98], r13
mov r8d, dword [0x14008cb3c]
mov r9d, dword [0x14008cb74]
mov rcx, qword [0x14008cba0]
mov rax, qword [rcx]
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor edx, edx
call qword [rax + 0x68]
mov dword [0x14008cb74], r13d
mov dword [0x14008cb3c], r13d
mov rcx, qword [0x14008cba0]
mov rax, qword [rcx]
lea r9, [rsp + 0x78]
lea r8, [0x14005aca8]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x14008cba8]
mov rax, qword [rcx]
lea r9, [0x14008cb98]
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x14008cad0]
test rax, rax
je 0x1400503e7
mov rcx, qword [rax + 0x98]
jmp 0x1400503ea
mov rcx, r13
cmp qword [rcx + 0x48], 0
jne 0x1400503f6
call fcn.14002f370
call fcn.140030350
call fcn.14000a4c0
cmp byte [0x14008cbd0], 0
je 0x140050416
call fcn.140001030
mov r8d, 0x80088
jmp 0x14005041c
mov r8d, 0x800a8
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowLongA]
call fcn.140003090
call fcn.14000c5f0
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
mov rcx, qword [0x14008cbb0]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x14008cb98]
mov edx, r12d
call qword [rax + 0x108]
mov rcx, qword [0x14008cbb0]
mov rax, qword [rcx]
lea r8, [rbp + 0x78]
mov rdx, qword [0x14008cb98]
call qword [rax + 0x190]
mov rax, qword [0x14008cad0]
mov rcx, qword [rax + 0x48b8]
mov rax, qword [rcx]
add rax, 0x48
mov rcx, r13
cmp byte [rax], r13b
cmovne rcx, rax
call fcn.14002e900
mov rcx, qword [0x14008cba0]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, r12d
call qword [rax + 0x40]
jmp 0x140050282
mov rbx, qword [0x14008cad0]
test rbx, rbx
je 0x1400504c4
mov rsi, qword [rbx + 0x98]
jmp 0x1400504c7
mov rsi, r13
call fcn.14002f8b0
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400504db
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400504e9
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400504f8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x88], r13
mov qword [rbx + 0x98], r13
and dword [rbx + 0xc], 0xfffffff7
mov rax, qword [0x14008cad0]
test rax, rax
je 0x14005051c
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x14008cad0]
test rax, rax
je 0x14005053a
mov rsi, qword [rax + 0x90]
jmp 0x14005053d
mov rsi, r13
lea rbx, [rax + 8]
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x140050557
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x14008cad0]
mov qword [rbx + 0x78], r13
mov qword [rbx + 0x88], r13
and dword [rbx + 4], 0xfffffff8
test rax, rax
je 0x140050571
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x14008cad0]
mov qword [0x14008cad0], rbx
call fcn.140008700
mov qword [0x14008cad0], r13
test rbx, rbx
je 0x1400505bc
mov rcx, rbx
call fcn.14001e360
mov rax, qword [0x14008cad0]
test rax, rax
je 0x1400505b3
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.140050610
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140050750
lea r11, [rsp + 0x290]
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