Function at 0x140010780
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x670]
sub rsp, 0x770
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov r14, rcx
xor r9d, r9d
lea r8d, [r9 + 0x26]
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor r9d, r9d
lea r8d, [r9 + 0x2a]
lea rdx, [rbp + 0x240]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xor r15d, r15d
mov qword [rbp], r15
mov qword [rbp + 8], r15
lea rax, [rbp + 0x30]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rax + r8*2], r15w
jne 0x140010800
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.140001230
nop
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
mov rax, rcx
sub rax, rsi
cmp rax, 0x10
jb 0x14001085f
lea rax, [rsi + 0x10]
mov qword [rbp], rax
lea rbx, [rbp - 0x10]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x10]
lea rcx, [rbx + rsi*2]
mov r8d, 0x20
lea rdx, str.Rockstar_Games_
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi*2 + 0x20], r15w
jmp 0x140010883
mov qword [rsp + 0x20], 0x10
lea r9, str.Rockstar_Games_
movzx r8d, byte [rsp + 0x30]
mov edx, 0x10
lea rcx, [rbp - 0x10]
call fcn.1400034c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
lea rax, [rbp + 0x240]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400108a0
lea rdx, [rbp + 0x240]
lea rcx, [rbp - 0x30]
call fcn.140001230
nop
mov rsi, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
sub rax, rsi
cmp rax, 0x10
jb 0x140010903
lea rax, [rsi + 0x10]
mov qword [rbp - 0x20], rax
lea rbx, [rbp - 0x30]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x30]
lea rcx, [rbx + rsi*2]
mov r8d, 0x20
lea rdx, str.Rockstar_Games_
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi*2 + 0x20], r15w
jmp 0x140010927
mov qword [rsp + 0x20], 0x10
lea r9, str.Rockstar_Games_
movzx r8d, byte [rsp + 0x30]
mov edx, 0x10
lea rcx, [rbp - 0x30]
call fcn.1400034c0
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
movdqa xmm1, xmmword [0x14001abb0]
movdqu xmmword [rbp + 0x20], xmm1
mov word [rbp + 0x10], r15w
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r15w
mov r8d, 0x104
lea rdx, [rbp + 0x450]
lea rcx, str.ProgramW6432
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140010b05
lea rax, [rbp + 0x450]
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140010980
mov r8, rdi
lea rdx, [rbp + 0x450]
lea rcx, [rbp - 0x70]
call fcn.140001e80
mov rdi, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
sub rax, rdi
cmp rax, 0x10
jb 0x1400109e4
lea rax, [rdi + 0x10]
mov qword [rbp - 0x60], rax
lea rbx, [rbp - 0x70]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x70]
lea rcx, [rbx + rdi*2]
mov r8d, 0x20
lea rdx, str.Rockstar_Games_
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x20], r15w
jmp 0x140010a08
mov qword [rsp + 0x20], 0x10
lea r9, str.Rockstar_Games_
movzx r8d, byte [rsp + 0x30]
mov edx, 0x10
lea rcx, [rbp - 0x70]
call fcn.1400034c0
mov rdi, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
sub rax, rdi
cmp rax, 0xc
jb 0x140010a4f
lea rax, [rdi + 0xc]
mov qword [rbp - 0x60], rax
lea rbx, [rbp - 0x70]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x70]
lea rcx, [rbx + rdi*2]
mov r8d, 0x18
lea rdx, str.Social_Club_
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x18], r15w
jmp 0x140010a73
mov qword [rsp + 0x20], 0xc
lea r9, str.Social_Club_
movzx r8d, byte [rsp + 0x30]
mov edx, 0xc
lea rcx, [rbp - 0x70]
call fcn.1400034c0
lea rsi, [r14 + 0x478]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14001abb0]
movdqa xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], r15w
movups xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], r15w
mov r8d, 3
lea rdx, [0x14001b428]
lea rcx, [rsp + 0x40]
call fcn.140001e80
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140001e80
mov dword [rbp - 0x80], 0xc3
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140011170
nop
lea rcx, [rsp + 0x60]
call fcn.140001de0
lea rcx, [rsp + 0x40]
call fcn.140001de0
jmp 0x140010b0c
lea rsi, [r14 + 0x478]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.140003a00
nop
mov rdi, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
sub rax, rdi
cmp rax, 0xc
jb 0x140010b61
lea rax, [rdi + 0xc]
mov qword [rbp - 0x40], rax
lea rbx, [rbp - 0x50]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x50]
lea rcx, [rbx + rdi*2]
mov r8d, 0x18
lea rdx, str.Social_Club_
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x18], r15w
jmp 0x140010b85
mov qword [rsp + 0x20], 0xc
lea r9, str.Social_Club_
movzx r8d, byte [rsp + 0x30]
mov edx, 0xc
lea rcx, [rbp - 0x50]
call fcn.1400034c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14001abb0]
movdqa xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], r15w
movups xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], r15w
mov r8d, 3
lea rdx, [0x14001b430]
lea rcx, [rsp + 0x40]
call fcn.140001e80
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.140001e80
mov dword [rbp - 0x80], 0xe2
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140011170
nop
lea rcx, [rsp + 0x60]
call fcn.140001de0
lea rcx, [rsp + 0x40]
call fcn.140001de0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140010c52
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010c4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010c4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r15w
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140010ca6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010ca1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010ca1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r15w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140010cfa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010cf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010cf5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x140010d4e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010d49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010d49
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.140017310
lea r11, [rsp + 0x770]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret