Function at 0x40df14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x16c
mov ebx, dword [ebp + 8]
mov eax, dword [sym.imp.QtCore4.dll_QString::shared_null]
mov dword [ebx], eax
lock inc dword [eax]
setne dl
lea eax, [ebp - 0x138]
mov dword [ebp - 0x14c], eax
mov ecx, 0x104
xor eax, eax
mov edi, dword [ebp - 0x14c]
rep stosb byte es:[edi], al
lea eax, [ebp - 0x138]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x23
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetFolderPathA
sub esp, 0x14
lea esi, [ebp - 0x2c]
mov dword [esp + 8], 0xffffffff
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov dword [esp], esi
mov eax, dword [method.QString.fromAscii_char_const__int_]
mov dword [ebp - 0x140], eax
call eax
push ecx
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [method.QString.operator_QString_const_]
mov eax, dword [ebp - 0x2c]
lock dec dword [eax]
setne dl
test dl, dl
je 0x40e16c
xor esi, esi
mov byte [ebp - 0x141], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x485bb2
mov edi, dword [method.QString.fromAscii_helper_char_const__int_]
call edi
mov dword [ebp - 0x20], eax
mov esi, 1
mov dword [esp + 8], 1
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov eax, dword [method.QString.endsWith_QString_const__Qt::CaseSensitivity__const]
mov dword [ebp - 0x13c], eax
call eax
test al, al
je 0x40e180
xor esi, esi
mov eax, dword [ebp - 0x20]
lock dec dword [eax]
setne dl
test dl, dl
je 0x40e158
mov eax, esi
test al, al
jne 0x40e0f4
mov edi, dword [method.QString.append_QString_const_]
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
lea esi, [ebp - 0x34]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x485bb2
mov dword [esp], esi
call dword [ebp - 0x140]
push eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call edi
mov eax, dword [ebp - 0x34]
lock dec dword [eax]
setne dl
test dl, dl
je 0x40e144
mov dword [ebp - 0x28], 0x484cd0
mov dword [esp + 8], 0
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
lea esi, [ebp - 0x28]
mov dword [esp], esi
call fcn.0044985c
mov eax, dword [ebp - 0x28]
mov edi, dword [eax - 4]
test edi, edi
js 0x40e0ad
mov dword [esp], esi
call fcn.0044855c
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [method.QString.toWCharArray_wchar_t__const]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0044985c
mov dword [esp], esi
call fcn.0040bc28
mov eax, dword [ebp - 0x28]
lea esi, [eax - 0xc]
cmp esi, 0x484cc4
jne 0x40e1dc
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 4
lea esi, [ebp - 0x30]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x485bb2
mov dword [esp], esi
call dword [ebp - 0x140]
push edx
mov dword [esp + 4], esi
mov dword [esp], ebx
mov edi, dword [method.QString.append_QString_const_]
call edi
mov eax, dword [ebp - 0x30]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x40e032
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40e032
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40e075
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40e022
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40dfc0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x485bb0
call edi
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x141], 1
mov dword [esp + 8], 1
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebp - 0x13c]
test al, al
sete al
mov esi, eax
mov eax, dword [ebp - 0x24]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x40e011
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40e011
cmp dword [0x49d24c], 0
jne 0x40e20a
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x40e0e8
lea eax, [ebp - 0x19]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00448a7c
jmp 0x40e0e8
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00428e80
jmp 0x40e1ee