Function at 0x40ed30
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 0x40ef88
xor esi, esi
mov byte [ebp - 0x141], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x486cb2
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 0x40ef9c
xor esi, esi
mov eax, dword [ebp - 0x20]
lock dec dword [eax]
setne dl
test dl, dl
je 0x40ef74
mov eax, esi
test al, al
jne 0x40ef10
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], 0x486cb2
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 0x40ef60
mov dword [ebp - 0x28], 0x485cd0
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.0044a9b4
mov eax, dword [ebp - 0x28]
mov edi, dword [eax - 4]
test edi, edi
js 0x40eec9
mov dword [esp], esi
call fcn.004496b4
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.0044a9b4
mov dword [esp], esi
call fcn.0040cd08
mov eax, dword [ebp - 0x28]
lea esi, [eax - 0xc]
cmp esi, 0x485cc4
jne 0x40eff8
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], 0x486cb2
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 0x40ee4e
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40ee4e
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40ee91
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40ee3e
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40eddc
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x486cb0
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 0x40ee2d
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40ee2d
cmp dword [0x49e25c], 0
jne 0x40f026
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x40ef04
lea eax, [ebp - 0x19]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00449bd4
jmp 0x40ef04
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.00429f60
jmp 0x40f00a