Function at 0x140046450
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x1400ef080]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor r12d, r12d
mov r15d, r12d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140046894
mov dword [rbp], 0x238
lea rdx, [rbp]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140046821
lea rbx, str.cs2.exe
nop word [rax + rax]
mov rax, r12
lea rdx, [rbp + 0x2c]
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [rbx + rax*2 - 2]
jne 0x1400465bd
cmp rax, 8
jne 0x1400464e0
mov r15d, dword [rbp + 8]
lea r9, [rbp + 0x26a]
mov r8d, r15d
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140046510
lea r8, [rbp + 0x26a]
mov rdx, r9
lea rcx, [rbp - 0x28]
call fcn.140052d90
nop
lea rdx, str.Process_found:
lea rcx, [rsp + 0x30]
call fcn.14004c330
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.14004dfd0
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 7
jb 0x1400465e0
lea rsi, [rcx + 7]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x1400465a0
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, str.__PID:
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], r12w
jmp 0x140046602
lea rdx, [rbp]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400464d0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400468fc
mov qword [rsp + 0x20], 7
lea r9, str.__PID:
xor r8d, r8d
lea edx, [r8 + 7]
mov rcx, rbx
call fcn.14004e420
mov rbx, rax
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
lea r9, [rbp - 0x28]
lea r8, [rbp - 0x68]
lea rcx, [rsp + 0x58]
call fcn.14004f7e0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.140045f20
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140046682
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004667d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004667d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bddc8
movdqa xmm0, xmmword [0x1400da7b0]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x1400466d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400466d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400466d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bddc8
movdqa xmm0, xmmword [0x1400da7a0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x140046731
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004672b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004672b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bddc8
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x140046774
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004676f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004676f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bddc8
movdqa xmm0, xmmword [0x1400da7a0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r12w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400467cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400467c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400467c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bddc8
movdqa xmm0, xmmword [0x1400da7a0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r12w
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x140046889
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046884
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046884
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, reloc.WLDAP32.dll_Ordinal_22
lea rdx, str.Process32First_failed.
lea rcx, [rsp + 0x30]
call fcn.14003f9f0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140046889
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046884
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046884
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bddc8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400468fc
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, str.CreateToolhelp32Snapshot_failed.
lea rcx, [rsp + 0x30]
call fcn.14003f9f0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400468fc
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400468f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400468f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bddc8
mov eax, r15d
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1400bd6a0
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret