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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027437
mov eax, dword fs:[0]
push eax
sub esp, 0x89c
mov eax, dword [0x1003a064]
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 ebx, ecx
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10012430
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10012430
add esp, 0x18
mov dword [ebp - 0x838], 0
xor eax, eax
mov dword [ebp - 0x834], 7
lea ecx, [ebp - 0x848]
mov word [ebp - 0x848], ax
push eax
push 0x10029424
call fcn.10002740
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x10029424
lea ecx, [ebp - 0x878]
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], ax
call fcn.10002740
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x10029424
lea ecx, [ebp - 0x8a8]
mov dword [ebp - 0x898], 0
mov dword [ebp - 0x894], 7
mov word [ebp - 0x8a8], ax
call fcn.10002740
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x10029424
lea ecx, [ebp - 0x890]
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
call fcn.10002740
push 0
push 0x2b
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
push 0
call fcn.1000ac90
lea edi, [ebp - 0x420]
add esp, 0x10
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10003642
mov eax, dword [0x10029460]
mov dword [edi], eax
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
nop
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10003660
mov ecx, 8
mov esi, 0x10029464
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10003681
mov dword [edi], eax
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100036a0
mov ecx, 8
mov esi, 0x10029464
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100036c1
mov eax, dword [str..ini]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ecx], eax
mov eax, dword [0x10029488]
mov dword [ecx + 4], eax
mov ax, word [0x1002948c]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10029424
push str.CfgPath
push str.AppConfig
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003720
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x100037ad
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x100037ad
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003750
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x848]
call fcn.10002740
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003780
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x2c]
call fcn.10002740
cmp byte [ebx + 8], 0
mov byte [ebx + 6], 1
je 0x100039e9
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10012430
add esp, 0xc
cmp dword [ebx + 0x6c], 0
jne 0x100037f7
push 0x104
lea eax, [ebp - 0x628]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push 0x5c
push eax
call fcn.1001258a
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x10003820
cmp dword [ebx + 0x70], 8
lea ecx, [ebx + 0x5c]
jb 0x10003802
mov ecx, dword [ecx]
lea edx, [ebp - 0x628]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10003810
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.10012430
push str.HaoKanWallPaper.cfg
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push str._s_s
push eax
call fcn.10002860
add esp, 0x1c
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10029424
push str.CfgPath
push str.AppInfo
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003880
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x1000390d
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x1000390d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100038b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x878]
call fcn.10002740
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100038e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x2c]
call fcn.10002740
cmp byte [ebx + 8], 0
mov byte [ebx + 6], 1
je 0x100039e9
cmp dword [ebx + 0x88], 8
lea eax, [ebx + 0x74]
jb 0x1000391b
mov eax, dword [eax]
push str.HaoKanWallPaper.cfg
push eax
lea eax, [ebp - 0x830]
push str._s_s
push eax
call fcn.10002860
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10029424
push str.CfgPath
push str.AppInfo
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003962
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x100039fa
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x100039fa
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003990
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x8a8]
call fcn.10002740
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100039c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x2c]
call fcn.10002740
cmp byte [ebx + 8], 0
mov byte [ebx + 6], 1
jne 0x100039fa
mov esi, dword [ebp - 0x848]
mov edi, dword [ebp - 0x890]
jmp 0x10003be5
push 0x10029424
push str.CfgPath
push str.AppInfo
lea eax, [ebp - 0x860]
push 0x10029464
push eax
call fcn.1000c100
add esp, 0x14
mov edx, dword [ebp - 0x84c]
lea ecx, [ebp - 0x860]
mov edi, dword [ebp - 0x860]
cmp edx, 8
mov byte [ebp - 4], 4
cmovae ecx, edi
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003a40
mov eax, dword [ebp - 0x878]
sub ecx, esi
mov esi, dword [ebp - 0x848]
sar ecx, 1
test ecx, ecx
jle 0x10003adb
cmp edx, 8
lea eax, [ebp - 0x860]
cmovae eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10003ad5
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
push dword [ebp - 0x850]
cmovae eax, dword [ebp - 0x860]
lea ecx, [ebp - 0x890]
push eax
call fcn.10002740
lea ecx, [ebx + 0x2c]
lea eax, [ebp - 0x860]
cmp ecx, eax
je 0x10003ac7
cmp dword [ebp - 0x84c], 8
push dword [ebp - 0x850]
cmovae eax, dword [ebp - 0x860]
push eax
call fcn.10002740
cmp byte [ebx + 8], 0
mov byte [ebx + 6], 1
je 0x10003c23
mov eax, dword [ebp - 0x878]
cmp byte [ebx + 8], 0
je 0x10003c23
cmp byte [ebx + 6], 0
je 0x10003c23
cmp dword [ebp - 0x864], 8
lea ecx, [ebp - 0x878]
lea edi, [ebp - 0x848]
cmovae ecx, eax
cmp dword [ebp - 0x834], 8
cmovae edi, esi
mov esi, dword [ebp - 0x838]
cmp esi, dword [ebp - 0x868]
jne 0x10003b38
mov edx, esi
test edx, edx
je 0x10003b3c
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x10003b38
add ecx, 2
sub edx, 1
jne 0x10003b25
jmp 0x10003b3c
mov byte [ebx + 9], 1
cmp dword [ebp - 0x894], 8
lea ecx, [ebp - 0x8a8]
lea edi, [ebp - 0x848]
cmovae ecx, dword [ebp - 0x8a8]
cmp dword [ebp - 0x834], 8
cmovae edi, dword [ebp - 0x848]
cmp esi, dword [ebp - 0x898]
jne 0x10003b87
mov edx, esi
test edx, edx
je 0x10003b8b
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x10003b87
add ecx, 2
sub edx, 1
jne 0x10003b74
jmp 0x10003b8b
mov byte [ebx + 9], 1
cmp dword [ebp - 0x87c], 8
lea ecx, [ebp - 0x890]
mov edi, dword [ebp - 0x890]
lea edx, [ebp - 0x848]
cmovae ecx, edi
cmp dword [ebp - 0x834], 8
cmovae edx, dword [ebp - 0x848]
cmp esi, dword [ebp - 0x880]
jne 0x10003c1d
test esi, esi
je 0x10003bd4
sub edx, ecx
mov ax, word [edx + ecx]
cmp ax, word [ecx]
jne 0x10003c1d
add ecx, 2
sub esi, 1
jne 0x10003bc3
mov esi, dword [ebp - 0x848]
lea ecx, [ebp - 0x860]
call fcn.10002470
mov eax, dword [ebp - 0x87c]
mov ebx, dword [ebp - 0x878]
cmp eax, 8
jb 0x10003c35
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10003c2b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003cfd
jmp 0x10003c2b
mov byte [ebx + 9], 1
jmp 0x10003bd4
mov edi, dword [ebp - 0x890]
jmp 0x10003bda
push ecx
push edi
call fcn.1000fe4c
add esp, 8
mov eax, dword [ebp - 0x894]
cmp eax, 8
jb 0x10003c75
mov edx, dword [ebp - 0x8a8]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10003c6b
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003d02
push ecx
push edx
call fcn.1000fe4c
add esp, 8
mov eax, dword [ebp - 0x864]
cmp eax, 8
jb 0x10003cab
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x10003ca1
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003d07
push ecx
push ebx
call fcn.1000fe4c
add esp, 8
mov eax, dword [ebp - 0x834]
cmp eax, 8
jb 0x10003ce1
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x10003cd7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003d0c
push ecx
push esi
call fcn.1000fe4c
add esp, 8
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.1000fe5f
mov esp, ebp
pop ebp
ret
call fcn.100142d9
call fcn.100142d9
call fcn.100142d9
call fcn.100142d9
int3