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

Disassembly:
push 0x89c
mov eax, 0x51eeb8
call fcn.0049c822
mov esi, ecx
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.004cbbe0
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004cbbe0
add esp, 0x18
lea ecx, [ebp - 0x860]
mov edi, 0x525840
push edi
call fcn.0040ba50
push edi
lea ecx, [ebp - 0x8a8]
mov dword [ebp - 4], ebx
call fcn.0040ba50
push edi
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 1
call fcn.0040ba50
push edi
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 2
call fcn.0040ba50
push ebx
push 0x2b
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
push ebx
call fcn.0042e0e9
mov ebx, 0x525b5c
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004dc11b
mov edi, 0x525e00
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.004dc11b
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004dc11b
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.004dc11b
lea eax, [ebp - 0x420]
push str..ini
push eax
call fcn.004dc11b
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 0x525840
push str.UsrPath
push str.AppConfig
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.004dc031
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
test eax, eax
jle 0x41e1f3
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x41e1f3
lea eax, [ebp - 0x218]
push eax
call fcn.004dc031
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x860]
call fcn.00407300
lea eax, [ebp - 0x218]
push eax
call fcn.004dc031
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x14]
call fcn.00407300
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x41e4bc
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004cbbe0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004cbbe0
add esp, 0x18
cmp dword [esi + 0x6c], 0
jne 0x41e24f
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.004cc533
pop ecx
pop ecx
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x41e269
lea eax, [esi + 0x5c]
cmp dword [eax + 0x14], 8
jb 0x41e25a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.004dc18c
pop ecx
pop ecx
push str.HaoKanWallPaper.cfg
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push 0x52607c
push eax
call fcn.0040c370
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x525840
push str.UsrPath
push str.AppInfo
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.004dc031
pop ecx
test eax, eax
jle 0x41e316
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x41e316
lea eax, [ebp - 0x218]
push eax
call fcn.004dc031
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00407300
lea eax, [ebp - 0x218]
push eax
call fcn.004dc031
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x14]
call fcn.00407300
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x41e4bc
lea eax, [esi + 0x74]
cmp dword [eax + 0x14], 8
jb 0x41e321
mov eax, dword [eax]
push str.HaoKanWallPaper.cfg
push eax
lea eax, [ebp - 0x830]
push 0x52607c
push eax
call fcn.0040c370
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x525840
push str.UsrPath
push str.AppInfo
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.004dc031
pop ecx
test eax, eax
jle 0x41e3c8
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x41e3c8
lea eax, [ebp - 0x218]
push eax
call fcn.004dc031
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x890]
call fcn.00407300
lea eax, [ebp - 0x218]
push eax
call fcn.004dc031
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x14]
call fcn.00407300
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x41e4bc
push 0x525840
push str.UsrPath
push str.AppInfo
lea eax, [ebp - 0x848]
mov ecx, esi
push eax
call fcn.0041d89b
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x848]
push eax
call fcn.004dc031
pop ecx
test eax, eax
jle 0x41e44e
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
call edi
test eax, eax
je 0x41e44e
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x878]
call fcn.0041cc6e
lea eax, [ebp - 0x848]
push eax
lea ecx, [esi + 0x14]
call fcn.0041cc6e
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x41e4b1
cmp byte [esi + 8], 0
je 0x41e4b1
cmp byte [esi + 7], 0
je 0x41e4b1
lea eax, [ebp - 0x8a8]
push eax
lea ecx, [ebp - 0x860]
call fcn.0041f1b0
test al, al
jne 0x41e474
mov byte [esi + 9], 1
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x860]
call fcn.0041f1b0
test al, al
jne 0x41e48e
mov byte [esi + 9], 1
lea eax, [ebp - 0x878]
push eax
lea ecx, [ebp - 0x860]
call fcn.0041f1b0
test al, al
jne 0x41e4b1
push 1
lea ecx, [ebp - 0x860]
call fcn.0041cc97
lea ecx, [ebp - 0x848]
call fcn.00408700
lea ecx, [ebp - 0x878]
call fcn.00408700
lea ecx, [ebp - 0x890]
call fcn.00408700
lea ecx, [ebp - 0x8a8]
call fcn.00408700
lea ecx, [ebp - 0x860]
call fcn.00408700
call fcn.0049c7dd
ret