Function at 0x40ed90
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 0x40efe8
xor esi, esi
mov byte [ebp - 0x141], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x4874a4
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 0x40effc
xor esi, esi
mov eax, dword [ebp - 0x20]
lock dec dword [eax]
setne dl
test dl, dl
je 0x40efd4
mov eax, esi
test al, al
jne 0x40ef70
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], 0x4874a4
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 0x40efc0
mov dword [ebp - 0x28], 0x486530
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.0044adb4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax - 4]
test ecx, ecx
js 0x40ef29
mov dword [esp], esi
call fcn.00449ab4
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.0044adb4
mov dword [esp], esi
call fcn.0040c61c
mov eax, dword [ebp - 0x28]
lea esi, [eax - 0xc]
cmp esi, 0x486524
jne 0x40f058
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], 0x4874a4
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 0x40eeae
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40eeae
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40eef1
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40ee9e
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40ee3c
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x4874a2
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 0x40ee8d
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40ee8d
cmp dword [0x49e25c], 0
jne 0x40f086
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x40ef64
lea eax, [ebp - 0x19]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00449fd4
jmp 0x40ef64
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.0042a360
jmp 0x40f06a