Function at 0x140001730
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
call fcn.140001290
xor r14d, r14d
mov edi, r14d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400017ca
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400017ca
lea rdx, str.FiveM_GTAProcess.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400017c6
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14000179d
mov edi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, r14
mov edx, edi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001830
mov dword [rsp + 0x60], 0x438
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140001830
lea rdx, str.FiveM_GTAProcess.exe
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000182b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x140001802
mov rsi, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
mov qword [rsp + 0x30], rax
lea rbx, [rsi + 0x212b208]
xorps xmm0, xmm0
movups xmmword [rbp + 0x3a8], xmm0
mov dword [rsp + 0x58], 0x40
mov dword [rsp + 0x5c], 0x28c
mov ecx, 8
call fcn.1400031e0
mov rsi, rax
mov qword [rbp + 0x3a8], rax
lea rdi, [rax + 8]
mov qword [rbp + 0x3b8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rsi], rax
mov qword [rbp + 0x3b0], rdi
mov ecx, 8
call fcn.1400031e0
mov r14, rax
lea r13, [rax + 8]
mov rax, qword [rsi]
mov qword [r14], rax
mov qword [rsp + 0x58], rbx
xor r12d, r12d
mov rax, r13
sub rax, r14
sar rax, 2
test rax, rax
je 0x14000192c
xor r15d, r15d
mov rdi, qword [rsp + 0x30]
mov rsi, rax
nop dword [rax]
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x58]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, dword [r14 + r15*4]
add rbx, qword [rsp + 0x58]
mov qword [rsp + 0x58], rbx
inc r12d
mov r15d, r12d
cmp r15, rsi
jb 0x1400018e0
mov rdi, qword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3a8]
mov r15, qword [rsp + 0x30]
test r14, r14
je 0x140001970
sub r13, r14
sar r13, 2
lea rdx, [r13*4]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001968
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001968
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14000321c
mov dword [rbp + 0x3a0], 0
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 4]
lea r8, [rbp + 0x3a0]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movss xmm0, dword [0x140008044]
movss dword [rbp + 0x3a4], xmm0
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 4]
lea r8, [rbp + 0x3a4]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rsi, rsi
je 0x1400019fe
sub rdi, rsi
and rdi, 0xfffffffffffffffc
cmp rdi, 0x1000
jb 0x1400019f3
add rdi, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x140001a30
mov rsi, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.14000321c
xor eax, eax
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400031c0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3