Function at 0x1400202b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xa8]
sub rsp, 0x1a8
xor r14d, r14d
mov edx, 0xfffffff0
mov rcx, qword [0x1402d13e0]
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
mov dword [rbp - 0x30], 0x28
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
mov dword [rbp - 0xc], eax
lea rdx, [rbp + 0x70]
mov rcx, qword [0x1402d13e0]
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov r15d, 1
test eax, eax
je 0x140020384
mov edx, r15d
mov rcx, qword [0x1402d13e0]
call qword [sym.imp.USER32.dll_MonitorFromWindow]
mov rcx, rax
lea rdx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_GetMonitorInfoA]
test eax, eax
je 0x140020384
and ebx, 0xff30ffff
mov r8d, ebx
mov edx, 0xfffffff0
mov rcx, qword [0x1402d13e0]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [rbp - 0x20]
mov r9d, dword [rbp - 0x28]
sub ecx, r9d
mov eax, dword [rbp - 0x24]
mov r8d, dword [rbp - 0x2c]
sub eax, r8d
mov dword [rsp + 0x30], 0x220
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, qword [0x1402d13e0]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov dword [rbp], 0x50
mov dword [rbp + 4], 0x40
lea rax, [0x14001ffe0]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x18], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x30], xmm1
lea rax, str.ImGui_Example
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], r14
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_RegisterClassExW]
lea r10, [0x1402d1208]
mov r9, r10
cmp qword [0x1402d1220], 0xf
cmova r9, qword [0x1402d1208]
add r9, qword [0x1402d1218]
cmp qword [0x1402d1220], 0xf
cmova r10, qword [0x1402d1208]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
cmp r10, r9
jne 0x140020435
mov qword [rsp + 0x70], r14
mov eax, 7
mov qword [rsp + 0x78], rax
mov word [rsp + 0x60], r14w
jmp 0x14002044a
sub r9, r10
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.1400069f0
mov rax, qword [rsp + 0x78]
mov ecx, dword [0x1402d13ec]
mov edx, dword [0x1402d13e8]
lea r8, [rsp + 0x60]
cmp rax, 7
cmova r8, qword [rsp + 0x60]
mov qword [rsp + 0x58], r14
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov r9d, 0x80000000
mov rdx, qword [rbp + 0x40]
mov ecx, 0xa8
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x1402d13d8], rax
movdqa xmm0, xmmword [0x14028a4d0]
movdqu xmmword [rbp + 0x50], xmm0
lea rdx, [rbp + 0x50]
mov rcx, rax
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r9d, 2
mov r8b, 1
xor edx, edx
mov rcx, qword [0x1402d13d8]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov qword [rbp - 0x6c], r14
mov qword [rbp - 0x58], 2
mov qword [rbp - 0x40], 2
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x70], 0x1c
mov dword [rbp - 0x78], 0x3c
mov dword [rbp - 0x74], r15d
mov dword [rbp - 0x5c], 0x20
mov rax, qword [0x1402d13d8]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x64], 1
mov qword [rbp - 0x48], 1
mov dword [rbp + 0xe8], 0xb000
mov dword [rbp + 0xec], 0xa000
lea rax, [0x1402d13c0]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x50], rax
lea rax, [0x1402d13b8]
mov qword [rsp + 0x48], rax
lea rax, [0x1402d13c8]
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 + 0xe8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jne 0x140020b46
mov rcx, qword [0x1402d13c8]
mov rax, qword [rcx]
lea r9, [rbp + 0xf0]
lea r8, [0x14008c318]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x1402d13b8]
mov rax, qword [rcx]
lea r9, [0x1402d13d0]
xor r8d, r8d
mov rdx, qword [rbp + 0xf0]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0xf0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, 0xa
mov rcx, qword [0x1402d13d8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1402d13d8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x1402d10d8]
mov ecx, 0x61c8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
mov r8, qword [0x1402d10d8]
test r8, r8
je 0x140020693
mov r10d, dword [r8 + 0x3f90]
movsx rax, word [r8 + 0x6078]
lea rdx, [r8 + 0x607c]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x140020688
lea ecx, [rax + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rdx, [r8 + 0x607c]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], r14d
inc word [rdx + 4]
inc dword [r8 + 0x6070]
mov qword [rbp + 0xe8], r9
lea rax, [rbp + 0xe0]
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], r9
test r9, r9
je 0x1400206c0
xor edx, edx
mov rcx, r9
call fcn.140012b50
jmp 0x1400206c3
mov rax, r14
mov qword [0x1402d10d8], rax
call fcn.1400471f0
test rbx, rbx
je 0x1400206db
mov qword [0x1402d10d8], rbx
mov ecx, 0x30
call fcn.14001a9f4
mov qword [rbp + 0xe0], rax
mov rdx, qword [0x1402d13c0]
mov rcx, qword [0x1402d13b8]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rdx
mov rcx, qword [0x1402d1698]
mov qword [0x1402d1698], rax
test rcx, rcx
je 0x14002071f
mov edx, 0x30
call fcn.14001ac70
mov ecx, 0x30
call fcn.14001a9f4
mov qword [rbp + 0xe0], rax
mov r8, qword [0x1402d13c0]
mov rcx, qword [0x1402d13b8]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], r8
mov rcx, qword [0x1402d1690]
mov qword [0x1402d1690], rax
test rcx, rcx
je 0x140020763
mov edx, 0x30
call fcn.14001ac70
lea rcx, [0x1402cf0b0]
call fcn.140080050
mov rcx, qword [0x1402d13d8]
call fcn.1400677a0
mov rdx, qword [0x1402d13c0]
mov rcx, qword [0x1402d13b8]
call fcn.1400663e0
mov edx, 0xffffffec
mov rcx, qword [0x1402d13d8]
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
bts eax, 0x13
movsxd r8, eax
mov edx, 0xffffffec
mov rcx, qword [0x1402d13d8]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
xor bl, bl
nop dword [rax + rax]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140020822
nop dword [rax + rax]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageA]
movzx ebx, bl
cmp dword [rbp - 0x78], 0x12
cmove ebx, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x1400207e0
test bl, bl
jne 0x140020bb9
movzx eax, byte [0x1402d1330]
neg al
sbb edx, edx
and edx, 0x11
mov rcx, qword [0x1402d13d8]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov ecx, dword [0x1402d1584]
test ecx, ecx
je 0x140020855
cmp ecx, 1
jne 0x140020863
mov rax, qword [0x1402cf0c0]
jmp 0x14002085c
mov rax, qword [0x1402cf0b0]
mov qword [0x1402cf0c8], rax
mov rax, qword [0x1402d10d8]
test rax, rax
je 0x140020878
mov rcx, qword [rax + 0x98]
jmp 0x14002087b
mov rcx, r14
cmp qword [rcx + 0x48], 0
jne 0x140020887
call fcn.140065080
call fcn.1400685a0
call fcn.14004c8d0
mov rax, qword [0x1402d10d8]
mov rax, qword [rax + 0x4b00]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rax]
call fcn.1400456d0
mov rcx, qword [0x1402d1698]
mov qword [rcx], rax
mov rcx, qword [0x1402cf0c8]
mov qword [rbp + 0xe0], rcx
mov rdi, qword [0x1402d10d8]
mov rsi, rcx
test rcx, rcx
jne 0x1400208f5
mov rcx, qword [rdi + 0x48]
test rcx, rcx
jne 0x1400208eb
mov rax, qword [rdi + 0x38]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx]
mov qword [rbp + 0xe0], rcx
mov rsi, rcx
call fcn.14003ca30
lea rcx, [rdi + 0x4a80]
lea rdx, [rbp + 0xe0]
call fcn.140014280
mov rax, qword [rdi + 0x4038]
mov rdx, qword [rsi + 0x40]
mov rdx, qword [rdx + 8]
mov rcx, qword [rax + 0x2a8]
call fcn.1400640b0
call fcn.1400267e0
call fcn.140025e30
call fcn.14004dfe0
cmp byte [0x1402d1180], 0
je 0x140020945
call fcn.14007f820
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
cmp rax, qword [0x1402d13e0]
je 0x140020963
mov rcx, qword [0x1402d13d8]
cmp rax, rcx
jne 0x14002097f
mov ecx, dword [0x1402d1594]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1400209fc
mov rcx, qword [0x1402d13d8]
cmp byte [0x1402d16dd], 0
mov byte [0x1402d16dd], 0
je 0x140020a03
mov byte [0x1402d16de], 1
cmp byte [0x1402d1180], 0
sete byte [0x1402d1180]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov edx, 0xffffffec
mov rcx, qword [0x1402d13d8]
cmp byte [0x1402d1180], 0
je 0x1400209e0
btr eax, 0x13
movsxd r8, eax
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rcx, qword [0x1402d13d8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140020a0a
bts eax, 0x13
movsxd r8, eax
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rcx, qword [0x1402d13e0]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140020a0a
mov byte [0x1402d16dd], 1
mov byte [0x1402d16de], 0
mov rcx, qword [0x1402d13e0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140020b3d
mov rax, qword [0x1402d13e0]
cmp rdi, rax
je 0x140020a37
mov rcx, qword [0x1402d13d8]
cmp rdi, rcx
jne 0x140020a4b
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140020a7e
mov rcx, qword [0x1402d13d8]
cmp byte [0x1402d13f0], 0
je 0x140020aba
mov dword [rsp + 0x30], 0x13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.USER32.dll_SetWindowPos]
mov byte [0x1402d13f0], 0
jmp 0x140020aba
cmp byte [0x1402d13f0], 0
jne 0x140020aba
mov dword [rsp + 0x30], 0x13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, qword [0x1402d13d8]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov byte [0x1402d13f0], 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov rcx, qword [0x1402d13c0]
mov rax, qword [rcx]
lea r8, [rbp + 0x60]
mov rdx, qword [0x1402d13d0]
call qword [rax + 0x190]
call fcn.14004dc20
mov rcx, qword [0x1402d13c0]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1402d13d0]
mov edx, r15d
call qword [rax + 0x108]
mov rax, qword [0x1402d10d8]
mov rax, qword [rax + 0x4b00]
mov rcx, qword [rax]
add rcx, 0x48
mov rax, r14
cmp byte [rcx], r14b
cmovne rax, rcx
mov rcx, rax
call fcn.1400659a0
mov rcx, qword [0x1402d13c8]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, r15d
call qword [rax + 0x40]
jmp 0x1400207c0
mov byte [0x1402d1182], 1
jmp 0x140020bb9
mov rcx, qword [0x1402d13d0]
test rcx, rcx
je 0x140020b5f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1402d13d0], r14
mov rcx, qword [0x1402d13c8]
test rcx, rcx
je 0x140020b78
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1402d13c8], r14
mov rcx, qword [0x1402d13c0]
test rcx, rcx
je 0x140020b91
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1402d13c0], r14
mov rcx, qword [0x1402d13b8]
test rcx, rcx
je 0x140020baa
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1402d13b8], r14
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_UnregisterClassW]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140020bfe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020bf9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020bf9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001ac70
add rsp, 0x1a8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret