Function at 0x140003050
Capabilities:
Enumerate process modules
Log keystrokes via polling
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x830]
sub rsp, 0x930
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rbp + 0x820], rax
lea rcx, str.CS2__ESP
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea ecx, [r14 + 0x38]
call fcn.140004bd0
mov qword [rsp + 0x60], rax
lea rcx, vtable.std::_Ref_count_obj2_class_pProcess_.0
xorps xmm0, xmm0
xor edx, edx
movups xmmword [rax], xmm0
mov qword [rax], rcx
lea rcx, [rax + 0x10]
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
mov qword [rcx + 0x20], rdx
mov rbx, qword [0x140009768]
mov qword [0x140009760], rcx
mov qword [0x140009768], rax
test rbx, rbx
je 0x14000311b
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14000311b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14000311b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._INFO__Waiting_for_cs2.exe...
call fcn.140003d10
lea rdx, [0x140003ee0]
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]
movabs rdi, 0x7fffffffc46535fe
movabs rsi, 0x7fffffffffffffff
mov rbx, qword [0x140009760]
call fcn.1400043c0
mov dword [rbx], eax
test eax, eax
jne 0x1400031cd
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140003182
imul rax, rax, 0x64
jmp 0x1400031a0
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, rdi
jg 0x1400031bc
add rax, 0x3b9aca00
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.140004110
jmp 0x140003152
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rsi
call fcn.140004110
jmp 0x140003152
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r9, [rbp - 0x30]
mov dword [rsp + 0x20], 2
mov rcx, rax
mov qword [rbx + 8], rax
mov r8d, 0x7f8
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
mov rdx, qword [rbp + 0x20]
lea r8, [rbp - 0x28]
mov rcx, qword [rbx + 8]
mov r9d, 0x18
mov qword [rbx + 0x18], rdx
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov eax, dword [rbp - 0x20]
mov edx, dword [rbx]
mov qword [rbx + 0x20], rax
call fcn.1400045f0
mov qword [rbx + 0x10], rax
lea rdx, str._INFO__Attached_to_cs2.exe_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003d10
lea rdx, [0x140003ee0]
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]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._INFO__Reading_offsets__config.hpp__n
call fcn.140003d10
lea rdx, [0x140003ee0]
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]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._OFFSET__dwEntityList___
call fcn.140003d10
mov edx, 0x1798738
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140003ee0]
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]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._OFFSET__dwLocalPlayer___
call fcn.140003d10
mov edx, 0x1885c28
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140003ee0]
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]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._OFFSET__dwViewMatrix___
call fcn.140003d10
mov edx, 0x1886710
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140003ee0]
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]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x14000699c]
call fcn.140003d10
lea rdx, [0x140003ee0]
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]
nop word [rax + rax]
mov rcx, qword [0x140009760]
lea rdx, [rsp + 0x68]
call fcn.1400046b0
movups xmm0, xmmword [rax]
movq rax, xmm0
movups xmmword [0x140009740], xmm0
test rax, rax
jne 0x1400033e6
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140003377
imul rax, rax, 0x64
jmp 0x140003395
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, rdi
jg 0x1400033a7
add rax, 0x3b9aca00
mov qword [rsp + 0x60], rax
jmp 0x1400033ac
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x60]
call fcn.140004110
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._ERROR__Error_loading_client.dll
call fcn.140003d10
lea rdx, [0x140003ee0]
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]
cmp qword [0x140009740], r14
je 0x140003330
mov rbx, qword [0x140009760]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [rbx + 0x10]
je 0x14000349c
nop dword [rax]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14000341e
imul rax, rax, 0x64
jmp 0x14000343c
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, rdi
jg 0x14000344e
add rax, 0x3b9aca00
mov qword [rsp + 0x60], rax
jmp 0x140003453
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x60]
call fcn.140004110
mov rbx, qword [0x140009760]
mov edx, dword [rbx]
call fcn.1400045f0
mov qword [rbx + 0x10], rax
mov edx, 1
mov rcx, qword [0x140009760]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rbx, qword [0x140009760]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [rbx + 0x10]
jne 0x140003400
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._INFO__Creating_window_overlay...
call fcn.140003d10
lea rdx, [0x140003ee0]
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]
mov rcx, qword [0x140009760]
lea rax, [0x140002e60]
xorps xmm0, xmm0
mov qword [rbp - 0x70], r14
movdqa xmmword [rbp - 0x60], xmm0
mov edx, 0xfffffffa
mov qword [rbp - 0x38], r14
mov dword [rbp - 0x80], 0x50
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x7c], 3
mov qword [rbp - 0x50], r14
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.USER32.dll_GetWindowLongA]
movsxd rcx, eax
lea rbx, [0x1400069fc]
mov qword [rbp - 0x68], rcx
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rcx, qword [0x140009760]
lea rdx, [0x140009750]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.USER32.dll_GetClientRect]
mov r8d, dword [0x140009750]
mov r9d, 0x80000000
mov ecx, dword [0x14000975c]
mov rdx, rbx
mov eax, dword [0x140009758]
add ecx, r8d
mov qword [rsp + 0x58], r14
sub eax, r8d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], ecx
mov ecx, 0x800a8
mov dword [rsp + 0x30], eax
mov eax, dword [0x140009754]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r8, str.cs2_external_esp
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rdi, rax
test rax, rax
je 0x140003728
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], r14d
lea rdx, [r9 - 1]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
xor r9d, r9d
lea rcx, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x14000369f
movabs r14, 0x7ffffffffff0bdbe
nop dword [rax]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14000369f
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140003646
imul rax, rax, 0x64
jmp 0x140003664
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, r14
jg 0x140003676
add rax, 0xf4240
mov qword [rsp + 0x60], rax
jmp 0x14000367b
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x60]
call fcn.140004110
xor r9d, r9d
lea rcx, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140003600
mov edx, 0x64
mov ecx, 0x2bc
call qword [sym.imp.KERNEL32.dll_Beep]
mov edx, 0x64
mov ecx, 0x2bc
call qword [sym.imp.KERNEL32.dll_Beep]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._INFO__Exiting...
call fcn.140003d10
lea rdx, [0x140003ee0]
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]
mov rcx, qword [0x140009770]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [0x140009778]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, qword [0x140009760]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov eax, 1
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.140004bb0
lea r11, [rsp + 0x930]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret