Function at 0x140048ed0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140081140]
xor rax, rsp
mov qword [rbp + 0x40], rax
cmp byte [0x14005a389], 0
jne 0x140048f14
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.1400486e0
lea rax, str.TEST
mov edx, 0x7f00
xor ecx, ecx
mov qword [0x140081730], rax
call qword [sym.imp.USER32.dll_LoadIconA]
mov edx, 0x7f00
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.USER32.dll_LoadCursorA]
mov edx, 0x7f00
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.USER32.dll_LoadIconA]
lea rcx, [0x1400484d0]
mov qword [0x140081700], rdi
mov qword [0x1400816e8], rcx
lea rdi, str.OverlayWindowClass
xor esi, esi
mov qword [0x1400816e0], 0x50
xorps xmm0, xmm0
mov qword [0x1400816f0], rsi
lea rcx, [0x1400816e0]
mov qword [0x1400816f8], rsi
mov qword [0x140081708], rbx
movdqa xmmword [0x140081710], xmm0
mov qword [0x140081720], rdi
mov qword [0x140081728], rax
call qword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x140048fe5
lea rdx, str.Failed_to_register_window_class.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001050
lea rdx, [0x1400012b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14004906c
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov qword [rsp + 0x58], rsi
lea r8, str.My_Overlay_Window
mov qword [rsp + 0x50], rsi
mov r9d, 0x90000000
mov qword [rsp + 0x48], rsi
mov rdx, rdi
mov qword [rsp + 0x40], rsi
mov ecx, 8
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x1400816d8], rax
test rax, rax
jne 0x140049051
lea rdx, str.Failed_to_create_window.
jmp 0x140048fc4
mov edx, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400816d8]
call qword [sym.imp.USER32.dll_UpdateWindow]
lea rdx, [0x140081738]
mov ecx, 0x20
call sub.d3d9.dll_Direct3DCreate9Ex
test eax, eax
js 0x1400491f6
mov eax, dword [0x14008168c]
lea rdx, [0x140081740]
mov rcx, qword [0x140081738]
mov r9, qword [0x1400816d8]
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], eax
mov eax, dword [0x1400816a8]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdx
xor edx, edx
mov qword [rsp + 0x6c], rsi
mov qword [rsp + 0x78], 1
mov qword [rbp - 0x70], 0x50
mov dword [rbp - 0x78], 1
lea r8d, [rdx + 1]
mov qword [rbp - 0x80], r9
mov dword [rsp + 0x74], esi
mov dword [rsp + 0x68], 0x15
mov dword [rsp + 0x64], eax
mov dword [rbp - 0x74], 1
mov dword [rbp - 0x64], 1
mov dword [rbp - 0x68], esi
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x40
call qword [rax + 0xa0]
test eax, eax
jns 0x14004912d
mov rcx, qword [0x140081738]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400491f6
xor ecx, ecx
call fcn.1400080c0
call fcn.14000a4b0
mov rbx, rax
call fcn.14000a4b0
cmp byte [rax + 0x390], sil
jne 0x14004915d
call fcn.14000a4b0
cmp byte [rax + 0x392], sil
jne 0x14004915d
call fcn.14000a4b0
or dword [rbx], 1
mov rcx, qword [0x1400816d8]
call fcn.14002b9d0
mov rcx, qword [0x140081740]
call fcn.14002adc0
mov rcx, qword [0x140081738]
mov rax, qword [rcx]
call qword [rax + 0x10]
call fcn.14000a4b0
xor edx, edx
mov rcx, qword [rax + 0xa0]
call fcn.14001a520
lea rcx, [rbp - 0x50]
call fcn.140019970
mov dword [rbp - 0x2c], 0x3f99999a
call fcn.14000a4b0
movss xmm3, dword [0x14004c114]
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x28], rsi
lea rdx, [0x14005a450]
mov qword [rsp + 0x20], rcx
mov r8d, 0xe
mov rcx, qword [rax + 0xa0]
call fcn.14001ab10
mov qword [0x1400817d8], rax
call fcn.14000a4b0
xor edx, edx
mov rcx, qword [rax + 0xa0]
call fcn.14001a520
mov edx, 0x190
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Beep]
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140049256
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call fcn.14000a4b0
lea rcx, [rbp - 0x60]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [rbp - 0x60]
mov ecx, 1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x120], xmm0
movd xmm1, dword [rbp - 0x5c]
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x124], xmm1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x128], al
call fcn.140045da0
cmp dword [rsp + 0x68], 0x12
jne 0x140049221
call fcn.14002b920
call fcn.14002bd90
xor ecx, ecx
call fcn.1400085e0
mov rcx, qword [0x140081740]
test rcx, rcx
je 0x1400492d1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140081738]
test rcx, rcx
je 0x1400492e3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400816d8]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x1400816f8]
mov rcx, qword [0x140081720]
call qword [sym.imp.USER32.dll_UnregisterClassA]
jmp 0x140049210