Function at 0x140031520
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2a8
movaps xmmword [rsp + 0x290], xmm6
mov r14, r9
mov r13, r8
mov r12, rdx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x288], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], r15
movaps xmm6, xmmword [0x1400fdb10]
movaps xmmword [rsp + 0x30], xmm6
cmp byte [rcx + 0x17], 0
jns 0x140031853
mov rdx, qword [rcx]
mov r8, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.14005c8a0
movabs rsi, 0x7fffffffffffffef
mov ecx, 0x30
call fcn.140080c6c
lea rbx, [rsp + 0x80]
mov qword [rbx], rax
lea rcx, [rsi + 0x29]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 8], 0x12
mov ecx, dword [0x140100a36]
mov dword [rax + 0x20], ecx
movups xmm0, xmmword [0x140100a26]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [str.SOFTWAREPolicies_]
movups xmmword [rax], xmm0
mov word [rax + 0x24], 0
mov rcx, r12
xor edx, edx
mov r8, rbx
call fcn.14002f500
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
cmp byte [rbx + 0x17], 0
jns 0x14003160b
mov rbx, qword [rsp + 0x80]
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
lea r9, str.UserDataDir
mov ecx, 1
xor edx, edx
mov r8, rbx
call fcn.1400428b0
test al, al
jne 0x14003180b
cmp byte [rsp + 0x97], 0
jns 0x140031647
mov r8, qword [rsp + 0x80]
jmp 0x14003164f
lea r8, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
lea r9, str.UserDataDir
mov ecx, 2
xor edx, edx
call fcn.1400428b0
test al, al
jne 0x14003180b
cmp byte [rsp + 0x77], 0
js 0x140031869
cmp byte [rsp + 0x97], 0
jns 0x140031691
mov rcx, qword [rsp + 0x80]
call fcn.140080ca8
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400316a1
mov rcx, qword [rsp + 0x38]
jmp 0x1400316a6
mov ecx, eax
and ecx, 0x7f
test rcx, rcx
je 0x1400318ce
shr al, 7
lea rbx, [rsp + 0x30]
mov rdx, rbx
test al, 1
je 0x1400316c3
mov rdx, qword [rsp + 0x30]
movzx ebp, word [rdx + rcx*2 - 2]
cmp ebp, 0x5c
je 0x140031844
cmp ebp, 0x2f
je 0x140031844
lea rcx, [rsp + 0x30]
call fcn.1400302d0
test al, al
je 0x1400318ce
lea rbx, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400840e0
cmp byte [rsp + 0x47], 0
jns 0x140031712
mov rdx, qword [rsp + 0x30]
jmp 0x140031717
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rbx
call fcn.14009ba88
test rax, rax
je 0x140031878
lea rcx, [rsp + 0x80]
call fcn.1400a0400
cmp rax, rsi
ja 0x14003188e
mov rbx, rax
cmp rax, 0xb
jae 0x140031760
mov byte [rsp + 0x77], bl
lea rsi, [rsp + rbx*2]
add rsi, 0x60
test rbx, rbx
jne 0x140031790
jmp 0x1400317a6
lea rbp, [rbx + 8]
and rbp, 0xfffffffffffffff8
mov rcx, rbp
add rcx, rbp
call fcn.140080c6c
mov rdi, rax
mov qword [rsp + 0x60], rax
add rsi, 0x11
or rsi, rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rbx
lea rsi, [rax + rbx*2]
add rbx, rbx
lea rdx, [rsp + 0x80]
mov rcx, rdi
mov r8, rbx
call fcn.140083a30
mov word [rsi], 0
cmp byte [r13 + 0x17], 0
js 0x140031893
mov rax, qword [rsp + 0x70]
mov qword [r13 + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [r13], xmm0
mov sil, 1
cmp byte [rsp + 0x47], 0
jns 0x1400317dd
mov rcx, qword [rsp + 0x30]
call fcn.140080ca8
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.140081fb0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x290]
add rsp, 0x2a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.1400429b0
cmp byte [rsp + 0x47], 0
jns 0x14003182b
mov rcx, qword [rsp + 0x30]
call fcn.140080ca8
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x14003166f
lea r8, [rcx - 1]
test al, 1
je 0x1400318a1
mov qword [rsp + 0x38], r8
jmp 0x1400318a6
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x14003158c
mov rcx, qword [rsp + 0x60]
call fcn.140080ca8
jmp 0x14003167a
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
jmp 0x1400317ab
call fcn.1400993b0
mov rcx, qword [r13]
call fcn.140080ca8
jmp 0x1400317b6
mov byte [rsp + 0x47], r8b
mov word [rdx + rcx*2 - 2], 0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400318bd
mov rcx, qword [rsp + 0x38]
jmp 0x1400318c2
mov ecx, eax
and ecx, 0x7f
shr al, 7
test rcx, rcx
jne 0x1400316b7
lea rbp, [rsp + 0x30]
mov rcx, r14
mov rdx, rbp
call fcn.14005da20
lea r14, [rsp + 0x80]
mov qword [r14 + 0x10], r15
movaps xmmword [r14], xmm6
lea rdx, str.LOCALAPPDATA
mov rcx, r14
call fcn.14002fbf0
movzx eax, byte [r14 + 0x17]
test al, al
jns 0x140031910
mov rax, qword [rsp + 0x88]
jmp 0x140031913
and eax, 0x7f
test rax, rax
je 0x1400319d5
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
movzx ecx, byte [rsp + 0x47]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs rdx, qword [rsp + 0x38]
cmovs rbp, qword [rsp + 0x30]
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], rax
cmp word [rbp + rdx*2 - 2], 0x5c
je 0x14003197e
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call fcn.14005cb10
mov r15b, 1
lea rbx, [rsp + 0x30]
mov rcx, r12
mov dl, 1
mov r8, rbx
call fcn.14002f500
mov rcx, rbx
mov dx, 0x5c
call fcn.14005cb10
lea rdx, str.User_Data
mov rcx, rbx
call fcn.140027940
cmp byte [rsp + 0x97], 0
jns 0x1400319c5
mov rcx, qword [rsp + 0x80]
call fcn.140080ca8
test r15b, r15b
jne 0x1400316ec
xor esi, esi
jmp 0x1400317cc
xor r15d, r15d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400319ae
mov ebx, eax
inc ebx
xor r15d, r15d
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.14005ce80
cmp byte [rsp + 0x97], 0
jns 0x140031a0d
mov r14, qword [rsp + 0x80]
mov ecx, ebx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400319ae
mov edx, eax
movzx eax, byte [rsp + 0x97]
test al, al
jns 0x140031a34
mov rax, qword [rsp + 0x88]
jmp 0x140031a37
and eax, 0x7f
cmp rax, rdx
jbe 0x140031a51
lea rcx, [rsp + 0x80]
xor r8d, r8d
call fcn.14005ce80
jmp 0x14003191c
xor r15d, r15d
jmp 0x1400319ae