Function at 0x408c1a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x408e90
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x408e90
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 4]
push eax
push 0x17
push ebx
call esi
test eax, eax
jge 0x408c74
lea eax, [ebp - 4]
push eax
push 2
push ebx
call esi
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 4]
push eax
push 0x19
push ebx
call esi
test eax, eax
jge 0x408ca8
lea eax, [ebp - 4]
push eax
push 0x10
push ebx
call esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 8]
push eax
push 0x479d70
push 1
push ebx
push 0x479d60
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x408e90
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
push 0x479d80
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x408e90
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x119], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x408d2c
lea eax, [ebp - 0x118]
push 0x485ec4
push eax
call edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push eax
call edi
cmp dword [ebp + 0x14], ebx
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov esi, 0x1000
je 0x408d6a
lea eax, [ebp - 0x118]
push eax
call fcn.0044c14f
pop ecx
test eax, eax
lea eax, [ebp - 0x118]
push ebx
push eax
push 1
jne 0x408d67
push 8
jmp 0x408d68
push esi
call edi
cmp dword [ebp + 0x18], ebx
jne 0x408d74
cmp dword [ebp + 0x1c], ebx
je 0x408d81
lea eax, [ebp - 0x41c]
push ebx
push eax
push 1
push esi
call edi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x218]
push 0x40
push eax
push 0x10
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x318]
push 0x40
push eax
push 0x11
push dword [ebp + 8]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x408e7d
lea eax, [ebp - 0x318]
push eax
call esi
test eax, eax
je 0x408e7d
lea eax, [ebp - 0x318]
mov esi, dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x118]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
push eax
push dword [ebp + 0x14]
push esi
call fcn.00408bd3
add esp, 0x20
test eax, eax
je 0x408e90
cmp dword [ebp + 0x18], ebx
jne 0x408e0d
cmp esi, ebx
je 0x408e5a
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x41c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
push eax
push dword [ebp + 0x14]
push esi
call fcn.00408bd3
add esp, 0x20
test eax, eax
je 0x408e90
cmp esi, ebx
je 0x408e5a
lea eax, [ebp - 0x118]
push eax
call fcn.0044c125
pop ecx
lea eax, [ebp - 0x118]
push ebx
push eax
push 1
push 2
call edi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x408e67
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x408e74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], 1
jmp 0x408e90
push 0x30
push str.Setup
push str.No_main_application_icon__or_file__was_defined.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret