Function at 0x10004970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027551
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x1003a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov edx, esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100049c0
sub edx, ecx
lea ecx, [ebp - 0x40]
sar edx, 1
push edx
push esi
call fcn.10002740
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
jne 0x10004a19
cmp dword [edi + 0x88], 8
lea edx, [edi + 0x74]
jb 0x100049f4
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004a00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10002740
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
jne 0x10004a38
xor esi, esi
jmp 0x10004df6
push str.HaoKanWallPaper.exe
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10002890
add esp, 0xc
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x88]
push eax
call esi
test eax, eax
je 0x10004a76
mov esi, 1
jmp 0x10004da2
lea eax, [ebp - 0x70]
push str.9755104754656314543663180836632607635531116508026850084024582929
push eax
call fcn.10009570
add esp, 8
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
push 1
xor eax, eax
mov byte [ebp - 4], 3
push 0x10029644
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.10002740
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 4
cmovae edx, dword [ebp - 0x70]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004af4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10002740
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000d110
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.10002470
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.10002470
mov esi, dword [ebp - 0xa0]
cmp esi, dword [ebp - 0x9c]
je 0x10004d31
nop
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x10004b5a
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004b73
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10002740
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push 1
push 0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 7
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
sub esp, 0x18
cmp dword [ebp - 0x14], 8
mov ecx, esp
mov dword [ebp - 0xa4], esp
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
cmp eax, 8
jae 0x10004bf7
movups xmm0, xmmword [edx]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
jmp 0x10004c46
mov edi, eax
mov eax, 0x7ffffffe
or edi, 7
cmp edi, 0x7ffffffe
cmova edi, eax
lea eax, [edi + 1]
push eax
call fcn.10002550
mov ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x90]
push ecx
call fcn.10011930
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edi
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
lea eax, [ebp - 0x40]
mov dword [ebp - 0x8c], ecx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
cmp dword [ebp - 0x2c], 8
mov edx, dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x94], eax
cmp edx, 8
jae 0x10004c94
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], 7
jmp 0x10004ce9
mov edi, edx
mov eax, 0x7ffffffe
or edi, 7
cmp edi, 0x7ffffffe
cmova edi, eax
lea eax, [edi + 1]
push eax
call fcn.10002550
mov ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x90]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x94]
push ecx
call fcn.10011930
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov ecx, dword [ebp - 0x90]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edi
mov byte [ebp - 4], 7
call fcn.10009940
mov ecx, dword [ebp - 0x48]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x4c]
add esp, 0x3c
imul ecx
lea ecx, [ebp - 0x4c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10004d70
call fcn.10002bb0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10002470
add esi, 0x18
cmp esi, dword [ebp - 0x9c]
jne 0x10004b50
xor esi, esi
lea ecx, [ebp - 0xa0]
call fcn.10002bb0
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x10004d8e
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004d84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004e4b
jmp 0x10004d84
call fcn.10002bb0
lea ecx, [ebp - 0x28]
call fcn.10002470
mov esi, 1
jmp 0x10004d33
push edx
push ecx
call fcn.1000fe4c
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x10004ddf
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004dd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004e50
push edx
push ecx
call fcn.1000fe4c
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10004e2c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004e22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004e55
push edx
push ecx
call fcn.1000fe4c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret 4
call fcn.100142d9
call fcn.100142d9
call fcn.100142d9
int3