Function at 0x18018c980
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x3e8]
sub rsp, 0x4d0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1805858b8]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rbx, rcx
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x20], 0
lea r14, sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null
mov qword [rcx], r14
mov dword [rsp + 0x20], 1
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov edi, 0xffffffff
test eax, eax
je 0x18018cb69
mov r8d, 0x104
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov r8d, eax
dec eax
cmp eax, 0x102
ja 0x18018ca77
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x48]
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromUtf16_unsigned_short_int_const____ptr64__int_
mov rcx, rax
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov qword [rcx], r14
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
test ecx, ecx
je 0x18018ca58
cmp ecx, edi
je 0x18018ca6b
mov ecx, edi
mov rax, qword [rsp + 0x48]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x18018ca6b
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x48]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
lea r8, [rsp + 0x38]
mov edx, 0x23
jmp 0x18018cad3
mov r8d, esi
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromUtf16_unsigned_short_int_const____ptr64__int_
mov rcx, rax
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov qword [rcx], r14
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x18018cab6
cmp ecx, 0xffffffff
je 0x18018cac9
mov ecx, edi
mov rax, qword [rsp + 0x50]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x18018cac9
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x50]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
lea r8, [rsp + 0x30]
mov edx, 0x105
mov dword [rsp + 0x20], edx
mov rcx, qword [rbx]
mov qword [rbp - 0x80], rcx
mov rax, qword [r8]
mov qword [rbx], rax
mov qword [r8], rcx
test dl, 4
je 0x18018cb2a
and edx, 0xfffffffb
mov dword [rsp + 0x20], edx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x18018cb13
cmp ecx, 0xffffffff
je 0x18018cb26
mov ecx, edi
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x18018cb26
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
mov edx, dword [rsp + 0x20]
test dl, 2
je 0x18018cb69
and edx, 0xfffffffd
mov dword [rsp + 0x20], edx
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x18018cb56
cmp ecx, 0xffffffff
je 0x18018cb69
mov ecx, edi
mov rax, qword [rsp + 0x38]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x18018cb69
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x38]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
mov rax, qword [rbx]
cmp dword [rax + 4], 0
je 0x18018cc07
mov esi, 0x5c
mov word [rsp + 0x40], si
lea r8d, [rsi - 0x5b]
movzx edx, si
mov rcx, rbx
call sym.Qt5Core.dll_public:_bool___cdecl_QString::endsWith_class_QChar__enum_Qt::CaseSensitivity_const___ptr64
test al, al
je 0x18018cbb5
mov edx, 1
mov rcx, rbx
call sym.Qt5Core.dll_public:_void___cdecl_QString::chop_int____ptr64
mov r8d, 1
movzx edx, si
mov rcx, rbx
call sym.Qt5Core.dll_public:_bool___cdecl_QString::endsWith_class_QChar__enum_Qt::CaseSensitivity_const___ptr64
test al, al
jne 0x18018cb93
mov rdx, rbx
lea rcx, [rsp + 0x58]
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QDir::fromNativeSeparators_class_QString_const____ptr64_
mov rdx, rax
mov rcx, qword [rbx]
mov qword [rsp + 0x60], rcx
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x18018cbf4
cmp ecx, 0xffffffff
je 0x18018cc07
mov rax, qword [rsp + 0x58]
lock xadd dword [rax], edi
cmp edi, 1
jne 0x18018cc07
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
mov rdx, qword [rbx]
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x18018cc40
mov dword [rsp + 0x60], 6
lea rax, str.C:_tmp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.1800bdc10
jmp 0x18018cd11
cmp ecx, 2
jl 0x18018cd11
mov eax, dword [rdx]
cmp eax, 1
ja 0x18018cc5a
mov rax, qword [rbx]
cmp qword [rax + 0x10], 0x18
je 0x18018cc6d
mov rax, qword [rbx]
mov edx, dword [rax + 4]
inc edx
xor r8d, r8d
mov rcx, rbx
call sym.Qt5Core.dll_private:_void___cdecl_QString::reallocData_unsigned_int__bool____ptr64
mov rax, qword [rbx]
cmp dword [rax + 4], 1
jle 0x18018cd11
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
jne 0x18018cd11
movzx ecx, word [rax + rcx]
call sym.Qt5Core.dll_public:_static_unsigned_int___cdecl_QChar::toUpper_unsigned_int_
mov edi, eax
mov rcx, qword [rbx]
mov edx, dword [rcx]
cmp edx, 1
ja 0x18018cca9
mov rcx, qword [rbx]
cmp qword [rcx + 0x10], 0x18
je 0x18018ccbc
mov rcx, qword [rbx]
mov edx, dword [rcx + 4]
inc edx
xor r8d, r8d
mov rcx, rbx
call sym.Qt5Core.dll_private:_void___cdecl_QString::reallocData_unsigned_int__bool____ptr64
mov word [rsp + 0x28], di
mov rax, qword [rbx]
cmp dword [rax + 4], 0
jg 0x18018ccdd
mov edx, 1
lea r8d, [rdx + 0x1f]
mov rcx, rbx
call sym.Qt5Core.dll_public:_void___cdecl_QString::resize_int__class_QChar____ptr64
jmp 0x18018cd01
mov eax, dword [rax]
cmp eax, 1
ja 0x18018ccee
mov rax, qword [rbx]
cmp qword [rax + 0x10], 0x18
je 0x18018cd01
mov rax, qword [rbx]
mov edx, dword [rax + 4]
inc edx
xor r8d, r8d
mov rcx, rbx
call sym.Qt5Core.dll_private:_void___cdecl_QString::reallocData_unsigned_int__bool____ptr64
mov rdx, qword [rbx]
mov rcx, qword [rdx + 0x10]
movzx eax, word [rsp + 0x28]
mov word [rdx + rcx], ax
mov rax, rbx
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1802e1ba0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret