Function at 0x1801d2db0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x2f0], rbx
movzx esi, dl
mov r15, rcx
mov dword [rbp + 0x208], 0
lea rax, sym.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null
mov qword [rsp + 0x38], rax
mov rdi, 0xffffffffffffffff
test dl, dl
jne 0x1801d2ea6
lea rcx, [rsp + 0x60]
call sym.Qt5Core.dll_class_QString___cdecl_qAppFileName_void_
nop
mov rdx, rax
lea rcx, [rbp - 0x70]
call sym.Qt5Core.dll_public:_void___cdecl_QFileInfo::constructor_class_QString_const____ptr64____ptr64
nop
lea rdx, [rsp + 0x58]
mov rcx, rax
call sym.Qt5Core.dll_public:_class_QString___cdecl_QFileInfo::path_void____ptr64
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.180022940
nop
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x1801d2e55
cmp ecx, edi
je 0x1801d2e69
mov ecx, edi
mov rax, qword [rsp + 0x58]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1801d2e69
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__
nop
lea rcx, [rbp - 0x70]
call sym.Qt5Core.dll_public:_void___cdecl_QFileInfo::destructor_void____ptr64
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax]
test ecx, ecx
je 0x1801d2e93
cmp ecx, 0xffffffff
je 0x1801d2ea6
mov ecx, edi
mov rax, qword [rsp + 0x60]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1801d2ea6
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x60]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
mov qword [rbp - 0x60], 0x104
lea rax, [rbp - 0x50]
mov qword [rbp - 0x58], rax
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
cmp eax, 0x104
jbe 0x1801d2ef2
mov r8d, eax
cmp eax, dword [rbp - 0x60]
cmovl r8d, dword [rbp - 0x60]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.18018b870
mov edx, ebx
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
mov r8d, ebx
mov rdx, qword [rbp - 0x58]
lea rcx, [rsp + 0x68]
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromUtf16_unsigned_short_int_const____ptr64__int_
nop
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
lea rcx, sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null
mov qword [rax], rcx
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax]
test ecx, ecx
je 0x1801d2f36
cmp ecx, 0xffffffff
je 0x1801d2f4a
mov ecx, edi
mov rax, qword [rsp + 0x68]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1801d2f4a
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x68]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
nop
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x58]
cmp rcx, rax
je 0x1801d2f5e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.180022940
nop
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
test ecx, ecx
je 0x1801d2f8e
cmp ecx, 0xffffffff
je 0x1801d2fa1
mov ecx, edi
mov rax, qword [rsp + 0x48]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1801d2fa1
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__
test sil, sil
jne 0x1801d30ff
lea rdx, str.PATH
lea rcx, [rsp + 0x70]
call sym.Qt5Core.dll_class_QByteArray___cdecl_qgetenv_char_const____ptr64_
nop
mov rcx, qword [rax]
add rcx, qword [rcx + 0x10]
je 0x1801d2fdb
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1801d2fd0
jmp 0x1801d2fdd
xor eax, eax
mov edx, eax
call sym.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromLatin1_helper_char_const____ptr64__int_
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax]
test ecx, ecx
je 0x1801d3009
cmp ecx, 0xffffffff
je 0x1801d301c
mov ecx, edi
mov rax, qword [rsp + 0x70]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1801d301c
mov edx, 1
lea r8d, [rdx + 7]
mov rcx, qword [rsp + 0x70]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
mov r8d, 0x3b
mov dword [rsp + 0x20], 1
lea r9d, [r8 - 0x3a]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call sym.Qt5Core.dll_public:_class_QStringList___cdecl_QString::split_class_QChar__class_QFlags_enum_Qt::SplitBehaviorFlags___enum_Qt::CaseSensitivity____ptr64
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.180159d90
nop
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax]
test ecx, ecx
je 0x1801d306c
cmp ecx, 0xffffffff
je 0x1801d30cc
mov ecx, edi
mov rax, qword [rsp + 0x78]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1801d30cc
mov r14, qword [rsp + 0x78]
movsxd rbx, dword [r14 + 0xc]
add rbx, 2
lea rbx, [r14 + rbx*8]
movsxd rsi, dword [r14 + 8]
add rsi, 2
lea rsi, [r14 + rsi*8]
cmp rsi, rbx
je 0x1801d30c3
nop
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1801d30ad
cmp eax, 0xffffffff
je 0x1801d30be
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1801d30be
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
cmp rbx, rsi
jne 0x1801d3090
mov rcx, r14
call sym.Qt5Core.dll_public:_static_void___cdecl_QListData::dispose_struct_QListData::Data____ptr64_
nop
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x1801d30ec
cmp ecx, 0xffffffff
je 0x1801d30ff
mov ecx, edi
mov rax, qword [rsp + 0x50]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1801d30ff
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__
mov r8d, edi
mov rdx, r15
lea rcx, [rsp + 0x40]
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_
nop
mov dword [rbp - 0x80], 4
lea rax, [0x1803f4288]
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call sym.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::append_class_QLatin1String____ptr64
xor r14d, r14d
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 0xc]
sub ecx, edx
test ecx, ecx
jle 0x1801d3240
xor esi, esi
mov r15d, 0x5c
mov word [rbp + 0x1f8], r15w
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edx
add rcx, rsi
mov rdx, qword [rax + rcx*8 + 0x10]
mov qword [rsp + 0x30], rdx
mov eax, dword [rdx]
inc eax
cmp eax, 1
jbe 0x1801d3192
mov eax, 1
lock xadd dword [rdx], eax
mov r8d, 1
movzx edx, word [rbp + 0x1f8]
lea rcx, [rsp + 0x30]
call sym.Qt5Core.dll_public:_bool___cdecl_QString::endsWith_class_QChar__enum_Qt::CaseSensitivity_const___ptr64
test al, al
jne 0x1801d31c3
mov word [rbp + 0x200], r15w
movzx edx, r15w
lea rcx, [rsp + 0x30]
call sym.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QChar____ptr64
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call sym.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::append_class_QString_const____ptr64____ptr64
lea rcx, [rsp + 0x30]
call sym.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
jne 0x1801d32be
test ecx, ecx
je 0x1801d3211
cmp ecx, 0xffffffff
je 0x1801d3224
mov ecx, edi
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1801d3224
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__
inc r14d
inc rsi
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 0xc]
sub ecx, edx
cmp r14d, ecx
jl 0x1801d3170
xor ebx, ebx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x1801d3262
cmp ecx, 0xffffffff
je 0x1801d3276
mov ecx, edi
mov rax, qword [rsp + 0x40]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1801d3276
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x40]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
nop
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x1801d3294
cmp ecx, 0xffffffff
je 0x1801d32a4
mov rcx, qword [rsp + 0x38]
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1801d32a4
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1800230c0
nop
mov rax, rbx
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test ecx, ecx
je 0x1801d32df
cmp ecx, 0xffffffff
je 0x1801d3242
mov ecx, edi
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1801d3242
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__
jmp 0x1801d3242