Function at 0x40588d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push str.ProgramPath
lea eax, [ebp - 0xc]
call fcn.0042241f
push str.SOFTWAREcmcmkdesk
lea eax, [ebp - 8]
call fcn.0042241f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
lea ebx, [ebp - 4]
call fcn.004055f4
mov eax, dword [ebp - 8]
pop ecx
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 4]
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x4058ef
add eax, 0xfffffff0
call fcn.00401023
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
call fcn.00475cfc
lea eax, [ebp - 0xc]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [esp], str.kwallpaper.exe
call fcn.0042241f
lea eax, [ebp - 0xc]
push eax
lea edi, [ebp - 0x2c]
call fcn.00407122
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdesk.exe
lea eax, [ebp - 0xc]
call fcn.0042241f
lea eax, [ebp - 0xc]
push eax
call fcn.00407122
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdesk64.exe
lea eax, [ebp - 0xc]
call fcn.0042241f
lea eax, [ebp - 0xc]
push eax
call fcn.00407122
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdeskcollator.dll
lea eax, [ebp - 0xc]
call fcn.0042241f
lea eax, [ebp - 0xc]
push eax
call fcn.00407122
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdeskcollator64.dll
lea eax, [ebp - 0xc]
call fcn.0042241f
lea eax, [ebp - 0xc]
push eax
call fcn.00407122
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdeskmenu.dll
lea eax, [ebp - 0xc]
call fcn.0042241f
lea eax, [ebp - 0xc]
push eax
call fcn.00407122
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdeskmenu64.dll
lea eax, [ebp - 0xc]
call fcn.0042241f
lea eax, [ebp - 0xc]
push eax
call fcn.00407122
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdeskcore.exe
lea eax, [ebp - 0xc]
call fcn.0042241f
lea eax, [ebp - 0xc]
push eax
call fcn.00407122
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [0x512bd4]
mov ecx, 0x512bd4
call dword [eax + 0xc]
mov esi, dword [ebp - 0x28]
mov ebx, eax
add ebx, 0x10
cmp esi, dword [ebp - 0x24]
mov dword [ebp - 0xc], ebx
jbe 0x405a30
call fcn.0048a6bc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x28], esi
jbe 0x405a49
call fcn.0048a6bc
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x14]
call fcn.00473de9
test al, al
je 0x405ac5
call fcn.00414d80
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00413b36
pop ecx
lea edi, [ebp - 0xc]
call fcn.004234ea
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov ebx, dword [ebp - 0xc]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405aa1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x24]
jb 0x405a9b
call fcn.0048a6bc
add dword [ebp - 0x10], 4
jmp 0x405a3c
xor edi, edi
lea eax, [ebx - 0x10]
call fcn.00401023
lea esi, [ebp - 0x2c]
call fcn.0047949e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov eax, edi
jmp 0x4058ea
xor edi, edi
inc edi
jmp 0x405aa3