Function at 0x14006c020
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x108]
sub rsp, 0x200
movaps xmmword [rax - 0x18], xmm6
xor edi, edi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rbx, [rdi - 1]
xorps xmm0, xmm0
mov qword [rsp + 0x50], rdi
movups xmmword [rsp + 0x40], xmm0
test eax, eax
jne 0x14006c099
mov qword [rsp + 0x58], rdi
lea rax, [rbp - 0x20]
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], dil
jne 0x14006c080
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400458c0
jmp 0x14006c0a7
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], dil
mov r8d, 0xa
lea rdx, str.CitizenFX
lea rcx, [rsp + 0x40]
call fcn.1400454c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140054eb0
nop
mov qword [rbp - 0x60], rdi
mov edx, 2
lea rcx, [rbp - 0x80]
call fcn.14004a550
nop
mov dword [rsp + 0x30], edi
lea rsi, [0x1400c9098]
mov qword [rsp + 0x38], rsi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.140069210
cmp dword [rsp + 0x30], 0
jne 0x14006c455
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x14006c17d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c178
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c178
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400744bc
movdqa xmm0, xmmword [0x1400bb200]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14006c1ce
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c1c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c1c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400744bc
movdqa xmm0, xmmword [0x1400bb220]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14006c221
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c21c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c21c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400744bc
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
mov qword [rsp + 0x50], rdi
movups xmmword [rsp + 0x40], xmm0
test eax, eax
jne 0x14006c272
mov qword [rsp + 0x58], rdi
lea rax, [rbp - 0x20]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14006c256
mov r8, rbx
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400458c0
jmp 0x14006c280
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov r8d, 0x14
lea rdx, str.DigitalEntitlements
lea rcx, [rsp + 0x40]
call fcn.1400454c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140054eb0
nop
mov qword [rbp - 0x60], rdi
mov edx, 2
lea rcx, [rbp - 0x80]
call fcn.14004a550
nop
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x38], rsi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.140069210
cmp dword [rsp + 0x30], 0
jne 0x14006c411
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x14006c34f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c34a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c34a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400744bc
movdqa xmm0, xmmword [0x1400bb200]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14006c3a0
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c39b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c39b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400744bc
movdqa xmm0, xmmword [0x1400bb220]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14006c3f3
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c3ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c3ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400744bc
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
movups xmm6, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140049b40
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140053e10
nop
movaps xmmword [rbp - 0x50], xmm6
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x80]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14004d8f0
lea rdx, [0x1400c5ad8]
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
movups xmm6, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140049b40
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140053e10
nop
movaps xmmword [rbp - 0x50], xmm6
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x80]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14004d8f0
lea rdx, [0x1400c5ad8]
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3