Function at 0x180002520
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x180009040]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18000277e
movabs r13, 0x7ffffffffffffffe
lea r12, str.GTAProcess
xor r15d, r15d
xorps xmm0, xmm0
lea rax, [rsp + 0x6c]
movups xmmword [rsp + 0x20], xmm0
mov ecx, 0xa
movabs rdx, 0x7fffffffffffffff
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x1800025b6
cmp rdi, r13
ja 0x1800027d3
cmp rdi, 7
ja 0x18000260d
lea rbx, [rdi + rdi]
mov qword [rsp + 0x30], rdi
mov r8, rbx
mov qword [rsp + 0x38], 7
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x20], r15w
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x20]
jmp 0x1800026a4
mov rbp, rdi
or rbp, 7
cmp rbp, r13
jbe 0x180002655
mov rbp, r13
lea rcx, [rdx + rdx]
cmp rcx, 0x1000
jb 0x180002674
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800027cd
mov rcx, rax
call fcn.180004a94
test rax, rax
je 0x1800027ba
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x18000267c
cmp rbp, 0xa
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, rdx
ja 0x1800027cd
add rcx, rcx
jne 0x180002620
mov rsi, r15
jmp 0x18000267c
call fcn.180004a94
mov rsi, rax
lea rbx, [rdi + rdi]
mov qword [rsp + 0x20], rsi
mov r8, rbx
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x38], rbp
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], r15w
cmp rbp, 7
lea r9, [rsp + 0x20]
cmova r9, rsi
cmp rdi, 0xa
jb 0x180002724
lea r10, [rdi - 9]
mov rbx, r9
lea r10, [r9 + r10*2]
mov rax, r10
mov rcx, r15
sub rax, rbx
sar rax, 1
je 0x1800026ec
cmp word [rbx], 0x47
je 0x1800026e9
cmp rax, 1
je 0x1800026ec
add rbx, 2
dec rax
cmp word [rbx], 0x47
jne 0x1800026d6
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x180002724
mov r8, rbx
mov edx, 0xa
sub r8, r12
mov rcx, r12
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x18000271e
add rcx, 2
sub rdx, 1
jne 0x180002702
sub rbx, r9
sar rbx, 1
jmp 0x18000272b
add rbx, 2
jmp 0x1800026c2
mov rbx, 0xffffffffffffffff
cmp rbp, 7
jbe 0x180002762
lea rdx, [rbp*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x18000275a
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800027ba
mov rcx, rsi
call fcn.180004a60
mov rcx, r14
cmp rbx, 0xffffffffffffffff
jne 0x1800027c1
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180002593
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180004a40
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
jmp 0x180002789
call fcn.180001a20
int3
call fcn.180001ac0
int3