Function at 0x14004c330
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x320
mov rax, qword [0x14008d010]
xor rax, rsp
mov qword [rsp + 0x310], rax
xor esi, esi
mov dword [rsp + 0xd0], 0x238
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0xd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14004c3bf
lea rbx, [0x140080ca8]
xor ecx, ecx
lea rdx, [rsp + 0xfc]
nop word [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [rbx + rcx*2 - 2]
jne 0x14004c469
cmp rcx, 8
jne 0x14004c3a0
mov esi, dword [rsp + 0xd8]
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov ecx, esi
call fcn.140046c50
mov rdx, rax
mov rcx, rbx
call fcn.1400469c0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 7
mov qword [rsp + 0x38], 0xf
mov rax, qword [str.cs2.exe]
mov dword [rsp + 0x20], eax
movzx eax, word [0x140080cd4]
mov word [rsp + 0x24], ax
movzx eax, byte [0x140080cd6]
mov byte [rsp + 0x26], al
mov byte [rsp + 0x27], 0
lea rdx, [rsp + 0x20]
call fcn.140040920
mov ebx, eax
test eax, eax
je 0x14004c487
lea rdx, str._ERROR__Failed_to_attach_process__StatusCode:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14004d220
mov edx, ebx
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]
lea rdx, [0x14004d3f0]
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 0x14004c550
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14004c3bf
jmp 0x14004c390
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rax
lea rax, vtable.std::_Func_impl_no_alloc_int____cdecl___void___void___.0
mov qword [rsp + 0x88], rax
lea rax, [0x14004b960]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0xf
mov ecx, 0x20
call fcn.140057f98
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0x10
mov qword [rsp + 0x38], 0x1f
movups xmm0, xmmword [str.Counter_Strike_2]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], 0
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x20]
call fcn.14003f570
nop
jmp 0x14004c550
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140057980
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret