Function at 0x140039930
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
xor r15d, r15d
mov edi, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400399ad
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400399ad
nop
lea rdx, [0x1400fa838]
lea rcx, [rbp - 0x74]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400399a9
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140039980
jmp 0x1400399ad
mov edi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140039ac6
lea rdx, [0x1400fa838]
mov ecx, edi
call fcn.140039790
mov rbx, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rbp + 0x1d8], Ordinal_50
mov dword [rbp + 0x1dc], 0x2b4
mov ecx, 8
call fcn.1400ad2a4
mov rsi, rax
mov qword [rsp + 0x48], rax
lea r14, [rax + 8]
mov qword [rsp + 0x58], r14
mov rcx, qword [rbp + 0x1d8]
mov qword [rax], rcx
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov ecx, 8
call fcn.1400ad2a4
mov qword [rsp + 0x30], rax
lea r8, [rax + 8]
mov qword [rsp + 0x40], r8
mov rcx, qword [rsi]
mov qword [rax], rcx
mov qword [rsp + 0x38], r8
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x2140688]
mov rcx, rdi
call fcn.140039830
mov dword [rbp + 0x1d0], 0x41400000
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rbp + 0x1d0]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rsi, rsi
je 0x140039ac6
sub r14, rsi
sar r14, 2
lea rdx, [r14*4]
cmp rdx, 0x1000
jb 0x140039abe
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x140039b29
mov rsi, rcx
mov rcx, rsi
call fcn.1400acfec
mov edi, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140039b34
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140039b34
nop word [rax + rax]
lea rdx, str.FiveM_b2944_GTAProcess.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140039b30
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140039b00
jmp 0x140039b34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140039c4d
lea rdx, str.FiveM_b2944_GTAProcess.exe
mov ecx, edi
call fcn.140039790
mov rbx, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rbp + 0x1d8], Ordinal_50
mov dword [rbp + 0x1dc], 0x2b4
mov ecx, 8
call fcn.1400ad2a4
mov rsi, rax
mov qword [rsp + 0x48], rax
lea r14, [rax + 8]
mov qword [rsp + 0x58], r14
mov rcx, qword [rbp + 0x1d8]
mov qword [rax], rcx
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov ecx, 8
call fcn.1400ad2a4
mov qword [rsp + 0x30], rax
lea r8, [rax + 8]
mov qword [rsp + 0x40], r8
mov rcx, qword [rsi]
mov qword [rax], rcx
mov qword [rsp + 0x38], r8
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x2053218]
mov rcx, rdi
call fcn.140039830
mov dword [rbp + 0x1d0], 0x41400000
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rbp + 0x1d0]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rsi, rsi
je 0x140039c4d
sub r14, rsi
sar r14, 2
lea rdx, [r14*4]
cmp rdx, 0x1000
jb 0x140039c45
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x140039ca9
mov rsi, rcx
mov rcx, rsi
call fcn.1400acfec
mov edi, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140039cb4
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140039cb4
nop
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 0x140039cb0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140039c80
jmp 0x140039cb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140039dcd
lea rdx, str.FiveM_GTAProcess.exe
mov ecx, edi
call fcn.140039790
mov rbx, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rbp + 0x1d8], Ordinal_50
mov dword [rbp + 0x1dc], 0x2b4
mov ecx, 8
call fcn.1400ad2a4
mov rsi, rax
mov qword [rsp + 0x48], rax
lea r14, [rax + 8]
mov qword [rsp + 0x58], r14
mov rcx, qword [rbp + 0x1d8]
mov qword [rax], rcx
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov ecx, 8
call fcn.1400ad2a4
mov qword [rsp + 0x30], rax
lea r8, [rax + 8]
mov qword [rsp + 0x40], r8
mov rcx, qword [rsi]
mov qword [rax], rcx
mov qword [rsp + 0x38], r8
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x212b208]
mov rcx, rdi
call fcn.140039830
mov dword [rbp + 0x1d0], 0x41400000
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rbp + 0x1d0]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rsi, rsi
je 0x140039dcd
sub r14, rsi
sar r14, 2
lea rdx, [r14*4]
cmp rdx, 0x1000
jb 0x140039dc5
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x140039e29
mov rsi, rcx
mov rcx, rsi
call fcn.1400acfec
mov edi, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140039e34
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140039e34
nop
lea rdx, str.FiveM_b2372_GTAProcess.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140039e30
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140039e00
jmp 0x140039e34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140039f4d
lea rdx, str.FiveM_b2372_GTAProcess.exe
mov ecx, edi
call fcn.140039790
mov rbx, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rbp + 0x1d8], Ordinal_50
mov dword [rbp + 0x1dc], 0x2b4
mov ecx, 8
call fcn.1400ad2a4
mov rsi, rax
mov qword [rsp + 0x48], rax
lea r14, [rax + 8]
mov qword [rsp + 0x58], r14
mov rcx, qword [rbp + 0x1d8]
mov qword [rax], rcx
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov ecx, 8
call fcn.1400ad2a4
mov qword [rsp + 0x30], rax
lea r8, [rax + 8]
mov qword [rsp + 0x40], r8
mov rcx, qword [rsi]
mov qword [rax], rcx
mov qword [rsp + 0x38], r8
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x205c2c8]
mov rcx, rdi
call fcn.140039830
mov dword [rbp + 0x1d0], 0x41400000
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rbp + 0x1d0]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rsi, rsi
je 0x140039f4d
sub r14, rsi
sar r14, 2
lea rdx, [r14*4]
cmp rdx, 0x1000
jb 0x140039f45
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x140039fa9
mov rsi, rcx
mov rcx, rsi
call fcn.1400acfec
mov edi, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140039fb4
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140039fb4
nop
lea rdx, str.FiveM_b2802_GTAProcess.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140039fb0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140039f80
jmp 0x140039fb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14003a0cd
lea rdx, str.FiveM_b2802_GTAProcess.exe
mov ecx, edi
call fcn.140039790
mov rbx, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rbp + 0x1d8], Ordinal_50
mov dword [rbp + 0x1dc], 0x2b4
mov ecx, 8
call fcn.1400ad2a4
mov rsi, rax
mov qword [rsp + 0x48], rax
lea r14, [rax + 8]
mov qword [rsp + 0x58], r14
mov rcx, qword [rbp + 0x1d8]
mov qword [rax], rcx
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov ecx, 8
call fcn.1400ad2a4
mov qword [rsp + 0x30], rax
lea r8, [rax + 8]
mov qword [rsp + 0x40], r8
mov rcx, qword [rsi]
mov qword [rax], rcx
mov qword [rsp + 0x38], r8
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x2024890]
mov rcx, rdi
call fcn.140039830
mov dword [rbp + 0x1d0], 0x41400000
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rbp + 0x1d0]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rsi, rsi
je 0x14003a0cd
sub r14, rsi
sar r14, 2
lea rdx, [r14*4]
cmp rdx, 0x1000
jb 0x14003a0c5
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x14003a129
mov rsi, rcx
mov rcx, rsi
call fcn.1400acfec
mov edi, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003a134
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14003a134
nop
lea rdx, str.FiveM_b3095_GTAProcess.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14003a130
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14003a100
jmp 0x14003a134
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14003a248
lea rdx, str.FiveM_b3095_GTAProcess.exe
mov ecx, edi
call fcn.140039790
mov rbx, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rbp + 0x1d8], Ordinal_50
mov dword [rbp + 0x1dc], 0x2b4
mov ecx, 8
call fcn.1400ad2a4
mov r14, rax
mov qword [rsp + 0x48], rax
lea rsi, [rax + 8]
mov qword [rsp + 0x58], rsi
mov rdx, qword [rbp + 0x1d8]
mov qword [rax], rdx
mov qword [rsp + 0x50], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov ecx, 8
call fcn.1400ad2a4
mov qword [rsp + 0x30], rax
lea r8, [rax + 8]
mov qword [rsp + 0x40], r8
mov rcx, qword [r14]
mov qword [rax], rcx
mov qword [rsp + 0x38], r8
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x206a778]
mov rcx, rdi
call fcn.140039830
mov dword [rbp + 0x1d0], 0x41400000
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rbp + 0x1d0]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test r14, r14
je 0x14003a248
sub rsi, r14
and rsi, 0xfffffffffffffffc
cmp rsi, 0x1000
jb 0x14003a23d
add rsi, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x14003a25f
mov r14, rcx
mov rdx, rsi
mov rcx, r14
call fcn.1400acfec
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3