Function at 0x1400416e0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004175b
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14004175b
nop word [rax + rax]
lea rdx, str.FiveM_GTAProcess.exe
lea rcx, [rbp - 0x34]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140041758
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140041730
jmp 0x14004175b
mov edi, dword [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.FiveM_GTAProcess.exe
mov ecx, edi
call fcn.14003cdd0
mov rbx, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
lea rax, [rbx + 0x212b208]
mov qword [rbp + 0x230], rax
mov dword [rsp + 0x48], 0x60
mov dword [rsp + 0x4c], 8
mov dword [rsp + 0x50], 0x90
mov ecx, 0xc
call fcn.140049b70
mov r13, rax
mov qword [rsp + 0x58], rax
lea rdi, [rax + 0xc]
mov qword [rsp + 0x68], rdi
mov r8d, 0xc
lea rdx, [rsp + 0x48]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x30], 0x60
mov dword [rsp + 0x34], 0x38
mov dword [rsp + 0x38], 0x40
mov ecx, 0xc
call fcn.140049b70
mov r14, rax
mov qword [rsp + 0x70], rax
lea rbx, [rax + 0xc]
mov qword [rbp - 0x80], rbx
mov r8d, 0xc
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x48], 0x60
mov dword [rsp + 0x4c], 0x20
mov dword [rsp + 0x50], 0x70
mov ecx, 0xc
call fcn.140049b70
mov rsi, rax
mov qword [rbp - 0x78], rax
lea r12, [rax + 0xc]
mov qword [rbp - 0x68], r12
mov r8d, 0xc
lea rdx, [rsp + 0x48]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x70], r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
sub rdi, r13
mov ecx, 0xc
call fcn.140049b70
mov qword [rsp + 0x30], rax
lea rbx, [rax + 0xc]
mov qword [rsp + 0x40], rbx
mov r8, rdi
mov rdx, r13
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x30]
mov rdi, qword [rbp + 0x230]
mov rdx, rdi
mov rcx, r15
call fcn.14003ce70
mov qword [rbp + 0x240], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
lea rax, [r14 + 0xc]
sub rax, r14
mov qword [rbp + 0x238], rax
mov r13, rax
sar r13, 2
movabs rbx, 0x3fffffffffffffff
test r13, r13
je 0x140041990
cmp r13, rbx
ja 0x140041b66
lea rbx, [r13*4]
cmp rbx, 0x1000
jb 0x140041951
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140041b60
call fcn.140049b70
mov rcx, rax
test rax, rax
je 0x140041a0a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140041962
test rbx, rbx
je 0x140041960
mov rcx, rbx
call fcn.140049b70
jmp 0x140041962
xor eax, eax
mov qword [rsp + 0x30], rax
add rbx, rax
mov qword [rsp + 0x40], rbx
mov r8, qword [rbp + 0x238]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x38], rbx
movabs rbx, 0x3fffffffffffffff
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, r15
call fcn.14003ce70
mov qword [rbp + 0x238], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
sub r12, rsi
mov rdi, r12
sar rdi, 2
test rdi, rdi
je 0x140041a42
cmp rdi, rbx
ja 0x140041b66
lea rbx, [rdi*4]
cmp rbx, 0x1000
jb 0x140041a11
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140041b60
call fcn.140049b70
mov rcx, rax
test rax, rax
je 0x140041a0a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140041a22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rbx, rbx
je 0x140041a20
mov rcx, rbx
call fcn.140049b70
jmp 0x140041a22
xor eax, eax
mov qword [rsp + 0x30], rax
add rbx, rax
mov qword [rsp + 0x40], rbx
mov r8, r12
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x30]
mov rdx, qword [rbp + 0x230]
mov rcx, r15
call fcn.14003ce70
mov rbx, rax
xor r12d, r12d
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 4]
lea r8, [0x1400a661c]
mov rdx, qword [rbp + 0x240]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 4]
lea r8, [0x1400a661c]
mov rdx, qword [rbp + 0x238]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 4]
lea r8, [0x1400a661c]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rsi, rsi
je 0x140041af3
lea rdx, [rdi*4]
cmp rdx, 0x1000
jb 0x140041aea
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x140041b52
mov rsi, rcx
mov rcx, rsi
call fcn.1400498b8
nop
test r14, r14
je 0x140041b2a
lea rdx, [r13*4]
cmp rdx, 0x1000
jb 0x140041b21
add rdx, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x140041b59
mov r14, rcx
mov rcx, r14
call fcn.1400498b8
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140041b3e
mov edx, 0xc
call fcn.1400498b8
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14003a8a0
int3
call fcn.1400495e0
int3