Function at 0x140048b50
Capabilities:
Create thread
Enumerate processes
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140078040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rsi, rcx
xor r12d, r12d
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x140048c8f
lea r15, [rsi + 0x20]
mov qword [rsi + 0x20], r12
mov qword [rsi + 0x2c], r12
mov dword [rsi + 0x34], r12d
mov qword [rsi + 0x3c], r12
mov dword [rsi + 0x44], r12d
mov qword [rsi + 0x54], r12
mov dword [rsi + 0x48], 1
mov dword [rsi + 0x4c], 1
mov dword [rsi + 0x38], 2
mov dword [rsi + 0x28], 0x15
mov dword [rsi + 0x50], 0x4b
mov dword [rsi + 0x5c], 0x80000000
mov rcx, rax
mov rax, qword [rax]
lea r14, [rsi + 0x18]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x40
mov r9, qword [rsi + 8]
xor edx, edx
mov r8d, 1
call qword [rax + 0x80]
test eax, eax
js 0x140048c8f
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140048c8f
mov dword [rbp - 0x60], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x5c]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140048c86
nop
lea rdx, str.cs2.exe
lea rcx, [rbp - 0x34]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140048c98
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140048c60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.1400491e0
int3
mov eax, dword [rbp - 0x58]
mov dword [0x1400892b0], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x1400892b0]
xor edx, edx
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x1400892b8], rax
test rax, rax
je 0x140048c8f
mov ecx, 8
call fcn.14004c574
lea rcx, [0x140044db0]
mov qword [rax], rcx
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x14004bd50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400491c7
mov edx, 0xa
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x140089288]
mov ecx, 0x6280
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
mov r8, qword [0x140089288]
test r8, r8
je 0x140048da9
mov r10d, dword [r8 + 0x3f58]
movsx rax, word [r8 + 0x60f0]
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x140048d9e
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 + 0x60f0], cx
movsx rax, cx
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], r12d
inc word [rdx + 4]
inc dword [r8 + 0x60e8]
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r9
test r9, r9
je 0x140048dce
xor edx, edx
mov rcx, r9
call fcn.140001df0
jmp 0x140048dd1
mov rax, r12
mov qword [0x140089288], rax
call fcn.1400065b0
test rbx, rbx
je 0x140048de9
mov qword [0x140089288], rbx
call fcn.140045af0
mov rcx, qword [rsi]
call fcn.14002ea30
mov rdi, qword [rsi + 0x18]
mov rbx, qword [0x140089288]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
mov r9, qword [0x140089288]
test r9, r9
je 0x140048e7c
mov r10d, dword [r9 + 0x3f58]
movsx r11, word [r9 + 0x60f0]
lea rdx, [r9 + 0x60f4]
lea rdx, [rdx + r11*8]
cmp dword [rdx], r10d
je 0x140048e71
lea ecx, [r11 + 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 [r9 + 0x60f0], cx
movsx rax, cx
lea rdx, [r9 + 0x60f4]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], r12d
inc word [rdx + 4]
inc dword [r9 + 0x60e8]
test r8, r8
je 0x140048ea2
mov qword [r8], r12
mov qword [r8 + 8], r12
mov qword [r8 + 0x10], r12
mov qword [r8 + 0x18], r12
mov dword [r8 + 0x20], 0x1388
mov dword [r8 + 0x24], 0x2710
jmp 0x140048ea5
mov r8, r12
mov qword [rbx + 0x98], r8
lea rax, str.imgui_impl_dx9
mov qword [rbx + 0x88], rax
or dword [rbx + 0xc], 8
mov qword [r8], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm6, xmm6
movss xmm7, dword [0x14006f740]
nop word [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140048f25
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140048f93
mov dword [rbp - 0x60], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x5c]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140048f8a
lea rdx, str.cs2.exe
lea rcx, [rbp - 0x34]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140048f9c
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140048f64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.1400491e0
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140048fc3
cmp byte [0x140089281], 0
sete al
mov byte [0x140089281], al
jmp 0x140048fca
movzx eax, byte [0x140089281]
mov rcx, qword [rsi]
mov edx, 0xffffffec
test al, al
jne 0x140048fe1
call qword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x20
jmp 0x140048fea
call qword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xffffffdf
mov r8d, eax
mov edx, 0xffffffec
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rax, qword [0x140089288]
test rax, rax
je 0x140049010
mov rcx, qword [rax + 0x98]
jmp 0x140049013
mov rcx, r12
cmp qword [rcx + 0x18], 0
jne 0x140049036
test rax, rax
je 0x140049036
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x140049036
cmp qword [rcx], 0
je 0x140049036
call fcn.14002e670
call fcn.14002f440
call fcn.1400081a0
call fcn.1400478d0
cmp byte [0x140089281], 0
je 0x140049053
call fcn.140047d40
call fcn.140009eb0
mov r9, qword [0x140089288]
movss xmm4, dword [r9 + 0x10]
movss xmm3, dword [r9 + 0x14]
movzx r8d, r12w
cmp dword [r9 + 0x3fa0], 0
jle 0x1400490e0
nop dword [rax]
movzx ecx, r8w
mov rax, qword [r9 + 0x3fa8]
mov rdx, qword [rax + rcx*8]
movss xmm1, dword [rdx + 0x2c]
comiss xmm6, xmm1
jbe 0x14004909e
movaps xmm0, xmm6
jmp 0x1400490aa
movaps xmm0, xmm3
subss xmm0, dword [rdx + 0x34]
minss xmm0, xmm1
movss xmm2, dword [rdx + 0x28]
comiss xmm6, xmm2
jbe 0x1400490b9
movaps xmm1, xmm6
jmp 0x1400490c5
movaps xmm1, xmm4
subss xmm1, dword [rdx + 0x30]
minss xmm1, xmm2
movss dword [rdx + 0x28], xmm1
movss dword [rdx + 0x2c], xmm0
inc r8w
movzx eax, r8w
cmp eax, dword [r9 + 0x3fa0]
jl 0x140049080
mov rbx, qword [rsi + 0x18]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x148]
test eax, eax
js 0x140049150
mov rax, qword [rbx]
mov dword [rsp + 0x30], r12d
movss dword [rsp + 0x28], xmm7
mov dword [rsp + 0x20], r12d
mov r9d, 3
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [rax + 0x158]
call fcn.14000a2a0
mov rax, qword [0x140089288]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
add rax, 0x48
mov rcx, r12
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.14002df50
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x150]
mov rax, qword [rbx]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x1400491b7
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x1400491b7
call fcn.14002e9b0
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + 0x80]
mov rax, qword [0x140089288]
test rax, rax
je 0x1400491b7
mov rax, qword [rax + 0x98]
test rax, rax
je 0x1400491b7
cmp qword [rax], 0
je 0x1400491b7
call fcn.14002e670
cmp dword [rsp + 0x78], 0x12
jne 0x140048ef0
jmp 0x140048f93
mov dword [rsp + 0x68], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3