Function at 0x405805
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.00423978
push str.SOFTWAREcmcmkdesk
lea eax, [ebp - 8]
call fcn.00423978
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
lea ebx, [ebp - 4]
call fcn.0040556c
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 0x405867
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.00473567
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.00423978
lea eax, [ebp - 0xc]
push eax
lea edi, [ebp - 0x2c]
call fcn.004070d4
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdesk.exe
lea eax, [ebp - 0xc]
call fcn.00423978
lea eax, [ebp - 0xc]
push eax
call fcn.004070d4
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdesk64.exe
lea eax, [ebp - 0xc]
call fcn.00423978
lea eax, [ebp - 0xc]
push eax
call fcn.004070d4
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdeskcollator.dll
lea eax, [ebp - 0xc]
call fcn.00423978
lea eax, [ebp - 0xc]
push eax
call fcn.004070d4
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdeskcollator64.dll
lea eax, [ebp - 0xc]
call fcn.00423978
lea eax, [ebp - 0xc]
push eax
call fcn.004070d4
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdeskmenu.dll
lea eax, [ebp - 0xc]
call fcn.00423978
lea eax, [ebp - 0xc]
push eax
call fcn.004070d4
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdeskmenu64.dll
lea eax, [ebp - 0xc]
call fcn.00423978
lea eax, [ebp - 0xc]
push eax
call fcn.004070d4
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str.kdeskcore.exe
lea eax, [ebp - 0xc]
call fcn.00423978
lea eax, [ebp - 0xc]
push eax
call fcn.004070d4
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [0x50e594]
mov ecx, 0x50e594
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 0x4059a8
call fcn.00487f2c
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 0x4059c1
call fcn.00487f2c
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x14]
call fcn.004173ba
test al, al
je 0x405a3d
call fcn.00416489
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041525c
pop ecx
lea edi, [ebp - 0xc]
call fcn.00424a4a
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 0x405a19
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x24]
jb 0x405a13
call fcn.00487f2c
add dword [ebp - 0x10], 4
jmp 0x4059b4
xor edi, edi
lea eax, [ebx - 0x10]
call fcn.00401023
lea esi, [ebp - 0x2c]
call fcn.0040709c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov eax, edi
jmp 0x405862
xor edi, edi
inc edi
jmp 0x405a1b