Function at 0x6713c680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6727c6c7
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x674c412c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x10], sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null
mov eax, dword [0x674c7c44]
mov dword [ebp - 4], 0
cmp eax, 0xfffffffe
jle 0x6713c6cb
call fcn.6713cf50
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x6713c768
mov edi, dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
call edi
test eax, eax
jne 0x6713c75f
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x6713c75f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.6726875f
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x6713c756
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
push esi
push eax
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x4c]
mov dword [eax], edx
call sym.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_
push esi
call fcn.67268768
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
cmp dword [eax + 4], 0
je 0x6713c788
lea eax, [ebp - 0x10]
push eax
call sym.Qt5Core.dll_public:_static_bool___cdecl_QFile::exists_class_QString_const__
add esp, 4
test al, al
jne 0x6713cb12
lea eax, [ebp - 0x28]
push str.USERPROFILE
push eax
call sym.Qt5Core.dll_class_QByteArray___cdecl_qgetenv_char_const__
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLocal8Bit_class_QByteArray_const__
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x6713c7d0
cmp eax, 0xffffffff
je 0x6713c7df
mov eax, dword [ebp - 0x24]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x6713c7df
push 4
push 2
push dword [ebp - 0x24]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x6713c802
cmp eax, 0xffffffff
je 0x6713c811
mov eax, dword [ebp - 0x28]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x6713c811
push 4
push 1
push dword [ebp - 0x28]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x6713c82e
lea eax, [ebp - 0x10]
push eax
call sym.Qt5Core.dll_public:_static_bool___cdecl_QFile::exists_class_QString_const__
add esp, 4
test al, al
jne 0x6713cb12
lea eax, [ebp - 0x38]
push str.HOMEPATH
push eax
call sym.Qt5Core.dll_class_QByteArray___cdecl_qgetenv_char_const__
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLocal8Bit_class_QByteArray_const__
mov edi, eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push str.HOMEDRIVE
push eax
call sym.Qt5Core.dll_class_QByteArray___cdecl_qgetenv_char_const__
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLocal8Bit_class_QByteArray_const__
add esp, 0x20
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
mov eax, dword [eax]
test eax, eax
je 0x6713c889
cmp eax, 0xffffffff
je 0x6713c889
mov eax, dword [ebp - 0x18]
lock inc dword [eax]
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], 2
call sym.Qt5Core.dll_public:_class_QString____thiscall_QString::append_class_QString_const__
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x44], 0
test eax, eax
je 0x6713c8c5
cmp eax, 0xffffffff
je 0x6713c8d4
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x6713c8d4
push 4
push 2
push dword [ebp - 0x18]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x6713c8f3
cmp eax, 0xffffffff
je 0x6713c902
mov eax, dword [ebp - 0x2c]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x6713c902
push 4
push 2
push dword [ebp - 0x2c]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
test eax, eax
je 0x6713c921
cmp eax, 0xffffffff
je 0x6713c930
mov eax, dword [ebp - 0x30]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x6713c930
push 4
push 1
push dword [ebp - 0x30]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
test eax, eax
je 0x6713c94f
cmp eax, 0xffffffff
je 0x6713c95e
mov eax, dword [ebp - 0x34]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x6713c95e
push 4
push 2
push dword [ebp - 0x34]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x6713c981
cmp eax, 0xffffffff
je 0x6713c990
mov eax, dword [ebp - 0x38]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x6713c990
push 4
push 1
push dword [ebp - 0x38]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x6713c9ad
lea eax, [ebp - 0x10]
push eax
call sym.Qt5Core.dll_public:_static_bool___cdecl_QFile::exists_class_QString_const__
add esp, 4
test al, al
jne 0x6713cb12
lea eax, [ebp - 0x40]
push str.HOME
push eax
call sym.Qt5Core.dll_class_QByteArray___cdecl_qgetenv_char_const__
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 7
push eax
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLocal8Bit_class_QByteArray_const__
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
test eax, eax
je 0x6713c9f5
cmp eax, 0xffffffff
je 0x6713ca04
mov eax, dword [ebp - 0x3c]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x6713ca04
push 4
push 2
push dword [ebp - 0x3c]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x6713ca27
cmp eax, 0xffffffff
je 0x6713ca36
mov eax, dword [ebp - 0x40]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x6713ca36
push 4
push 1
push dword [ebp - 0x40]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x6713ca53
lea eax, [ebp - 0x10]
push eax
call sym.Qt5Core.dll_public:_static_bool___cdecl_QFile::exists_class_QString_const__
add esp, 4
test al, al
jne 0x6713cb12
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 8
push str.SystemDrive
push eax
call sym.Qt5Core.dll_class_QByteArray___cdecl_qgetenv_char_const__
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLatin1_class_QByteArray_const__
mov eax, dword [ebp - 0x48]
add esp, 0x10
mov dword [ebp - 0x44], 4
mov byte [ebp - 4], 8
mov eax, dword [eax]
test eax, eax
je 0x6713caa0
cmp eax, 0xffffffff
je 0x6713caaf
mov eax, dword [ebp - 0x48]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x6713caaf
push 4
push 1
push dword [ebp - 0x48]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
jne 0x6713cac7
push 0x673631c8
push 2
lea ecx, [ebp - 0x14]
call fcn.6708b6e0
push ecx
mov eax, esp
mov ecx, 0x2f
mov word [eax], cx
lea ecx, [ebp - 0x14]
call sym.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QChar_
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
mov byte [ebp - 4], 0
test eax, eax
je 0x6713cb03
cmp eax, 0xffffffff
je 0x6713cb12
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x6713cb12
push 4
push 2
push dword [ebp - 0x14]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push edi
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QDir::fromNativeSeparators_class_QString_const__
mov eax, dword [ebp - 0x10]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x6713cb3f
cmp eax, 0xffffffff
je 0x6713cb4e
mov ecx, dword [ebp - 0x10]
lock xadd dword [ecx], esi
dec esi
setne cl
test cl, cl
jne 0x6713cb4e
push 4
push 2
push dword [ebp - 0x10]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData___unsigned_int__unsigned_int_
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret