Function at 0x40ce19
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x89c
mov eax, 0x551d40
call fcn.00440364
mov esi, ecx
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.0041de80
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0041de80
add esp, 0x18
lea ecx, [ebp - 0x860]
mov edi, 0x554480
push edi
call fcn.00401d30
push edi
lea ecx, [ebp - 0x8a8]
mov dword [ebp - 4], ebx
call fcn.00401d30
push edi
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 1
call fcn.00401d30
push edi
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 2
call fcn.00401d30
push ebx
push 0x2b
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
push ebx
call fcn.0040c645
mov ebx, 0x55450c
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0042e09b
mov edi, 0x554e68
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.0042e09b
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0042e09b
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.0042e09b
lea eax, [ebp - 0x420]
push str..ini
push eax
call fcn.0042e09b
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x420]
add esp, 0x38
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x554480
push str.CfgPath
push str.AppConfig
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0042deed
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
test eax, eax
jle 0x40cf8f
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x40cf8f
lea eax, [ebp - 0x218]
push eax
call fcn.0042deed
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x860]
call fcn.004022b0
lea eax, [ebp - 0x218]
push eax
call fcn.0042deed
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x2c]
call fcn.004022b0
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x40d24f
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0041de80
add esp, 0xc
cmp dword [esi + 0x6c], 0
jne 0x40cfd8
push 0x104
lea eax, [ebp - 0x628]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push 0x5c
push eax
call fcn.0041e270
pop ecx
pop ecx
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x40cff2
lea eax, [esi + 0x5c]
cmp dword [eax + 0x14], 8
jb 0x40cfe3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0042e10c
pop ecx
pop ecx
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0041de80
push str.HaoKanWallPaper.cfg
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push 0x5558b8
push eax
call fcn.00406f00
add esp, 0x1c
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x554480
push str.CfgPath
push str.AppInfo
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0042deed
pop ecx
test eax, eax
jle 0x40d0b2
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x40d0b2
lea eax, [ebp - 0x218]
push eax
call fcn.0042deed
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.004022b0
lea eax, [ebp - 0x218]
push eax
call fcn.0042deed
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x2c]
call fcn.004022b0
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x40d24f
lea eax, [esi + 0x74]
cmp dword [eax + 0x14], 8
jb 0x40d0bd
mov eax, dword [eax]
push str.HaoKanWallPaper.cfg
push eax
lea eax, [ebp - 0x830]
push 0x5558b8
push eax
call fcn.00406f00
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x554480
push str.CfgPath
push str.AppInfo
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0042deed
pop ecx
test eax, eax
jle 0x40d164
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x40d164
lea eax, [ebp - 0x218]
push eax
call fcn.0042deed
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x890]
call fcn.004022b0
lea eax, [ebp - 0x218]
push eax
call fcn.0042deed
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x2c]
call fcn.004022b0
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x40d24f
push 0x554480
push str.CfgPath
push str.AppInfo
lea eax, [ebp - 0x848]
mov ecx, esi
push eax
call fcn.0040ca9f
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x848]
push eax
call fcn.0042deed
pop ecx
test eax, eax
jle 0x40d1ea
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
call edi
test eax, eax
je 0x40d1ea
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x878]
call fcn.004018f0
lea eax, [ebp - 0x848]
push eax
lea ecx, [esi + 0x2c]
call fcn.004018f0
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x40d244
cmp byte [esi + 8], 0
je 0x40d244
cmp byte [esi + 6], 0
je 0x40d244
lea eax, [ebp - 0x8a8]
push eax
lea ecx, [ebp - 0x860]
call fcn.00409882
test al, al
jne 0x40d210
mov byte [esi + 9], 1
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x860]
call fcn.00409882
test al, al
jne 0x40d22a
mov byte [esi + 9], 1
lea eax, [ebp - 0x878]
push eax
lea ecx, [ebp - 0x860]
call fcn.00409882
test al, al
jne 0x40d244
mov byte [esi + 9], 1
lea ecx, [ebp - 0x848]
call fcn.004020c0
lea ecx, [ebp - 0x878]
call fcn.004020c0
lea ecx, [ebp - 0x890]
call fcn.004020c0
lea ecx, [ebp - 0x8a8]
call fcn.004020c0
lea ecx, [ebp - 0x860]
call fcn.004020c0
call fcn.0044031f
ret