Function at 0x40766d
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 0x4078e3
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4078e3
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 4]
push eax
push 0x17
push ebx
call esi
test eax, eax
jge 0x4076c7
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 0x4076fb
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 0x44efb0
push 1
push ebx
push 0x44efa0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4078e3
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
push 0x44efc0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4078e3
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 0x40777f
lea eax, [ebp - 0x118]
push 0x455b4c
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 0x4077bd
lea eax, [ebp - 0x118]
push eax
call fcn.0043483f
pop ecx
test eax, eax
lea eax, [ebp - 0x118]
push ebx
push eax
push 1
jne 0x4077ba
push 8
jmp 0x4077bb
push esi
call edi
cmp dword [ebp + 0x18], ebx
jne 0x4077c7
cmp dword [ebp + 0x1c], ebx
je 0x4077d4
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 0x4078d0
lea eax, [ebp - 0x318]
push eax
call esi
test eax, eax
je 0x4078d0
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.00407626
add esp, 0x20
test eax, eax
je 0x4078e3
cmp dword [ebp + 0x18], ebx
jne 0x407860
cmp esi, ebx
je 0x4078ad
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.00407626
add esp, 0x20
test eax, eax
je 0x4078e3
cmp esi, ebx
je 0x4078ad
lea eax, [ebp - 0x118]
push eax
call fcn.00434815
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 0x4078ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4078c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], 1
jmp 0x4078e3
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