Function at 0x140005d3c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r13d, r13d
or rsi, 0xffffffffffffffff
mov r14, rcx
mov qword [rax - 0x38], r13
mov qword [rax + 8], r13
mov r15, r9
mov edi, r8d
mov r12, rdx
lea ecx, [rsi + 2]
mov r10d, r13d
test r14, r14
je 0x140005db8
mov r10d, 0x7fffffff
mov rax, r14
mov r8d, r10d
cmp word [rax], r13w
je 0x140005d99
add rax, 2
sub r8, rcx
jne 0x140005d8a
mov rax, r8
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test r8, r8
je 0x140005db3
sub r10, r8
jmp 0x140005dbd
mov r10, r13
jmp 0x140005dbd
mov ebx, 0x80070057
test ebx, ebx
cmovs r10, r13
jns 0x140005df7
lea rax, str.Failed_to_get_length_of_path_to_prefix.
mov edx, 0x2d5
mov r8d, 5
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
mov r9d, 0x20
mov dword [rsp + 0x20], ebx
call fcn.1400012b4
jmp 0x14000604a
cmp r10, 0xf6
ja 0x140005e7d
mov edx, 0x104
mov rcx, r15
call fcn.140003094
mov ebx, eax
test eax, eax
jns 0x140005e21
lea rax, str.Failed_to_allocate_buffer_for_GetTempFileNameW.
mov edx, 0x2da
jmp 0x140005dd1
mov r9, qword [r15]
mov r8d, edi
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14000604a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov esi, 0x2de
or ebx, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
test eax, eax
mov edx, esi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
lea rax, str.Failed_to_create_new_temp_file_name.
mov edx, esi
jmp 0x140005dd1
movzx ebp, r13w
mov edi, 5
cmp rsi, 0xffffffffffffffff
jne 0x140005ff8
movzx r9d, bp
lea rdx, str._ls_x.TMP
mov r8, r12
lea rcx, [rsp + 0x40]
call fcn.1400031dc
mov ebx, eax
test eax, eax
js 0x140005fe4
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r14
call fcn.140004bfc
mov ebx, eax
mov r8d, edi
test eax, eax
js 0x140005fd3
mov rcx, qword [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov edx, 0x40000000
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005f33
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov ebx, r13d
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070050
cmovne ebx, ecx
test ebx, ebx
js 0x140005f9a
inc bp
mov eax, 0xffff
cmp bp, ax
jb 0x140005e86
cmp rsi, 0xffffffffffffffff
jne 0x140005ff8
mov ebx, 0x2ff
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
mov edx, ebx
mov r8d, 0x80070050
call fcn.1400012b0
lea rax, str.Failed_to_create_temp_file.
mov esi, 0x80070050
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
mov r9d, 0x20
mov dword [rsp + 0x20], esi
mov r8d, edi
mov edx, ebx
call fcn.1400012b4
mov ebx, esi
jmp 0x14000604a
mov rax, qword [rsp + 0x80]
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
mov qword [rsp + 0x30], rax
mov r9d, 0x20
lea rax, str.Failed_to_create_file:__ls
mov r8d, edi
mov qword [rsp + 0x28], rax
mov edx, 0x2f7
mov dword [rsp + 0x20], ebx
call fcn.1400012b4
jmp 0x14000604a
lea rax, str.Failed_to_allocate_temp_file_name.
mov edx, 0x2ec
jmp 0x140005dd7
lea rax, str.Failed_to_allocate_memory_for_file_template.
mov r8d, edi
mov edx, 0x2e9
jmp 0x140005dd7
mov rdx, qword [rsp + 0x80]
xor r8d, r8d
mov rcx, r15
call fcn.1400037ac
mov ebx, eax
test eax, eax
jns 0x14000603b
lea rax, str.Failed_to_copy_temp_file_string.
mov r9d, 0x20
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
mov r8d, edi
mov dword [rsp + 0x20], ebx
mov edx, 0x303
call fcn.1400012b4
cmp rsi, 0xffffffffffffffff
je 0x14000604a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140006059
call fcn.140004278
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14000606b
call fcn.140004278
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret