Function at 0x140041a40
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 0x140041abb
mov dword [rbp - 0x50], 0x238
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140041abb
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 0x140041ab8
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140041a90
jmp 0x140041abb
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 0x140041cb2
cmp rax, rcx
ja 0x140041fcb
lea rbx, [rax*4]
test rbx, rbx
jne 0x140041c4d
xor eax, eax
jmp 0x140041c8a
cmp rbx, 0x1000
jb 0x140041c82
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140041fc5
call fcn.14004b2ec
mov rcx, rax
test rax, rax
je 0x140041e21
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140041c8a
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 0x140041d7f
movabs rax, 0x3fffffffffffffff
cmp rbx, rax
ja 0x140041fcb
lea rbx, [rbx*4]
test rbx, rbx
jne 0x140041d1e
xor eax, eax
jmp 0x140041d5b
cmp rbx, 0x1000
jb 0x140041d53
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140041fc5
call fcn.14004b2ec
mov rcx, rax
test rax, rax
je 0x140041e21
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140041d5b
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 0x140041e54
movabs rax, 0x3fffffffffffffff
cmp rbx, rax
ja 0x140041fcb
lea rbx, [rbx*4]
test rbx, rbx
jne 0x140041df0
xor eax, eax
jmp 0x140041e30
cmp rbx, 0x1000
jb 0x140041e28
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140041fc5
call fcn.14004b2ec
mov rcx, rax
test rax, rax
je 0x140041e21
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140041e30
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, [0x1400a95e8]
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, [0x1400a95e8]
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, [0x1400a95e8]
mov rdx, rbx
mov rcx, qword [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test r14, r14
je 0x140041f2d
sub r13, r14
sar r13, 2
lea rdx, [r13*4]
mov rax, r14
cmp rdx, 0x1000
jb 0x140041f24
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041f24
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 0x140041f72
sub r12, rsi
sar r12, 2
lea rdx, [r12*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140041f69
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041f69
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 0x140041fb1
sub rdi, r15
and rdi, 0xfffffffffffffffc
mov rax, r15
cmp rdi, 0x1000
jb 0x140041fa6
add rdi, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041fa6
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