Function at 0x140041250
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 0x1400412cb
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400412cb
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 0x1400412c8
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400412a0
jmp 0x1400412cb
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 0x140041500
cmp r13, rbx
ja 0x1400416d6
lea rbx, [r13*4]
cmp rbx, 0x1000
jb 0x1400414c1
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x1400416d0
call fcn.140049b70
mov rcx, rax
test rax, rax
je 0x14004157a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400414d2
test rbx, rbx
je 0x1400414d0
mov rcx, rbx
call fcn.140049b70
jmp 0x1400414d2
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 0x1400415b2
cmp rdi, rbx
ja 0x1400416d6
lea rbx, [rdi*4]
cmp rbx, 0x1000
jb 0x140041581
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x1400416d0
call fcn.140049b70
mov rcx, rax
test rax, rax
je 0x14004157a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140041592
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rbx, rbx
je 0x140041590
mov rcx, rbx
call fcn.140049b70
jmp 0x140041592
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, [0x1400a5ec8]
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, [0x1400a5ec8]
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, [0x1400a5ec8]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rsi, rsi
je 0x140041663
lea rdx, [rdi*4]
cmp rdx, 0x1000
jb 0x14004165a
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x1400416c2
mov rsi, rcx
mov rcx, rsi
call fcn.1400498b8
nop
test r14, r14
je 0x14004169a
lea rdx, [r13*4]
cmp rdx, 0x1000
jb 0x140041691
add rdx, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x1400416c9
mov r14, rcx
mov rcx, r14
call fcn.1400498b8
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400416ae
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