Function at 0x1003c5f0
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100833dd
mov eax, dword fs:[0]
push eax
sub esp, 0xc30
mov eax, dword [0x100a6250]
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
mov edi, ecx
mov dword [ebp - 0xc30], edi
call fcn.10006f60
mov ecx, eax
test ecx, ecx
je 0x1003cb6c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc2c], eax
mov dword [ebp - 4], 0
call fcn.10006f60
mov ecx, eax
test ecx, ecx
je 0x1003cb76
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xc3c], esi
mov eax, dword [edi + 0x1c]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x1003c6fb
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0xa28
or eax, ecx
jge 0x1003c6a2
push 0xa28
lea ecx, [ebp - 0xc3c]
call fcn.10007050
mov esi, dword [ebp - 0xc3c]
cmp dword [esi - 8], 0xa28
jl 0x1003cb80
xor eax, eax
mov dword [esi - 0xc], 0xa28
push eax
mov word [esi + 0x1450], ax
lea eax, [ebp - 0xc24]
push 0xa28
push eax
push esi
push dword [edi + 0x1c]
call fcn.1003b370
push dword [esi - 8]
push esi
call fcn.1004db7a
add esp, 0x1c
test eax, eax
js 0x1003cb80
cmp eax, dword [esi - 8]
jg 0x1003cb80
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100456c0
add esp, 0xc
call fcn.10006f60
mov ecx, eax
test ecx, ecx
je 0x1003cb8a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xc28], edi
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
push sym.deskutils.dll_Ordinal_11
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0xc31]
call fcn.1003af10
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0xc24]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c7a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003c85a
call fcn.10006f60
mov ecx, eax
test ecx, ecx
je 0x1003cb94
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc24], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xc24]
call fcn.10008d80
test al, al
jne 0x1003c819
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003c7f7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc24]
call fcn.10007190
lea eax, [ebp - 0xc28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc24]
push eax
call fcn.1002be00
mov edx, dword [ebp - 0xc24]
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c854
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0xc28]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100456c0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
add esp, 0xc
push 0
push 0x1a
push eax
push 0
call ebx
push 0
push 0x1c
lea eax, [ebp - 0x420]
push eax
push 0
call ebx
push str.HaloWpHaloWp.set
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x800
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.100456c0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003c8f5
lea eax, [ebp - 0x420]
push eax
push 0x400
lea eax, [ebp - 0xc20]
push eax
push 0x10087e70
push str.static
push str.black_list
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [ebp - 0xc30]
mov eax, dword [ebx + 0x14]
sub eax, 0
je 0x1003c9df
sub eax, 1
jne 0x1003ca07
call fcn.10006f60
mov ecx, eax
test ecx, ecx
je 0x1003cb9e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xc24], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0xa28
or eax, ecx
mov byte [ebp - 4], 5
jge 0x1003c95b
push 0xa28
lea ecx, [ebp - 0xc24]
call fcn.10007050
mov edi, dword [ebp - 0xc24]
push 0
push 0xa28
lea eax, [ebp - 0xc30]
push eax
push edi
push dword [ebx + 0x24]
call fcn.1003b370
push dword [edi - 8]
push edi
call fcn.1004db7a
add esp, 0x1c
test eax, eax
js 0x1003cb80
cmp eax, dword [edi - 8]
jg 0x1003cb80
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
lea eax, [ebp - 0xc20]
push eax
push edi
push dword [ebx + 0x20]
lea eax, [ebp - 0xc2c]
push esi
push dword [ebx + 0x18]
push dword [ebp - 0xc28]
push str.http:__www.halopaper.cn_intf_ChangeStaticWallpaper_appver_scids_sstate_scount_dtags_swids_s
push eax
call fcn.10008f30
add esp, 0x20
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003ca07
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1003ca07
lea eax, [ebp - 0xc20]
push eax
push 0x10087e70
push dword [ebx + 0x20]
lea eax, [ebp - 0xc2c]
push esi
push dword [ebx + 0x18]
push edi
push str.http:__www.halopaper.cn_intf_ChangeStaticWallpaper_appver_scids_sstate_scount_dtags_swids_s
push eax
call fcn.10008f30
add esp, 0x20
push dword [ebp - 0xc2c]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
call fcn.10006f60
mov ecx, eax
test ecx, ecx
je 0x1003cba8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc38], eax
push dword [ebx + 0x10]
lea eax, [ebp - 0xc38]
mov byte [ebp - 4], 6
push 0x1388
push eax
lea eax, [ebp - 0xc2c]
push eax
call fcn.10044e40
add esp, 0x10
test eax, eax
je 0x1003cace
push ecx
mov dword [ebp - 0xc24], esp
mov edi, dword [ebp - 0xc38]
add edi, 0xfffffff0
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x1003ca81
cmp ecx, dword [edi]
jne 0x1003ca81
lock inc dword [eax]
jmp 0x1003cabc
mov eax, dword [ecx]
push 1
push dword [edi + 4]
call dword [eax]
mov ecx, eax
mov dword [ebp - 0xc30], ecx
test ecx, ecx
je 0x1003cbb2
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea eax, [edi + 0x10]
mov edx, dword [edi + 4]
inc edx
push edx
push eax
push edx
lea eax, [ecx + 0x10]
push eax
call fcn.10007310
mov edi, dword [ebp - 0xc30]
add esp, 0x10
mov ecx, dword [ebp - 0xc24]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov ecx, ebx
call fcn.1003b860
mov edx, dword [ebp - 0xc38]
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003caf2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc28]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003cb13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003cb2e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc2c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1003cb50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.1001a767
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10006e50
push 0x80004005
call fcn.10006e50
push 0x80070057
call fcn.10006e50
push 0x80004005
call fcn.10006e50
push 0x80004005
call fcn.10006e50
push 0x80004005
call fcn.10006e50
push 0x80004005
call fcn.10006e50
call fcn.100072c0
int3