Function at 0x1400045a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x680]
sub rsp, 0x780
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rbp + 0x670], rax
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], r15
lea r8d, [r15 + 0x1a]
lea rdx, str.Rockstar_GamesSocial_Club
lea rcx, [rbp + 0x20]
call fcn.140001230
nop
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r12, [r15 - 1]
lea rbx, [0x14001a898]
lea r13d, [r15 + 7]
test eax, eax
jne 0x140004ae0
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
lea rax, [rbp + 0x40]
mov r8, r12
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140004650
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.140001230
nop
mov r8d, 1
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140006360
lea rdx, [rbp + 0x20]
mov r8, qword [rbp + 0x30]
lea rcx, [rbp - 0x30]
cmp qword [rbp + 0x38], 8
jb 0x140004692
mov rdx, qword [rbp + 0x20]
call fcn.140006360
lea rax, str.Cache
mov qword [rbp - 0x10], rax
lea rax, [0x14001aa78]
mov qword [rbp - 8], rax
lea rax, str.Titles
lea r14, [rbp + 8]
lea rsi, [rbp - 0x10]
mov qword [rbp], rax
movzx ebx, byte [rbp - 0x38]
movabs rax, 0x7ffffffffffffffe
mov rdi, qword [rsi]
mov rcx, qword [rbp - 0x20]
sub rax, rcx
cmp rax, 1
jb 0x14000508f
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
mov qword [rsp + 0x30], 1
lea rax, [0x14001a898]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x30]
movzx edx, bl
lea rcx, [rbp - 0x58]
call fcn.140003b10
nop
mov r8, r12
nop
inc r8
cmp word [rdi + r8*2], 0
jne 0x140004720
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.140006360
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r13
mov word [rax], r15w
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call fcn.1400051c0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400047bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400047ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004891
call fcn.14001726c
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r13
mov word [rsp + 0x60], r15w
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x1400047e9
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.140006440
add rsi, 8
cmp rsi, r14
jne 0x1400046c4
lea rax, str.ipc.log
mov qword [rbp + 8], rax
lea rax, str.socialclub.log
mov qword [rbp + 0x10], rax
lea r12, [rbp + 8]
mov r8d, 0xa
movabs rdx, 0x7fffffffffffffff
mov rsi, qword [r12]
mov r15, qword [rbp - 0x20]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 1
jb 0x14000509b
lea r13, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r13, qword [rbp - 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea r14, [r15 + 1]
mov ebx, 7
lea rdi, [rsp + 0x40]
cmp r14, rbx
jbe 0x1400048d2
mov rbx, r14
or rbx, 7
cmp rbx, rcx
jbe 0x140004898
mov rbx, rcx
lea rcx, [rdx + rdx]
call fcn.1400011f0
jmp 0x1400048ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp rbx, 0xa
cmovb rbx, r8
lea rcx, [rbx + 1]
cmp rcx, rdx
ja 0x140005095
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400048c0
call fcn.1400011f0
jmp 0x1400048ca
test rcx, rcx
je 0x1400048ca
call fcn.140017230
mov rdi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r13
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x5c
mov word [rbx + rdi], ax
xor r15d, r15d
mov word [rdi + r14*2], r15w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x140004910
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140006360
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r15
mov r13d, 7
mov qword [rax + 0x18], r13
mov word [rax], r15w
lea rcx, [rbp - 0x80]
call fcn.140005190
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400049a1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000499c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a78
call fcn.14001726c
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r13
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400049f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a7f
call fcn.14001726c
add r12, 8
lea rax, [rbp + 0x18]
cmp r12, rax
jne 0x140004810
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov qword [rbp], r15
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x38]
call fcn.140003dc0
nop
mov rdi, qword [rbp - 0x10]
test rdi, rdi
je 0x140004a8f
mov rbx, rdi
mov rsi, qword [rbp - 8]
cmp rdi, rsi
je 0x140004a45
mov rcx, rbx
call fcn.140001de0
add rbx, 0x20
cmp rbx, rsi
jne 0x140004a34
mov rdx, qword [rbp]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x140004a86
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a86
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14001726c
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140004ad2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004acd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004acd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
lea rbx, [0x14001a898]
mov r12, 0xffffffffffffffff
lea rax, [rbp + 0x250]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140004cd2
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
lea rax, [rbp + 0x250]
mov r8, r12
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140004b20
lea rdx, [rbp + 0x250]
lea rcx, [rbp - 0x30]
call fcn.140001230
nop
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140004b6e
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rdx, 8
cmovae rax, qword [rbp - 0x30]
mov dword [rax + rcx*2], 0x5c
jmp 0x140004b8d
mov qword [rsp + 0x20], 1
mov r9, rbx
movzx r8d, byte [rbp - 0x38]
mov edx, 1
lea rcx, [rbp - 0x30]
call fcn.1400034c0
lea r9, [rbp + 0x20]
mov r15, qword [rbp + 0x38]
cmp r15, 8
cmovae r9, qword [rbp + 0x20]
mov rsi, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
sub rax, rsi
mov rdi, qword [rbp + 0x30]
cmp rdi, rax
ja 0x140004be6
lea rax, [rdi + rsi]
mov qword [rbp - 0x20], rax
lea rbx, [rbp - 0x30]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x30]
lea rcx, [rbx + rsi*2]
lea r8, [rdi + rdi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rdi]
xor ecx, ecx
mov word [rbx + rax*2], cx
jmp 0x140004c06
mov qword [rsp + 0x20], rdi
movzx r8d, byte [rbp - 0x38]
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1400034c0
mov r15, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x30]
xor ecx, ecx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov qword [rbp], rcx
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x38]
call fcn.140003dc0
nop
mov rsi, qword [rbp - 0x10]
test rsi, rsi
je 0x140004c8d
mov rbx, rsi
mov r14, qword [rbp - 8]
cmp rsi, r14
je 0x140004c51
nop dword [rax]
mov rcx, rbx
call fcn.140001de0
add rbx, 0x20
cmp rbx, r14
jne 0x140004c40
mov rdx, qword [rbp]
sub rdx, rsi
and rdx, 0xffffffffffffffe0
mov rax, rsi
cmp rdx, 0x1000
jb 0x140004c84
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c84
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14001726c
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140004cda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ccb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ccb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
jmp 0x140004cda
mov r15, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x30]
lea rax, [rbp + 0x460]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140005020
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
lea rax, [rbp + 0x460]
nop dword [rax]
inc r12
cmp word [rax + r12*2], r14w
jne 0x140004d20
mov r8, r12
lea rdx, [rbp + 0x460]
lea rcx, [rbp - 0x30]
call fcn.140001230
nop
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140004d70
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rdx, 8
cmovae rax, qword [rbp - 0x30]
mov dword [rax + rcx*2], 0x5c
jmp 0x140004d93
mov qword [rsp + 0x20], 1
lea r9, [0x14001a898]
movzx r8d, byte [rbp - 0x38]
mov edx, 1
lea rcx, [rbp - 0x30]
call fcn.1400034c0
lea r9, [rbp + 0x20]
cmp r15, 8
cmovae r9, qword [rbp + 0x20]
mov rsi, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x140004de3
lea rax, [rdi + rsi]
mov qword [rbp - 0x20], rax
lea rbx, [rbp - 0x30]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x30]
lea rcx, [rbx + rsi*2]
lea r8, [rdi + rdi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rdi]
mov word [rbx + rax*2], r14w
jmp 0x140004dfd
mov qword [rsp + 0x20], rdi
movzx r8d, byte [rbp - 0x38]
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1400034c0
mov r15, qword [rbp + 0x38]
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 8], xmm1
mov qword [rbp + 0x18], r14
cmp dword [0x140021634], 0
jne 0x140004f5b
movups xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x17
lea rdx, str.scsdk_installer_log.txt
lea rcx, [rsp + 0x40]
call fcn.140001230
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, qword [rbp + 0x18]
je 0x140004e67
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov rdx, r13
mov word [rsp + 0x40], r14w
add qword [rbp + 0x10], 0x20
jmp 0x140004e7a
lea r8, [rsp + 0x40]
lea rcx, [rbp + 8]
call fcn.140003320
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140004eb7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004eb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004f4f
call fcn.14001726c
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x19
lea rdx, str.scsdk_uninstaller_log.txt
lea rcx, [rsp + 0x40]
call fcn.140001230
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, qword [rbp + 0x18]
je 0x140004f08
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov word [rsp + 0x40], r14w
add qword [rbp + 0x10], 0x20
jmp 0x140004f1b
lea r8, [rsp + 0x40]
lea rcx, [rbp + 8]
call fcn.140003320
mov r13, qword [rsp + 0x58]
cmp r13, 8
jb 0x140004f5b
lea rdx, [r13*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
lea r8, [rbp + 8]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x38]
call fcn.140003dc0
nop
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140004fdc
mov rdi, qword [rbp + 0x10]
cmp rbx, rdi
je 0x140004f95
nop
mov rcx, rbx
call fcn.140001de0
add rbx, 0x20
cmp rbx, rdi
jne 0x140004f80
mov rbx, qword [rbp + 8]
mov rdx, qword [rbp + 0x18]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140004fc8
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004fc8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14001726c
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r14
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140005020
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000501a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000501a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
nop
cmp r15, 8
jb 0x14000505f
lea rdx, [r15*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000505a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000505a
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 + 0x670]
xor rcx, rsp
call fcn.140017310
lea r11, [rsp + 0x780]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001e50
nop
call fcn.140001dc0
int3
call fcn.140001e50
int3