Function at 0x14004f460
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov rax, qword [0x140064008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14004f4fd
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14004f4f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14004f4f1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004f6f5
mov rcx, r8
call fcn.1400508a8
xor esi, esi
jmp 0x14004f6bc
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
xor esi, esi
test eax, eax
je 0x14004f681
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
lea rax, [rsp + 0x7c]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x14004f534
lea rcx, [rsp + 0x20]
cmp rdx, 7
ja 0x14004f566
mov qword [rsp + 0x30], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x7c]
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x20], si
jmp 0x14004f570
lea r9, [rsp + 0x7c]
call fcn.14004ebd0
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x14004f57d
mov rax, qword [rdi]
lea r9, [rsp + 0x20]
mov r11, qword [rsp + 0x38]
cmp r11, 8
setae bpl
mov r10, qword [rsp + 0x20]
cmovae r9, r10
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rdi + 0x10]
jne 0x14004f5df
test rcx, rcx
je 0x14004f62e
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x14004f5df
sub r9, rax
cmp dx, r8w
ja 0x14004f5df
cmp rcx, 1
je 0x14004f62e
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x14004f5c1
xor bl, bl
test bpl, bpl
je 0x14004f617
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x14004f60f
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f632
mov rcx, r10
call fcn.1400508a8
test bl, bl
jne 0x14004f639
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14004f50d
mov bl, 1
jmp 0x14004f5e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ebx, dword [rsp + 0x58]
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14004f67c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14004f677
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004f6f5
mov rcx, r8
call fcn.1400508a8
mov rax, rbx
jmp 0x14004f6be
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14004f6bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14004f6b7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004f6f5
mov rcx, r8
call fcn.1400508a8
xor eax, eax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140050630
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3