Function at 0x140040220
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
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x140051040]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rsi, qword [0x140051a28]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThreadpool]
mov rbx, rax
test rax, rax
je 0x1400402b6
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400400f0]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
test rax, rax
jne 0x1400402ad
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseThreadpool]
jmp 0x1400402b6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
mov dword [rsi], 0x50
mov dword [rsi + 4], 3
lea rax, [0x140040030]
mov qword [rsi + 8], rax
lea rax, [rbp + 0xd0]
mov qword [rsi + 0x40], rax
mov rcx, rsi
call qword [sym.imp.USER32.dll_RegisterClassExA]
cvttss2si ecx, dword [rsi + 0x130]
cvttss2si edx, dword [rsi + 0x12c]
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov r9d, 0x80000000
xor r8d, r8d
mov rdx, qword [rsi + 0x40]
mov ecx, 0x8080028
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rsi + 0xe0], rax
lea r9d, [r15 + 2]
mov r8b, 0xff
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
lea rdx, [rbp + 0xc0]
mov rcx, qword [rsi + 0xe0]
call qword [sym.imp.USER32.dll_GetClientRect]
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
lea rdx, [rbp + 0x20]
mov rcx, qword [rsi + 0xe0]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov qword [rbp + 0xd0], r15
lea rdx, [rbp + 0xd0]
mov rcx, qword [rsi + 0xe0]
call qword [sym.imp.USER32.dll_ClientToScreen]
lea rdx, [rsi + 0xc8]
mov rcx, qword [rsi + 0xe0]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x44], r15
mov qword [rbp + 0x4c], 1
mov qword [rbp + 0x58], 2
mov qword [rbp + 0x70], 2
mov dword [rbp + 0x38], 0x3c
mov dword [rbp + 0x3c], 1
mov dword [rbp + 0x40], 0x1c
mov dword [rbp + 0x54], 0x20
mov rax, qword [rsi + 0xe0]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 1
mov dword [rbp + 0xc0], 0xb000
mov dword [rbp + 0xc4], 0xa000
lea r13, [rsi + 0xa0]
lea r14, [rsi + 0x98]
lea r12, [rsi + 0xa8]
lea rax, [rsi + 0xb8]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0xc0]
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]
mov qword [rbp + 0x20], r15
mov rcx, qword [r12]
mov rax, qword [rcx]
lea r9, [rbp + 0x20]
lea r8, [0x1400499b0]
xor edx, edx
call qword [rax + 0x48]
mov rdx, qword [rbp + 0x20]
test rdx, rdx
je 0x1400404c0
mov rcx, qword [r14]
mov rax, qword [rcx]
lea r9, [rsi + 0xb0]
xor r8d, r8d
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, 0xa
mov rcx, qword [rsi + 0xe0]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsi + 0xe0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x140051938]
test rbx, rbx
je 0x1400404f1
inc dword [rbx + 0xf4]
mov ecx, 0x5e48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0xd0], rax
lea rcx, [rsp + 0x60]
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0x20], rax
test rax, rax
je 0x140040524
xor edx, edx
mov rcx, rax
call fcn.140006340
jmp 0x140040527
mov rax, r15
mov qword [0x140051938], rax
call fcn.14000a6d0
test rbx, rbx
je 0x140040541
mov qword [0x140051938], rbx
jmp 0x140040548
mov rbx, qword [0x140051938]
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r15
mov rdi, qword [rbx + 0x58]
movabs rax, 0xc9098b812f2002b0
mov qword [rsp + 0x70], rax
movabs rax, 0xa44023ef05b1743
mov qword [rsp + 0x78], rax
movabs rax, 0x53e9223e87d5f799
mov qword [rbp - 0x80], rax
movabs rax, 0x6870e613b0b92968
mov qword [rbp - 0x78], rax
movabs rax, 0xa66de5e8787c38f3
mov qword [rbp + 0xd0], rax
movabs rax, 0x79306c51b6076434
mov qword [rbp + 0xd8], rax
movabs rax, 0x3287435af5b0a1c5
mov qword [rbp + 0xe0], rax
movabs rax, 0x6870e613d6cd5d46
mov qword [rbp + 0xe8], rax
movdqa xmm0, xmmword [rsp + 0x70]
xorps xmm0, xmmword [rbp + 0xd0]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [rbp - 0x80]
xorps xmm1, xmmword [rbp + 0xe0]
movdqa xmmword [rbp - 0x80], xmm1
mov qword [rbp + 0xc0], r15
lea r8, [rbp + 0xc0]
lea rcx, [rsp + 0x70]
call fcn.140007fc0
mov rbx, rax
test rax, rax
je 0x1400407ac
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 byte [rbp - 0x64], 1
mov dword [rbp - 0x58], 3
mov dword [rbp - 0x54], 1
mov dword [rbp - 0x2c], 0x7f7fffff
mov dword [rbp - 0x20], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x1c], ax
movups xmm3, xmmword [rbp - 0x70]
movups xmmword [rbp + 0x30], xmm3
movups xmm4, xmmword [rbp - 0x60]
movups xmmword [rbp + 0x40], xmm4
movups xmmword [rbp + 0x50], xmm2
xorps xmm5, xmm5
movups xmmword [rbp + 0x60], xmm5
movups xmm6, xmmword [rbp - 0x30]
movups xmmword [rbp + 0x70], xmm6
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbp + 0x80], xmm1
xorps xmm7, xmm7
movups xmmword [rbp + 0x90], xmm7
xorps xmm8, xmm8
movups xmmword [rbp + 0xa0], xmm8
movsd xmm9, qword [rbp + 0x10]
movsd qword [rbp + 0xb0], xmm9
movdqa xmm0, xmm1
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x140040765
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400406d0
lea r9, [rsp + 0x70]
add r9, rax
lea rax, [rsp + 0x70]
cmp r9, rax
jbe 0x14004070c
nop dword [rax + rax]
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x14004070c
cmp al, 0x5c
je 0x14004070c
mov r9, rcx
lea rax, [rsp + 0x70]
cmp rcx, rax
ja 0x1400406f0
movsd xmm0, qword [0x140049a60]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x86]
call fcn.140007c40
movsd xmm9, qword [rbp + 0xb0]
movups xmm8, xmmword [rbp + 0xa0]
movups xmm7, xmmword [rbp + 0x90]
movups xmm1, xmmword [rbp + 0x80]
movups xmm6, xmmword [rbp + 0x70]
movups xmm5, xmmword [rbp + 0x60]
movups xmm2, xmmword [rbp + 0x50]
movups xmm4, xmmword [rbp + 0x40]
movups xmm3, xmmword [rbp + 0x30]
movups xmmword [rbp - 0x70], xmm3
movups xmmword [rbp - 0x60], xmm4
movups xmmword [rbp - 0x50], xmm2
movups xmmword [rbp - 0x40], xmm5
movups xmmword [rbp - 0x30], xmm6
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm7
movups xmmword [rbp], xmm8
movsd qword [rbp + 0x10], xmm9
mov qword [rbp - 0x70], rbx
mov eax, dword [rbp + 0xc0]
mov dword [rbp - 0x68], eax
mov dword [rbp - 0x5c], 0x41800000
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.14002bcb0
mov rcx, qword [rsi + 0xe0]
call fcn.140031810
mov r15, qword [r13]
mov r14, qword [r14]
mov rdi, qword [0x140051938]
test rdi, rdi
je 0x1400407d1
inc dword [rdi + 0xf4]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
xor ecx, ecx
test rax, rax
je 0x140040814
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 0x140040817
mov rbx, rcx
mov qword [rdi + 0xa0], rbx
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x90], rax
or dword [rdi + 0xc], 8
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xd0], rcx
mov rax, qword [r14]
lea r8, [rbp + 0x20]
lea rdx, [0x140049758]
mov rcx, r14
call qword [rax]
test eax, eax
jne 0x1400408a6
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
lea r8, [rbp + 0xc0]
lea rdx, [0x140049768]
call qword [rax + 0x30]
test eax, eax
jne 0x1400408a6
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rcx]
lea r8, [rbp + 0xd0]
lea rdx, [0x140049778]
call qword [rax + 0x30]
test eax, eax
jne 0x1400408a6
mov qword [rbx], r14
mov qword [rbx + 8], r15
mov rax, qword [rbp + 0xd0]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400408b5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0xc0]
test rcx, rcx
je 0x1400408c7
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]
mov rcx, qword [0x140051938]
mov rcx, qword [rcx + 0x58]
call fcn.14002bf80
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
lea rbx, [rax + 0x1e848]
lea rbx, [rax + rbx*8]
cmp byte [rsi + 0x128], 0
je 0x140040bb8
movabs r15, 0x7127db7bfff
xorps xmm6, xmm6
xor r14d, r14d
nop dword [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14004097f
nop
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [rbp + 0x38], 0x12
jne 0x140040961
mov byte [rsi + 0x128], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140040940
cmp byte [rsi + 0x128], 0
je 0x140040bb8
movss xmm0, dword [rsi + 0x12c]
ucomiss xmm0, xmm6
jp 0x14004099f
je 0x140040a2d
movss xmm0, dword [rsi + 0x130]
ucomiss xmm0, xmm6
jp 0x1400409ae
je 0x140040a2d
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
je 0x1400409c0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [r12]
mov rax, qword [rcx]
cvttss2si r9, dword [rsi + 0x130]
cvttss2si r8, dword [rsi + 0x12c]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
call qword [rax + 0x68]
mov rcx, qword [r12]
mov rax, qword [rcx]
lea r9, [rbp + 0xd0]
lea r8, [0x1400499b0]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [rsi + 0x98]
mov rax, qword [rcx]
lea r9, [rsi + 0xb0]
xor r8d, r8d
mov rdx, qword [rbp + 0xd0]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0xd0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x140051938]
test rax, rax
je 0x140040a42
mov rcx, qword [rax + 0xa0]
jmp 0x140040a45
mov rcx, r14
cmp qword [rcx + 0x48], 0
jne 0x140040a51
call fcn.1400312f0
call fcn.140032190
call fcn.14000c850
call fcn.140004220
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140040a7e
mov rcx, qword [0x140051a20]
cmp byte [rcx], 0
sete al
mov byte [rcx], al
mov rax, qword [0x140051a20]
mov edx, 0xffffffec
mov rcx, qword [0x140051a28]
mov rcx, qword [rcx + 0xe0]
cmp byte [rax], 0
je 0x140040ab7
mov r8d, 0x8000028
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140051a20]
call fcn.14003f7e0
jmp 0x140040ac3
mov r8d, 0x8080028
call qword [sym.imp.USER32.dll_SetWindowLongA]
call fcn.14000e960
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
mov rcx, qword [r13]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rsi + 0xb0]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [r13]
mov rax, qword [rcx]
lea r8, [rbp + 0xc0]
mov rdx, qword [rsi + 0xb0]
call qword [rax + 0x190]
mov rax, qword [0x140051938]
mov rcx, qword [rax + 0x48a8]
mov rax, qword [rcx]
add rax, 0x48
mov rcx, r14
cmp byte [rax], 0
cmovne rcx, rax
call fcn.140030680
mov rcx, qword [r12]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [rax + 0x40]
movabs r14, 0xba69dbdd3ac13d7d
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
lea rdx, [rax + rax*8]
cmp rbx, rdx
je 0x140040b9e
jl 0x140040b9e
mov rcx, rbx
sub rcx, rdx
cmp rcx, r15
jg 0x140040b92
mov rax, r14
imul rcx
add rdx, rcx
sar rdx, 0x10
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x15f90
cmp rax, rcx
jge 0x140040b89
inc rdx
mov ecx, edx
call sub.KERNEL32.dll_Sleep
jmp 0x140040b47
mov ecx, 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x140040b47
add rbx, 0xf4240
cmp byte [rsi + 0x128], 0
mov r14d, 0
jne 0x140040920
mov rbx, qword [0x140051938]
xor r14d, r14d
test rbx, rbx
je 0x140040bd0
mov rdi, qword [rbx + 0xa0]
jmp 0x140040bd3
mov rdi, r14
call fcn.1400316f0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140040be7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140040bf5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140040c04
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x90], r14
mov qword [rbx + 0xa0], r14
and dword [rbx + 0xc], 0xfffffff7
mov rax, qword [0x140051938]
test rax, rax
je 0x140040c28
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140051938]
test rax, rax
je 0x140040c46
mov rdi, qword [rax + 0x98]
jmp 0x140040c49
mov rdi, r14
lea rbx, [rax + 8]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140040c63
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140051938]
mov qword [rbx + 0x80], r14
mov qword [rbx + 0x90], r14
and dword [rbx + 4], 0xfffffff8
test rax, rax
je 0x140040c80
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140051938]
mov qword [0x140051938], rbx
call fcn.14000aae0
mov qword [0x140051938], r14
test rbx, rbx
je 0x140040ccb
mov rcx, rbx
call fcn.1400201a0
mov rax, qword [0x140051938]
test rax, rax
je 0x140040cc2
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsi + 0xa8]
test rcx, rcx
je 0x140040cdd
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp qword [rsi + 0xa0], 0
je 0x140040cf4
mov rcx, qword [rsi + 0x98]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 0x98]
test rcx, rcx
je 0x140040d06
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
je 0x140040d18
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 0xe0]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140040f90
lea r11, [rsp + 0x240]
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]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret