Function at 0x14005bfd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x140
mov rax, qword [0x1400af010]
xor rax, rsp
mov qword [rsp + 0x138], rax
xor esi, esi
mov qword [rsp + 0x40], rsi
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140076a80]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14005c98a
cmp qword [rsp + 0x40], rsi
je 0x14005c98a
call fcn.1400731d8
lea rcx, str.C:Windows_securitydatabased3d10.dll
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x26
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14005a4e0
nop
mov rdx, qword [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14005c070
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], 7
mov word [rsp + 0x90], si
lea rcx, [rsp + 0x90]
call fcn.140069180
nop
call fcn.1400731d8
lea rcx, str.FiveMFiveM.appplugins
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x17
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.14005a4e0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x90]
call fcn.14005a730
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005c131
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c12c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c12c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
lea rcx, [rsp + 0x90]
call fcn.14005b430
test al, al
jne 0x14005c233
mov qword [rsp + 0x50], rsi
lea rax, [0x1401331f0]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x90]
call fcn.14005b520
cmp dword [rsp + 0x50], 0
jne 0x14005c9b8
test al, al
jne 0x14005c233
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x14005c1d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c1cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005c910
call fcn.1400725a8
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0xa0], xmm0
mov word [rsp + 0x90], si
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x14005c22e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c229
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005c971
call fcn.1400725a8
jmp 0x14005c98a
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x80]
lea rdi, [rcx + rax*2]
mov r11, rdi
mov rdx, rdi
call fcn.14005a640
cmp rax, rdi
je 0x14005c29b
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14005c272
cmp cx, 0x2f
jne 0x14005c280
add rax, 2
jmp 0x14005c25e
lea rdx, [r11 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14005c29b
cmp cx, 0x2f
je 0x14005c29b
mov r11, rdx
cmp rax, rdx
jne 0x14005c280
sub rdi, r11
sar rdi, 1
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], si
mov r8, rdi
mov rdx, r11
lea rcx, [rsp + 0x20]
call fcn.140069180
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14005aa60
nop
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14005a730
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.14005aa60
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14005c341
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c33b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c33b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005c386
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c381
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c381
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rcx, qword [rsp + 0x70]
call fcn.14007379c
test eax, eax
jne 0x14005c9d2
mov rdx, qword [rsp + 0x40]
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14005c3e0
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xe8], 7
mov word [rsp + 0xd0], si
mov r8, rbx
lea rcx, [rsp + 0xd0]
call fcn.140069180
nop
call fcn.1400731d8
lea rcx, str.FiveM_
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 6
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.14005a4e0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xd0]
call fcn.14005a730
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005c4a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c49e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c49e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
call fcn.1400731d8
lea rcx, str.FiveM.exe
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 9
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.14005a4e0
nop
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.14005aa60
nop
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14005a730
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.14005aa60
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14005c546
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c540
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c540
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005c58b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c586
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c586
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rcx, [rsp + 0xf0]
call fcn.14005b430
mov r9d, 0x30
xor ecx, ecx
test al, al
je 0x14005c78c
lea r8, str.FiveM
lea rdx, str.Now_Start_FiveM__but_first_click_ok_
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xf0]
call fcn.1400697c0
nop
mov ebx, esi
movabs r15, 0x7fffffffc46535ff
movabs r14, 0x7fffffffffffffff
nop dword [rax + rax]
cmp ebx, 0x1e
jge 0x14005c68e
lea rcx, [rsp + 0xf0]
call fcn.14005b430
test al, al
jne 0x14005c6b5
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x14005c63c
imul rax, rax, 0x64
jmp 0x14005c65a
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
imul rcx, rcx, 0x3b9aca00
add rax, rcx
cmp rax, r15
jge 0x14005c678
add rax, 0x3b9aca00
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.14006b580
inc ebx
jmp 0x14005c600
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x50]
call fcn.14006b580
inc ebx
jmp 0x14005c600
mov r9d, 0x30
lea r8, str.FiveM_Not_Found
lea rdx, str.FiveM_not_found._Please_open_FiveM_and_then_click_OK.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rcx, qword [rsp + 0xb0]
call fcn.14007379c
test eax, eax
jne 0x14005c9e7
mov rdx, qword [rsp + 0x128]
cmp rdx, 0x10
jb 0x14005c742
inc rdx
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c73c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c73c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
nop
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x14005c7f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c7eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c7eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r8, str.FiveM_Not_Found
lea rdx, str.Please_start_FiveM
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rcx, qword [rsp + 0xb0]
call fcn.14007379c
test eax, eax
jne 0x14005c9fc
jmp 0x14005c742
call fcn.1400725a8
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0x100], xmm0
mov word [rsp + 0xf0], si
mov rdx, qword [rsp + 0xe8]
cmp rdx, 8
jb 0x14005c854
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c84f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c84f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0xe0], xmm0
mov word [rsp + 0xd0], si
mov rdx, qword [rsp + 0xc8]
cmp rdx, 8
jb 0x14005c8b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c8b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c8b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0xc0], xmm0
mov word [rsp + 0xb0], si
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x14005c91c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c917
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c917
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0xa0], xmm0
mov word [rsp + 0x90], si
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x14005c97e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c978
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c978
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140071fd0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x50]
lea rcx, str.create_directories
call fcn.14005b3d0
nop
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x70]
mov edx, eax
call fcn.14005b350
nop
lea r9, [rsp + 0x70]
lea r8, [rsp + 0xb0]
mov edx, eax
call fcn.14005b350
nop
lea r9, [rsp + 0x70]
lea r8, [rsp + 0xb0]
mov edx, eax
call fcn.14005b350
int3