Function at 0x14012891c
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2a8
movaps xmmword [rsp + 0x290], xmm6
mov rbx, r9
mov rsi, r8
mov rdi, rdx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x288], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], r15
movaps xmm6, xmmword [0x14026fe30]
movaps xmmword [rsp + 0x30], xmm6
cmp byte [rcx + 0x17], 0
js 0x140128983
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x140128994
mov rdx, qword [rcx]
mov r8, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.1400e9174
lea r14, [rsp + 0x80]
mov qword [r14 + 0x10], r15
movaps xmmword [r14], xmm6
lea rdx, str.SOFTWAREPolicies_
mov rcx, r14
call fcn.14003f01a
mov rcx, rdi
xor edx, edx
mov r8, r14
call fcn.14012960d
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
cmp byte [r14 + 0x17], 0
jns 0x1401289e0
mov r14, qword [rsp + 0x80]
lea r12, [rsp + 0x60]
mov qword [rsp + 0x20], r12
lea r9, str.UserDataDir
mov ecx, 1
xor edx, edx
mov r8, r14
call fcn.140181039
test al, al
jne 0x140128a3c
cmp byte [rsp + 0x97], 0
jns 0x140128a18
mov r8, qword [rsp + 0x80]
jmp 0x140128a20
lea r8, [rsp + 0x80]
mov qword [rsp + 0x20], r12
lea r9, str.UserDataDir
mov ecx, 2
xor edx, edx
call fcn.140181039
test al, al
je 0x140128a70
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.140181368
cmp byte [rsp + 0x47], 0
jns 0x140128a5c
mov rcx, qword [rsp + 0x30]
call fcn.1402021a8
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x30], xmm0
cmp byte [rsp + 0x77], 0
jns 0x140128a81
mov rcx, qword [rsp + 0x60]
call fcn.1402021a8
cmp byte [rsp + 0x97], 0
jns 0x140128a98
mov rcx, qword [rsp + 0x80]
call fcn.1402021a8
mov al, byte [rsp + 0x47]
test al, al
mov rcx, qword [rsp + 0x38]
movzx edx, al
mov r8, rdx
cmovs r8, rcx
test r8, r8
je 0x140128b46
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.1400e6686
cmp word [rax], 0x5c
je 0x140128ad7
mov rcx, r14
call fcn.1400e6686
cmp word [rax], 0x2f
jne 0x140128b3a
movzx eax, byte [rsp + 0x47]
test al, al
js 0x140128afd
test rax, rax
je 0x140128dc4
cmp al, 0xc
jae 0x140128df0
dec rax
mov byte [rsp + 0x47], al
mov rcx, r14
jmp 0x140128b18
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140128dc4
mov rcx, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x38], rax
mov word [rcx + rax*2], 0
mov al, byte [rsp + 0x47]
test al, al
mov rcx, qword [rsp + 0x38]
movzx edx, al
mov r8, rdx
cmovs r8, rcx
test r8, r8
jne 0x140128abb
jmp 0x140128b46
mov al, byte [rsp + 0x47]
mov rcx, qword [rsp + 0x38]
movzx edx, al
test al, al
cmovs rdx, rcx
test rdx, rdx
je 0x140128b63
lea rcx, [rsp + 0x30]
call fcn.14012a95e
test al, al
jne 0x140128cf7
lea r14, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14003de3c
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r15
movaps xmmword [rbx], xmm6
lea rdx, str.LOCALAPPDATA
mov rcx, rbx
call fcn.140129c78
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x140128ba1
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x140128bf5
movaps xmm0, xmmword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x40], rcx
movaps xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], rax
movzx eax, byte [rsp + 0x47]
test al, al
js 0x140128c7b
test rax, rax
jne 0x140128c8e
jmp 0x140128e1c
xor r12d, r12d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140128cdb
mov r15d, eax
inc r15d
xor r12d, r12d
mov rcx, rbx
mov rdx, r15
xor r8d, r8d
call fcn.1400e9f82
cmp byte [rsp + 0x97], 0
jns 0x140128c33
mov rbx, qword [rsp + 0x80]
mov ecx, r15d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140128cdb
mov edx, eax
movzx eax, byte [rsp + 0x97]
test al, al
jns 0x140128c5d
mov rax, qword [rsp + 0x88]
cmp rax, rdx
jbe 0x140128dbc
lea rcx, [rsp + 0x80]
xor r8d, r8d
call fcn.1400e9f82
jmp 0x140128ba6
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140128e1c
mov r14, qword [rsp + 0x30]
cmp word [r14 + rax*2 - 2], 0x5c
je 0x140128ca5
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call fcn.1400e9c4a
mov r12b, 1
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov dl, 1
mov r8, rbx
call fcn.14012960d
mov rcx, rbx
mov dx, 0x5c
call fcn.1400e9c4a
lea rdx, str.User_Data
mov r8d, 9
mov rcx, rbx
call fcn.1400e9650
cmp byte [rsp + 0x97], 0
jns 0x140128cf2
mov rcx, qword [rsp + 0x80]
call fcn.1402021a8
test r12b, r12b
je 0x140128d1d
lea rdi, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1402055c0
cmp byte [rsp + 0x47], 0
jns 0x140128d21
mov rdx, qword [rsp + 0x30]
jmp 0x140128d26
xor esi, esi
jmp 0x140128d80
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rdi
call fcn.140222ecc
test rax, rax
je 0x140128d4d
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x80]
call fcn.14003f01a
jmp 0x140128d5e
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
cmp byte [rsi + 0x17], 0
jns 0x140128d6c
mov rcx, qword [rsi]
call fcn.1402021a8
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
mov sil, 1
cmp byte [rsp + 0x47], 0
jns 0x140128d91
mov rcx, qword [rsp + 0x30]
call fcn.1402021a8
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.140203460
mov eax, esi
movaps xmm6, xmmword [rsp + 0x290]
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor r12d, r12d
jmp 0x140128cdb
lea rax, str.string::pop_back__:_string_is_already_empty
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str._empty__
mov r8d, 0xc07
call fcn.14004460c
lea rax, str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str.__s_____min_cap
mov r8d, 0x6c6
call fcn.14004460c
lea rax, str.string_index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str.__pos___size__
mov r8d, 0x4a0
call fcn.14004460c
int3