Function at 0x14005c020
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 0x14005c9da
cmp qword [rsp + 0x40], rsi
je 0x14005c9da
call fcn.140073058
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.14005a500
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 0x14005c0c0
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.140069000
nop
call fcn.140073058
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.14005a500
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x90]
call fcn.14005a750
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005c181
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c17c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c17c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
lea rcx, [rsp + 0x90]
call fcn.14005b450
test al, al
jne 0x14005c283
mov qword [rsp + 0x50], rsi
lea rax, str.X2_n_
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x90]
call fcn.14005b540
cmp dword [rsp + 0x50], 0
jne 0x14005ca08
test al, al
jne 0x14005c283
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x14005c220
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c21b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005c960
call fcn.140072428
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0xa0], xmm0
mov word [rsp + 0x90], si
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x14005c27e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c279
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005c9c1
call fcn.140072428
jmp 0x14005c9da
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.14005a660
cmp rax, rdi
je 0x14005c2eb
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14005c2c2
cmp cx, 0x2f
jne 0x14005c2d0
add rax, 2
jmp 0x14005c2ae
lea rdx, [r11 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14005c2eb
cmp cx, 0x2f
je 0x14005c2eb
mov r11, rdx
cmp rax, rdx
jne 0x14005c2d0
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.140069000
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14005aa80
nop
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14005a750
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.14005aa80
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14005c391
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c38b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c38b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005c3d6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c3d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c3d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
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.14007361c
test eax, eax
jne 0x14005ca22
mov rdx, qword [rsp + 0x40]
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14005c430
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.140069000
nop
call fcn.140073058
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.14005a500
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xd0]
call fcn.14005a750
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005c4f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c4ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c4ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
call fcn.140073058
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.14005a500
nop
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.14005aa80
nop
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14005a750
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.14005aa80
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14005c596
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c590
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c590
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005c5db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c5d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c5d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rcx, [rsp + 0xf0]
call fcn.14005b450
mov r9d, 0x30
xor ecx, ecx
test al, al
je 0x14005c7dc
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.140069640
nop
mov ebx, esi
movabs r15, 0x7fffffffc46535ff
movabs r14, 0x7fffffffffffffff
nop dword [rax + rax]
cmp ebx, 0x1e
jge 0x14005c6de
lea rcx, [rsp + 0xf0]
call fcn.14005b450
test al, al
jne 0x14005c705
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 0x14005c68c
imul rax, rax, 0x64
jmp 0x14005c6aa
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
imul rcx, rcx, 0x3b9aca00
add rax, rcx
cmp rax, r15
jge 0x14005c6c8
add rax, 0x3b9aca00
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.14006b400
inc ebx
jmp 0x14005c650
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x50]
call fcn.14006b400
inc ebx
jmp 0x14005c650
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.14007361c
test eax, eax
jne 0x14005ca37
mov rdx, qword [rsp + 0x128]
cmp rdx, 0x10
jb 0x14005c792
inc rdx
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c78c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c78c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
nop
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x14005c840
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c83b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c83b
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.14007361c
test eax, eax
jne 0x14005ca4c
jmp 0x14005c792
call fcn.140072428
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0x100], xmm0
mov word [rsp + 0xf0], si
mov rdx, qword [rsp + 0xe8]
cmp rdx, 8
jb 0x14005c8a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c89f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c89f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0xe0], xmm0
mov word [rsp + 0xd0], si
mov rdx, qword [rsp + 0xc8]
cmp rdx, 8
jb 0x14005c908
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c903
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c903
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0xc0], xmm0
mov word [rsp + 0xb0], si
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x14005c96c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c967
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c967
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
movdqa xmm0, xmmword [0x1400a3950]
movdqu xmmword [rsp + 0xa0], xmm0
mov word [rsp + 0x90], si
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x14005c9ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c9c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c9c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140071e50
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.14005b3f0
nop
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x70]
mov edx, eax
call fcn.14005b370
nop
lea r9, [rsp + 0x70]
lea r8, [rsp + 0xb0]
mov edx, eax
call fcn.14005b370
nop
lea r9, [rsp + 0x70]
lea r8, [rsp + 0xb0]
mov edx, eax
call fcn.14005b370
int3