Function at 0x140001740
Capabilities:
Check if file exists
Delete directory
Delete file
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x3b0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x3a8], rax
xor esi, esi
mov edi, esi
mov dword [rsp + 0x40], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
mov qword [r11 - 0x2f8], 0xb
mov qword [r11 - 0x2f0], 0xf
movsd xmm0, qword [str.discord.dll]
movsd qword [rsp + 0xc0], xmm0
movzx eax, word [0x1400065f0]
mov word [rsp + 0xc8], ax
movzx eax, byte [0x1400065f2]
mov byte [rsp + 0xca], al
mov byte [rsp + 0xcb], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0xe0], xmm0
mov qword [r11 - 0x2d8], rsi
mov qword [r11 - 0x2d0], 0xf
lea ecx, [rsi + 0x20]
call fcn.140004470
mov rcx, rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xf0], 0x1f
mov qword [rsp + 0xf8], 0x1f
movups xmm0, xmmword [str.CitizenFX_SubProcess_chrome.bin]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140006608]
movsd qword [rax + 0x10], xmm0
mov eax, dword [0x140006610]
mov dword [rcx + 0x18], eax
movzx eax, word [0x140006614]
mov word [rcx + 0x1c], ax
movzx eax, byte [0x140006616]
mov byte [rcx + 0x1e], al
mov byte [rcx + 0x1f], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x100], xmm0
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0x118], 0xf
lea ecx, [rsi + 0x20]
call fcn.140004470
mov rdx, rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x110], 0x1d
mov qword [rsp + 0x118], 0x1f
movups xmm0, xmmword [str.CitizenFX_SubProcess_game.bin]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140006628]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x140006630]
mov dword [rax + 0x18], ecx
movzx eax, byte [0x140006634]
mov byte [rdx + 0x1c], al
mov byte [rdx + 0x1d], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x120], xmm0
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x138], 0xf
lea ecx, [rsi + 0x30]
call fcn.140004470
mov rcx, rax
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x130], 0x21
mov qword [rsp + 0x138], 0x2f
movups xmm0, xmmword [str.CitizenFX_SubProcess_game_372.bin]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140006648]
movups xmmword [rax + 0x10], xmm1
movzx eax, byte [0x140006658]
mov byte [rcx + 0x20], al
mov byte [rcx + 0x21], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x140], xmm0
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x158], 0xf
lea ecx, [rsi + 0x30]
call fcn.140004470
mov rcx, rax
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x150], 0x22
mov qword [rsp + 0x158], 0x2f
movups xmm0, xmmword [str.CitizenFX_SubProcess_game_1604.bin]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140006670]
movups xmmword [rax + 0x10], xmm1
movzx eax, word [0x140006680]
mov word [rcx + 0x20], ax
mov byte [rcx + 0x22], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x160], xmm0
mov qword [rsp + 0x170], rsi
mov qword [rsp + 0x178], 0xf
lea ecx, [rsi + 0x30]
call fcn.140004470
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x170], 0x22
mov qword [rsp + 0x178], 0x2f
movups xmm0, xmmword [str.CitizenFX_SubProcess_game_1868.bin]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140006698]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x1400066a8]
mov word [rax + 0x20], cx
mov byte [rax + 0x22], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x180], xmm0
mov qword [rsp + 0x190], rsi
mov qword [rsp + 0x198], 0xf
lea ecx, [rsi + 0x30]
call fcn.140004470
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x190], 0x22
mov qword [rsp + 0x198], 0x2f
movups xmm0, xmmword [str.CitizenFX_SubProcess_game_2060.bin]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400066c0]
movups xmmword [rax + 0x10], xmm1
movzx edx, word [0x1400066d0]
mov word [rax + 0x20], dx
mov byte [rax + 0x22], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x1a0], xmm0
mov qword [rsp + 0x1b0], rsi
mov qword [rsp + 0x1b8], 0xf
lea ecx, [rsi + 0x30]
call fcn.140004470
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1b0], 0x22
mov qword [rsp + 0x1b8], 0x2f
movups xmm0, xmmword [str.CitizenFX_SubProcess_game_2189.bin]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400066e8]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x1400066f8]
mov word [rax + 0x20], cx
mov byte [rax + 0x22], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d0], 9
mov qword [rsp + 0x1d8], 0xf
movsd xmm0, qword [str.botan.dll]
movsd qword [rsp + 0x1c0], xmm0
movzx eax, byte [0x140006708]
mov byte [rsp + 0x1c8], al
mov byte [rsp + 0x1c9], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x1e0], xmm0
mov qword [rsp + 0x1f0], 0xc
mov qword [rsp + 0x1f8], 0xf
movsd xmm0, qword [str.asi_five.dll]
movsd qword [rsp + 0x1e0], xmm0
mov eax, dword [0x140006718]
mov dword [rsp + 0x1e8], eax
mov byte [rsp + 0x1ec], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x200], xmm0
mov qword [rsp + 0x210], 9
mov qword [rsp + 0x218], 0xf
movsd xmm0, qword [str.steam.dll]
movsd qword [rsp + 0x200], xmm0
movzx eax, byte [0x140006728]
mov byte [rsp + 0x208], al
mov byte [rsp + 0x209], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x220], xmm0
mov qword [rsp + 0x230], 0xf
mov qword [rsp + 0x238], 0xf
movsd xmm0, qword [str.steam_api64.dll]
movsd qword [rsp + 0x220], xmm0
mov eax, dword [0x140006738]
mov dword [rsp + 0x228], eax
movzx eax, word [0x14000673c]
mov word [rsp + 0x22c], ax
movzx eax, byte [0x14000673e]
mov byte [rsp + 0x22e], al
mov byte [rsp + 0x22f], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x240], xmm0
mov qword [rsp + 0x250], 0xf
mov qword [rsp + 0x258], 0xf
movsd xmm0, qword [str.CitizenGame.dll]
movsd qword [rsp + 0x240], xmm0
mov eax, dword [0x140006748]
mov dword [rsp + 0x248], eax
movzx eax, word [0x14000674c]
mov word [rsp + 0x24c], ax
movzx eax, byte [0x14000674e]
mov byte [rsp + 0x24e], al
mov byte [rsp + 0x24f], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x260], xmm0
mov qword [rsp + 0x270], 0xc
mov qword [rsp + 0x278], 0xf
movsd xmm0, qword [str.profiles.dll]
movsd qword [rsp + 0x260], xmm0
mov eax, dword [0x140006758]
mov dword [rsp + 0x268], eax
mov byte [rsp + 0x26c], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x280], xmm0
mov qword [rsp + 0x290], rsi
mov qword [rsp + 0x298], 0xf
lea ecx, [rsi + 0x20]
call fcn.140004470
mov rdx, rax
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x290], 0x13
mov qword [rsp + 0x298], 0x1f
movups xmm0, xmmword [str.cfx_curl_x86_64.dll]
movups xmmword [rax], xmm0
movzx ecx, word [0x140006770]
mov word [rax + 0x10], cx
movzx eax, byte [0x140006772]
mov byte [rdx + 0x12], al
mov byte [rdx + 0x13], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x2a0], xmm0
mov qword [rsp + 0x2b0], 0xd
mov qword [rsp + 0x2b8], 0xf
movsd xmm0, qword [str.CitizenFX.ini]
movsd qword [rsp + 0x2a0], xmm0
mov eax, dword [0x140006780]
mov dword [rsp + 0x2a8], eax
movzx eax, byte [0x140006784]
mov byte [rsp + 0x2ac], al
mov byte [rsp + 0x2ad], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x2c0], xmm0
mov qword [rsp + 0x2d0], 0xa
mov qword [rsp + 0x2d8], 0xf
movsd xmm0, qword [str.caches.XML]
movsd qword [rsp + 0x2c0], xmm0
movzx eax, word [0x140006790]
mov word [rsp + 0x2c8], ax
mov byte [rsp + 0x2ca], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x2e0], xmm0
mov qword [rsp + 0x2f0], 0xc
mov qword [rsp + 0x2f8], 0xf
movsd xmm0, qword [str.adhesive.dll]
movsd qword [rsp + 0x2e0], xmm0
mov eax, dword [0x1400067a0]
mov dword [rsp + 0x2e8], eax
mov byte [rsp + 0x2ec], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x300], xmm0
mov qword [rsp + 0x310], rsi
mov qword [rsp + 0x318], 0xf
lea ecx, [rsi + 0x20]
call fcn.140004470
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x310], 0x13
mov qword [rsp + 0x318], 0x1f
movups xmm0, xmmword [str.cfx_curl_x86_64.dll]
movups xmmword [rax], xmm0
movzx ecx, word [0x140006770]
mov word [rax + 0x10], cx
movzx ecx, byte [0x140006772]
mov byte [rax + 0x12], cl
mov byte [rax + 0x13], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x320], xmm0
mov qword [rsp + 0x330], 0xf
mov qword [rsp + 0x338], 0xf
movsd xmm0, qword [str.steam_api64.dll]
movsd qword [rsp + 0x320], xmm0
mov eax, dword [0x140006738]
mov dword [rsp + 0x328], eax
movzx eax, word [0x14000673c]
mov word [rsp + 0x32c], ax
movzx eax, byte [0x14000673e]
mov byte [rsp + 0x32e], al
mov byte [rsp + 0x32f], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x340], xmm0
mov qword [rsp + 0x350], 0xc
mov qword [rsp + 0x358], 0xf
movsd xmm0, qword [str.profiles.dll]
movsd qword [rsp + 0x340], xmm0
mov eax, dword [0x140006758]
mov dword [rsp + 0x348], eax
mov byte [rsp + 0x34c], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x360], xmm0
mov qword [rsp + 0x370], 4
mov qword [rsp + 0x378], 0xf
mov dword [rsp + 0x360], 0x73676f6c
mov byte [rsp + 0x364], sil
movups xmmword [rsp + 0x380], xmm0
mov qword [rsp + 0x390], 7
mov qword [rsp + 0x398], 0xf
mov rax, qword [str.crashes]
mov dword [rsp + 0x380], eax
movzx eax, word [0x1400067ac]
mov word [rsp + 0x384], ax
movzx eax, byte [0x1400067ae]
mov byte [rsp + 0x386], al
mov byte [rsp + 0x387], sil
lea rbx, [rsp + 0xc0]
lea r14, [rsp + 0x3a0]
movabs r15, 0x7fffffffffffffff
lea r12, [0x14000aa38]
lea r13, str.FiveM.app_
nop word [rax + rax]
cmp rbx, r14
je 0x1400021ef
mov rcx, qword [0x14000aa48]
mov rax, r15
sub rax, rcx
cmp rax, 0xb
jae 0x140002021
call fcn.1400012b0
mov r9, r12
cmp qword [0x14000aa50], 0xf
cmova r9, qword [0x14000aa38]
mov qword [rsp + 0x30], 0xb
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x48]
call fcn.140004250
or edi, 1
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140002061
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x48]
call fcn.1400038d0
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xb0], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or edi, 2
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400020f3
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400020ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400047bc
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0xf
cmova rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1400021a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400021a0
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0xf
cmova rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400021a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400021a0
lea r8, [rsp + 0xa0]
lea rdx, str.Error_deleting_file:
lea rcx, [rsp + 0x80]
call fcn.140003950
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400012d0
lea rdx, [0x140007f48]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0xf
jbe 0x1400021e6
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400047bc
add rbx, 0x20
jmp 0x140002000
lea r9, [fcn.1400032e0]
mov edx, 0x20
lea r8d, [rdx - 9]
lea rcx, [rsp + 0xc0]
call fcn.1400044ac
nop
lea rdx, str._Success_pls_start_game.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003b90
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3