Function at 0x405f5d
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 0x4061d3
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4061d3
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 4]
push eax
push 0x17
push ebx
call esi
test eax, eax
jge 0x405fb7
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 0x405feb
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 0x439248
push 1
push ebx
push 0x439238
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4061d3
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
push 0x439258
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4061d3
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 0x40606f
lea eax, [ebp - 0x118]
push 0x43d99c
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 0x4060ad
lea eax, [ebp - 0x118]
push eax
call fcn.0042b7a1
pop ecx
test eax, eax
lea eax, [ebp - 0x118]
push ebx
push eax
push 1
jne 0x4060aa
push 8
jmp 0x4060ab
push esi
call edi
cmp dword [ebp + 0x18], ebx
jne 0x4060b7
cmp dword [ebp + 0x1c], ebx
je 0x4060c4
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 0x4061c0
lea eax, [ebp - 0x318]
push eax
call esi
test eax, eax
je 0x4061c0
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.00405f16
add esp, 0x20
test eax, eax
je 0x4061d3
cmp dword [ebp + 0x18], ebx
jne 0x406150
cmp esi, ebx
je 0x40619d
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.00405f16
add esp, 0x20
test eax, eax
je 0x4061d3
cmp esi, ebx
je 0x40619d
lea eax, [ebp - 0x118]
push eax
call fcn.0042b777
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 0x4061aa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4061b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], 1
jmp 0x4061d3
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