Function at 0x14013f450
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1402ad418]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rcx
lea rsi, [0x1401fd088]
mov qword [rcx], rsi
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test eax, eax
je 0x14013f534
mov r8d, 0x104
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov r8d, eax
lea rcx, [rsp + 0x20]
dec eax
cmp eax, 0x102
ja 0x14013f4cf
lea rdx, [rsp + 0x250]
jmp 0x14013f4d7
mov r8d, edi
lea rdx, [rsp + 0x40]
call fcn.1401877c0
mov rdi, qword [rax]
mov qword [rax], rsi
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14013f4fe
cmp eax, 0xffffffff
je 0x14013f50d
sub eax, 1
mov dword [rcx], eax
jne 0x14013f50d
mov rcx, qword [rsp + 0x20]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140143660
mov rcx, qword [rbx]
mov qword [rbx], rdi
mov eax, dword [rcx]
test eax, eax
je 0x14013f525
cmp eax, 0xffffffff
je 0x14013f534
sub eax, 1
mov dword [rcx], eax
jne 0x14013f534
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140143660
mov rax, qword [rbx]
cmp dword [rax + 4], 0
je 0x14013f5c8
mov edi, 0x5c
mov rcx, rbx
movzx edx, di
lea r8d, [rdi - 0x5b]
call fcn.1401866a0
test al, al
je 0x14013f582
nop dword [rax]
mov edx, 1
mov rcx, rbx
call fcn.140185600
mov r8d, 1
movzx edx, di
mov rcx, rbx
call fcn.1401866a0
test al, al
jne 0x14013f560
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140152900
mov rcx, qword [rbx]
mov rdx, rax
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14013f5ba
cmp eax, 0xffffffff
je 0x14013f5c8
sub eax, 1
mov dword [rcx], eax
jne 0x14013f5c8
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
mov rdi, qword [rbx]
mov edx, dword [rdi + 4]
test edx, edx
jne 0x14013f603
mov dword [rsp + 0x20], 6
lea rax, str.C:_tmp
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
mov rcx, rbx
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140183280
jmp 0x14013f6c7
cmp edx, 2
jl 0x14013f6c7
cmp dword [rdi], 1
ja 0x14013f618
cmp qword [rdi + 0x10], 0x18
je 0x14013f628
inc edx
xor r8d, r8d
mov rcx, rbx
call fcn.14018ae80
mov rdi, qword [rbx]
cmp dword [rdi + 4], 1
jle 0x14013f6bb
mov rax, qword [rdi + 0x10]
test rax, rax
js 0x14013f65a
cmp rax, 0x18
jae 0x14013f65a
mov r8d, 0x3c
lea rdx, str.C:ciqt_main_1660099987651workqtqtbaseincludeQtCore.._.._src_corelib_tools_qarraydata.h
lea rcx, str.size__0__offset___0__size_t_offset____sizeof_QArrayData_
call fcn.140160ea0
mov rax, qword [rdi + 0x10]
cmp word [rax + rdi + 2], 0x3a
jne 0x14013f6c7
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140004420
movzx ecx, word [rax]
call fcn.14018fbb0
mov rcx, qword [rbx]
mov edi, eax
cmp dword [rcx], 1
ja 0x14013f68f
cmp qword [rcx + 0x10], 0x18
je 0x14013f69f
mov edx, dword [rcx + 4]
xor r8d, r8d
inc edx
mov rcx, rbx
call fcn.14018ae80
movzx edx, di
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 0
call fcn.14002ed10
jmp 0x14013f6c7
mov edx, 1
xor ecx, ecx
call fcn.140146620
mov rax, rbx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401bc2c0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret