Function at 0x140040f00
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
xor r14d, r14d
mov edi, r14d
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140040f7b
mov dword [rbp - 0x50], 0x238
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140040f7b
lea rdx, str.FiveM_GTAProcess.exe
lea rcx, [rbp - 0x24]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140040f78
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140040f50
jmp 0x140040f7b
mov edi, dword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.FiveM_GTAProcess.exe
mov ecx, edi
call fcn.14003c7c0
mov rbx, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x240], rax
lea rax, [rbx + 0x212b208]
mov qword [rbp + 0x248], rax
mov dword [rsp + 0x48], 0x60
mov dword [rsp + 0x4c], 8
mov dword [rsp + 0x50], 0x90
lea rbx, [rsp + 0x48]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov ecx, 0xc
call fcn.14004b2ec
mov r15, rax
mov qword [rsp + 0x68], rax
lea rdi, [rax + 0xc]
mov qword [rsp + 0x78], rdi
mov r8d, 0xc
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea r8, [r15 + 0xc]
mov qword [rsp + 0x70], r8
mov dword [rsp + 0x30], 0x60
mov dword [rsp + 0x34], 0x38
mov dword [rsp + 0x38], 0x40
lea rbx, [rsp + 0x30]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov ecx, 0xc
call fcn.14004b2ec
mov rsi, rax
mov qword [rbp - 0x80], rax
lea r12, [rax + 0xc]
mov qword [rbp - 0x70], r12
mov r8d, 0xc
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rbx, [rsi + 0xc]
mov qword [rbp - 0x78], rbx
mov dword [rsp + 0x58], 0x60
mov dword [rsp + 0x5c], 0x20
mov dword [rsp + 0x60], 0x70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov ecx, 0xc
call fcn.14004b2ec
mov r14, rax
mov qword [rbp - 0x68], rax
lea r13, [rax + 0xc]
mov qword [rbp - 0x58], r13
mov r8d, 0xc
lea rdx, [rsp + 0x58]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea r8, [r14 + 0xc]
mov qword [rbp - 0x60], r8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
lea rax, [r15 + 0xc]
sub rax, r15
mov qword [rbp + 0x250], rax
sar rax, 2
movabs rcx, 0x3fffffffffffffff
test rax, rax
je 0x140041172
cmp rax, rcx
ja 0x14004148b
lea rbx, [rax*4]
test rbx, rbx
jne 0x14004110d
xor eax, eax
jmp 0x14004114a
cmp rbx, 0x1000
jb 0x140041142
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140041485
call fcn.14004b2ec
mov rcx, rax
test rax, rax
je 0x1400412e1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14004114a
mov rcx, rbx
call fcn.14004b2ec
mov qword [rsp + 0x30], rax
add rbx, rax
mov qword [rsp + 0x40], rbx
mov r8, qword [rbp + 0x250]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x38], rbx
lea rbx, [rsi + 0xc]
lea r8, [rsp + 0x30]
mov rdx, qword [rbp + 0x248]
mov rcx, qword [rbp + 0x240]
call fcn.14003c860
mov qword [rbp + 0x258], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
sub rbx, rsi
mov qword [rbp + 0x250], rbx
sar rbx, 2
test rbx, rbx
je 0x14004123f
movabs rax, 0x3fffffffffffffff
cmp rbx, rax
ja 0x14004148b
lea rbx, [rbx*4]
test rbx, rbx
jne 0x1400411de
xor eax, eax
jmp 0x14004121b
cmp rbx, 0x1000
jb 0x140041213
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140041485
call fcn.14004b2ec
mov rcx, rax
test rax, rax
je 0x1400412e1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14004121b
mov rcx, rbx
call fcn.14004b2ec
mov qword [rsp + 0x30], rax
add rbx, rax
mov qword [rsp + 0x40], rbx
mov r8, qword [rbp + 0x250]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x30]
mov rdx, qword [rbp + 0x248]
mov rcx, qword [rbp + 0x240]
call fcn.14003c860
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
lea rax, [r14 + 0xc]
sub rax, r14
mov qword [rbp + 0x250], rax
mov rbx, rax
sar rbx, 2
test rbx, rbx
je 0x140041314
movabs rax, 0x3fffffffffffffff
cmp rbx, rax
ja 0x14004148b
lea rbx, [rbx*4]
test rbx, rbx
jne 0x1400412b0
xor eax, eax
jmp 0x1400412f0
cmp rbx, 0x1000
jb 0x1400412e8
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140041485
call fcn.14004b2ec
mov rcx, rax
test rax, rax
je 0x1400412e1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400412f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14004b2ec
mov qword [rsp + 0x30], rax
add rbx, rax
mov qword [rsp + 0x40], rbx
mov r8, qword [rbp + 0x250]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x30]
mov rdx, qword [rbp + 0x248]
mov rcx, qword [rbp + 0x240]
call fcn.14003c860
mov rbx, rax
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [0x1400a925c]
mov rdx, qword [rbp + 0x258]
mov rcx, qword [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [0x1400a925c]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [0x1400a925c]
mov rdx, rbx
mov rcx, qword [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test r14, r14
je 0x1400413ed
sub r13, r14
sar r13, 2
lea rdx, [r13*4]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400413e4
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400413e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14004b034
nop
test rsi, rsi
je 0x140041432
sub r12, rsi
sar r12, 2
lea rdx, [r12*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140041429
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041429
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14004b034
nop
test r15, r15
je 0x140041471
sub rdi, r15
and rdi, 0xfffffffffffffffc
mov rax, r15
cmp rdi, 0x1000
jb 0x140041466
add rdi, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041466
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rdi
mov rcx, r15
call fcn.14004b034
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140039f20
nop
call fcn.14004a8f0
int3