Function at 0x4cf18c
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8e97
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.00506f00
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1060]
mov dword [ebp - 4], 1
call fcn.0042ca82
mov byte [ebp - 4], 2
call fcn.0041279d
push eax
lea ecx, [ebp - 0x1020]
call fcn.00411d94
push 0x1000
xor esi, esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.0056b050
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1010]
add esp, 0xc
push dword [ebp + 8]
push 0x800
push eax
push 0x5f1b30
push str.Item0Path
push str.Slideshow
call edi
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1020]
call fcn.0041421f
mov ebx, dword [ebp - 0x1020]
cmp dword [ebx - 0xc], esi
jne 0x4cf576
push dword [ebp + 8]
lea eax, [ebp - 0x1010]
push 0x800
push eax
push 0x5f1b30
push str.Wallpaper
push str.Control_PanelDesktop
call edi
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1018]
call fcn.00413f09
mov eax, dword [ebp - 0x1018]
mov byte [ebp - 4], 4
cmp dword [eax - 0xc], esi
je 0x4cf562
cmp dword [eax - 0xc], 3
jle 0x4cf562
lea ecx, [ebp - 0x1018]
call fcn.0043193c
push str._WinDir_Resources
push str._resourcedir_
lea ecx, [ebp - 0x1018]
call fcn.00434b1c
push ecx
mov edi, esp
mov dword [ebp - 0x101c], edi
mov eax, dword [ebp - 0x1018]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
pop ecx
mov dword [edi], eax
lea ecx, [ebp - 0x1060]
lea eax, [ebp - 0x1014]
push eax
call fcn.004cd49a
push eax
lea ecx, [ebp - 0x1018]
mov byte [ebp - 4], 5
call fcn.00411f3a
mov ecx, dword [ebp - 0x1014]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00412ac4
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4cf31d
cmp eax, 0xffffffff
jne 0x4cf36f
push ecx
mov edi, esp
mov dword [ebp - 0x101c], edi
mov eax, dword [ebp - 0x1018]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
pop ecx
mov dword [edi], eax
lea ecx, [ebp - 0x1060]
lea eax, [ebp - 0x1014]
push eax
call fcn.0042fedd
push eax
lea ecx, [ebp - 0x1018]
mov byte [ebp - 4], 6
call fcn.00411f3a
mov ecx, dword [ebp - 0x1014]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00412ac4
push dword [ebp - 0x1018]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cf562
lea ecx, [ebp - 0x1048]
call fcn.00438a3a
push ecx
mov ecx, esp
mov dword [ebp - 0x101c], esp
push 0x5fab98
mov byte [ebp - 4], 7
call fcn.00413f09
push ecx
mov edi, esp
mov byte [ebp - 4], 8
mov dword [ebp - 0x1024], edi
mov eax, dword [ebp - 0x1018]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1014]
pop ecx
push eax
lea ecx, [ebp - 0x1060]
mov byte [ebp - 4], 7
call fcn.00434114
push dword [eax]
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 9
call fcn.0043aaf6
mov ecx, dword [ebp - 0x1014]
mov edi, eax
add ecx, 0xfffffff0
jmp 0x4cf528
lea ecx, [ebp - 0x1048]
call fcn.0043ac20
lea ecx, [ebp - 0x1048]
mov edi, eax
call fcn.0043d896
test eax, eax
jne 0x4cf531
push 0x10
lea ecx, [ebp - 0x1048]
call fcn.0043db06
test eax, eax
jne 0x4cf531
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1048]
call fcn.0043ba85
mov eax, dword [ebp - 0x1014]
mov byte [ebp - 4], 0xa
cmp dword [eax - 0xc], 3
jg 0x4cf45d
lea ecx, [eax - 0x10]
jmp 0x4cf528
push 3
lea eax, [ebp - 0x1024]
push eax
lea ecx, [ebp - 0x1014]
call fcn.00434d0c
push eax
lea ecx, [ebp - 0x1014]
mov byte [ebp - 4], 0xb
call fcn.00411f3a
mov ecx, dword [ebp - 0x1024]
mov byte [ebp - 4], 0xa
lea ecx, [ecx - 0x10]
call fcn.00412ac4
push 0x6191c8
lea ecx, [ebp - 0x1014]
call fcn.0042e69b
test eax, eax
je 0x4cf4e3
push 0x6191d0
lea ecx, [ebp - 0x1014]
call fcn.0042e69b
test eax, eax
je 0x4cf4e3
push 0x6191d8
lea ecx, [ebp - 0x1014]
call fcn.0042e69b
test eax, eax
je 0x4cf4e3
push str.jpeg
lea ecx, [ebp - 0x1014]
call fcn.0042e69b
test eax, eax
jne 0x4cf51f
cmp dword [ebx - 0xc], 0
jne 0x4cf53b
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1048]
call fcn.0043baf8
push eax
lea ecx, [ebp - 0x1020]
mov byte [ebp - 4], 0xc
call fcn.00411f3a
mov ecx, dword [ebp - 0x101c]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ebx, dword [ebp - 0x1020]
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 7
call fcn.00412ac4
test edi, edi
jne 0x4cf3fe
jmp 0x4cf549
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
lea ecx, [ebp - 0x1048]
call fcn.00439799
mov ecx, dword [ebp - 0x1038]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x1018]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00412ac4
jmp 0x4cf5ee
lea ecx, [ebp - 0x1020]
call fcn.0043193c
push str._WinDir_Resources
push str._resourcedir_
lea ecx, [ebp - 0x1020]
call fcn.00434b1c
push ecx
mov edi, esp
mov dword [ebp - 0x101c], edi
mov eax, dword [ebp - 0x1020]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
pop ecx
mov dword [edi], eax
lea ecx, [ebp - 0x1060]
lea eax, [ebp - 0x101c]
push eax
call fcn.004cd49a
push eax
lea ecx, [ebp - 0x1020]
mov byte [ebp - 4], 0xd
call fcn.00411f3a
mov ecx, dword [ebp - 0x101c]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ebx, dword [ebp - 0x1020]
movaps xmm0, xmmword [0x6244e0]
lea ecx, [ebp - 0x1030]
movups xmmword [ebp - 0x1040], xmm0
call fcn.00500725
push 0x30
push 0x40
lea ecx, [ebp - 0x1030]
mov byte [ebp - 4], 0xe
call fcn.005007e4
push esi
lea ecx, [ebp - 0x1030]
call fcn.0050079c
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
mov dword [ebp - 0x1018], edi
test edi, edi
je 0x4cf660
lea eax, [ebp - 0x1014]
mov dword [edi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp - 0x1014], esi
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1014]
mov dword [edi + 4], eax
jmp 0x4cf668
mov edi, esi
mov dword [ebp - 0x1018], esi
test edi, edi
je 0x4cf69a
push esi
push esi
push 0x64
push esi
sub esp, 0x10
lea esi, [ebp - 0x1040]
mov edi, esp
lea ecx, [ebp - 0x1030]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1018]
push esi
call fcn.00501011
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push ecx
mov esi, esp
mov dword [ebp - 0x101c], esi
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
push edi
call fcn.00412393
add eax, 0x10
pop ecx
mov dword [esi], eax
lea ecx, [ebp - 0x1060]
lea eax, [ebp - 0x1028]
push eax
call fcn.0042fedd
lea eax, [ebp - 0x1028]
mov byte [ebp - 4], 0xf
push eax
call fcn.00467006
mov dword [esp], str.image_png
lea ecx, [ebp - 0x1030]
push dword [ebp + 0xc]
call fcn.005024f9
mov ecx, dword [ebp - 0x1028]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
lea ecx, [ebp - 0x1030]
call fcn.00500786
lea ecx, [ebx - 0x10]
call fcn.00412ac4
lea ecx, [ebp - 0x1060]
call fcn.0042e60b
mov ecx, dword [ebp - 0x1050]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, edi
call fcn.00412ac4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 8