Function at 0x416357
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c453
mov eax, dword fs:[0]
push eax
mov eax, 0x62e18
call fcn.0051d4f0
mov eax, dword [0x5cd9c4]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x70]
xor ebx, ebx
push ebx
push esi
push eax
call fcn.00438237
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x4163a9
mov eax, dword [eax]
push eax
push 0xad6
push str.ScreenSaverFrame::TryToDownLoadFile
push str.__s__d___SetAdWallpaper__config___s
call fcn.00402cc1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
add esp, 0x10
call fcn.004036e0
cmp dword [esi + 0x10], ebx
jne 0x4163d9
xor al, al
jmp 0x4167e3
lea ecx, [ebp - 0x110]
call fcn.00404008
push ebx
lea ecx, [ebp - 0x62e1c]
mov dword [ebp - 4], 1
call fcn.0040689d
push 1
lea eax, [ebp - 0x62e1c]
mov byte [ebp - 4], 2
push eax
push esi
lea ecx, [ebp - 0x110]
call fcn.0040554e
test al, al
je 0x4167cb
lea ecx, [ebp - 0x62e1c]
call fcn.00407873
test al, al
jne 0x4167cb
lea ecx, [ebp - 0x62e1c]
call fcn.00407898
test al, al
je 0x4167cb
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x58], ax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
push 0x5570e0
lea ecx, [ebp - 0x62e1c]
call fcn.00406c31
push eax
call fcn.0043dd3d
pop ecx
pop ecx
lea eax, [ebp - 0x40]
push eax
push 0x5570bc
lea ecx, [ebp - 0x62e1c]
call fcn.00406c31
push eax
call fcn.0043dd3d
cmp dword [ebp - 0x48], 0
pop ecx
pop ecx
je 0x4167bb
cmp dword [ebp - 0x30], 0
je 0x4167bb
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
push 0xae9
push str.ScreenSaverFrame::TryToDownLoadFile
push str.__s__d___SetAdWallpaper__strUrl___s_strMd5___s
call fcn.00402cc1
add esp, 0x14
mov dword [ebp - 0x18], ebx
lea eax, [edi + 0x88]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x28]
push eax
call fcn.0040342e
push 8
pop edi
cmp dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.004037f5
push 0xf
pop eax
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0xa0], bl
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x88], bl
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 7
call esi
test eax, eax
je 0x4165c9
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004355a8
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00401dd5
lea ecx, [ebp - 0x70]
call fcn.004036ba
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004386e7
add esp, 0xc
lea ecx, [ebp - 0x88]
push eax
call fcn.00401dd5
lea ecx, [ebp - 0x70]
call fcn.004036ba
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0xa0]
call fcn.004034c6
test al, al
je 0x4165e0
push 0xaf5
push str.ScreenSaverFrame::TryToDownLoadFile
push str.__s__d___file_md5_error
call fcn.00402cc1
add esp, 0xc
jmp 0x416662
push 0xaff
push str.ScreenSaverFrame::TryToDownLoadFile
push str.__s__d___file_not_exist
call fcn.00402cc1
add esp, 0xc
lea ecx, [ebp - 0x62e08]
call fcn.0042a8f0
lea ecx, [ebp - 0x62e08]
mov byte [ebp - 4], 8
call fcn.0042d74a
push 8
pop edi
cmp dword [ebp - 0x44], edi
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x62e08]
mov dword [ebp - 0x609a0], 1
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00403136
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x62e08]
mov dword [ebp - 0x60760], 0x493e0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402ff6
lea ecx, [ebp - 0x62e08]
call fcn.0042d9aa
lea ecx, [ebp - 0x62e08]
call fcn.0042e0b1
lea ecx, [ebp - 0x62e08]
mov byte [ebp - 4], 7
call fcn.0042aba4
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x41679d
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004355a8
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00401dd5
lea ecx, [ebp - 0x70]
call fcn.004036ba
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004386e7
add esp, 0xc
lea ecx, [ebp - 0x88]
push eax
call fcn.00401dd5
lea ecx, [ebp - 0x70]
call fcn.004036ba
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0xa0]
call fcn.004034c6
test al, al
je 0x416786
push 0xb13
push str.ScreenSaverFrame::TryToDownLoadFile
push str.__s__d___ad_download_ok
call fcn.00402cc1
add esp, 0xc
call fcn.00436d6a
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x62e0c]
push eax
push 0x56eed0
push 1
push ebx
push 0x56eec0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x62e0c]
lea edx, [ebp - 0x62e24]
push ebx
mov dword [ebp - 0x62e24], 8
mov dword [ebp - 0x62e20], 2
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x62e0c]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ebx
cmovae edx, dword [ebp - 0x28]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x41679d
mov eax, dword [ebp - 0x62e0c]
push 0xf
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x62e0c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov bl, 1
jmp 0x41679d
push 0xb2c
push str.ScreenSaverFrame::TryToDownLoadFile
push str.__s__d___ad_download_error
call fcn.00402cc1
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.004036ba
lea ecx, [ebp - 0xa0]
call fcn.004036ba
lea ecx, [ebp - 0x28]
call fcn.004036e0
lea ecx, [ebp - 0x40]
call fcn.004036e0
lea ecx, [ebp - 0x58]
call fcn.004036e0
lea ecx, [ebp - 0x62e1c]
call fcn.00406a64
lea ecx, [ebp - 0x110]
call fcn.00401d9d
mov al, bl
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.0051d360
leave
ret 4