Function at 0x14004da40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x238
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x28], xmm1
mov qword [rsp + 0x38], rax
test rdi, rdi
je 0x14004dac2
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140010dd0
mov rbx, qword [rsp + 0x28]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + rbx]
mov qword [rsp + 0x30], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14004daec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateToolhelp32Snapshot_failed:_0x_X_n
lea r8d, [rbx + 0x27]
jmp 0x14004dc3d
xor edi, edi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14004db38
lea rsi, str.cs2.exe
nop word [rax + rax]
xor eax, eax
lea rdx, [rsp + 0x6c]
nop word [rax + rax]
movzx ecx, word [rsi + rax*2]
inc rax
cmp cx, word [rdx + rax*2 - 2]
jne 0x14004db6f
cmp rax, 8
jne 0x14004db20
mov edi, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14004db83
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenProcess_failed:_0x_X_n
lea r8d, [rbx + 0x19]
jmp 0x14004dc3d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14004db38
jmp 0x14004db10
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x14004dbc3
mov rcx, qword [0x14013c7c8]
add rcx, 0xa8
lea r8d, [rax + 0x30]
lea rdx, str.Cant_confirm_target_process_architecture:_0x_X_n
call fcn.140004ba0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14004dbe9
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
je 0x14004dc16
mov rcx, qword [0x14013c7c8]
add rcx, 0xa8
mov r8d, 0x18
lea rdx, str.Invalid_target_process._n
call fcn.140004ba0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x14004dc5c
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14004d450
mov rcx, rbx
test al, al
jne 0x14004dc54
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x21
lea rdx, str.Something_went_wrong_FeelsBadMan_n
mov rcx, qword [0x14013c7c8]
add rcx, 0xa8
call fcn.140004ba0
xor bl, bl
jmp 0x14004dc5c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14004dc9b
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004dc96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004dc96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140050c04
movzx eax, bl
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140050950
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret