Function at 0x1400499e0
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 [0x140076040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rsi, rcx
xor r12d, r12d
lea ecx, [r12 + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x140049b1f
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
lea r8d, [r12 + 1]
call qword [rax + 0x80]
test eax, eax
js 0x140049b1f
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140049b1f
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 0x140049b16
nop dword [rax]
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 0x140049b28
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140049af0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14004a070
int3
mov eax, dword [rbp - 0x58]
mov dword [0x1400872b0], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x1400872b0]
xor edx, edx
lea ecx, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x1400872b8], rax
test rax, rax
je 0x140049b1f
mov ecx, 8
call fcn.14004d474
lea rcx, [0x140045a30]
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, [0x14004ca20]
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 0x14004a057
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 [0x140087288]
mov ecx, 0x6280
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
mov r8, qword [0x140087288]
test r8, r8
je 0x140049c37
mov r10d, dword [r8 + 0x3f58]
movsx rax, word [r8 + 0x60f0]
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x140049c2c
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 0x140049c5c
xor edx, edx
mov rcx, r9
call fcn.140001df0
jmp 0x140049c5f
mov rax, r12
mov qword [0x140087288], rax
call fcn.140006640
test rbx, rbx
je 0x140049c77
mov qword [0x140087288], rbx
call fcn.140046850
mov rcx, qword [rsi]
call fcn.14002f550
mov rdi, qword [rsi + 0x18]
mov rbx, qword [0x140087288]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
mov r9, qword [0x140087288]
test r9, r9
je 0x140049d0a
mov r10d, dword [r9 + 0x3f58]
movsx r11, word [r9 + 0x60f0]
lea rdx, [r9 + 0x60f4]
lea rdx, [rdx + r11*8]
cmp dword [rdx], r10d
je 0x140049cff
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 0x140049d30
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 0x140049d33
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 [0x14006db90]
nop dword [rax]
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 0x140049db5
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
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140049e21
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 0x140049e18
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 0x140049e2a
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140049df2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14004a070
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140049e51
cmp byte [0x140087281], 0
sete al
mov byte [0x140087281], al
jmp 0x140049e58
movzx eax, byte [0x140087281]
mov rcx, qword [rsi]
mov edx, 0xffffffec
test al, al
jne 0x140049e6f
call qword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x20
jmp 0x140049e78
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 [0x140087288]
test rax, rax
je 0x140049e9e
mov rcx, qword [rax + 0x98]
jmp 0x140049ea1
mov rcx, r12
cmp qword [rcx + 0x18], 0
jne 0x140049ec4
test rax, rax
je 0x140049ec4
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x140049ec4
cmp qword [rcx], 0
je 0x140049ec4
call fcn.14002f190
call fcn.14002ff60
call fcn.140008250
call fcn.140048750
cmp byte [0x140087281], 0
je 0x140049ee1
call fcn.140048bc0
call fcn.140009f30
mov r9, qword [0x140087288]
movss xmm4, dword [r9 + 0x10]
movss xmm3, dword [r9 + 0x14]
movzx r8d, r12w
cmp dword [r9 + 0x3fa0], 0
jle 0x140049f70
nop word [rax + rax]
movzx ecx, r8w
mov rax, qword [r9 + 0x3fa8]
mov rdx, qword [rax + rcx*8]
movss xmm1, dword [rdx + 0x2c]
comiss xmm6, xmm1
jbe 0x140049f2e
movaps xmm0, xmm6
jmp 0x140049f3a
movaps xmm0, xmm3
subss xmm0, dword [rdx + 0x34]
minss xmm0, xmm1
movss xmm2, dword [rdx + 0x28]
comiss xmm6, xmm2
jbe 0x140049f49
movaps xmm1, xmm6
jmp 0x140049f55
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 0x140049f10
mov rbx, qword [rsi + 0x18]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x148]
test eax, eax
js 0x140049fe0
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.14000a330
mov rax, qword [0x140087288]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
add rax, 0x48
mov rcx, r12
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.14002ea70
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 0x14004a047
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14004a047
call fcn.14002f4d0
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + 0x80]
mov rax, qword [0x140087288]
test rax, rax
je 0x14004a047
mov rax, qword [rax + 0x98]
test rax, rax
je 0x14004a047
cmp qword [rax], 0
je 0x14004a047
call fcn.14002f190
cmp dword [rsp + 0x78], 0x12
jne 0x140049d80
jmp 0x140049e21
mov dword [rsp + 0x68], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3