Function at 0x49aa41
Capabilities:
Check if file exists

Disassembly:
push 0x164
mov eax, 0x5e53a8
call fcn.00592017
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x58]
xor ebx, ebx
mov edx, esi
push ebx
call fcn.00426802
pop ecx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x49aa6e
mov eax, dword [eax]
push eax
push 0xfb5
push str.ScreenSaverFrame::TryToDownLoadFile
push str.__s__d___SetAdWallpaper__config___s
call fcn.0040a649
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
add esp, 0x10
call fcn.0040b67b
cmp dword [esi + 0x10], ebx
jne 0x49aa9e
xor al, al
jmp 0x49afd8
lea ecx, [ebp - 0x150]
call fcn.00401c84
push ebx
lea ecx, [ebp - 0x168]
mov dword [ebp - 4], 1
call fcn.00404ba6
push 1
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 2
push eax
push esi
lea ecx, [ebp - 0x150]
call fcn.00401d1d
test al, al
je 0x49afc0
lea ecx, [ebp - 0x168]
call fcn.00405673
test al, al
jne 0x49afc0
call fcn.004056d7
test al, al
je 0x49afc0
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ecx
mov word [ebp - 0x88], ax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
push 0x6309a8
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 4
call fcn.00405401
lea edx, [ebp - 0x88]
mov ecx, eax
call fcn.00436f27
push 0x63aba8
lea ecx, [ebp - 0x168]
call fcn.00405401
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.00436f27
cmp dword [ebp - 0x78], 0
je 0x49afad
cmp dword [ebp - 0x30], 0
je 0x49afad
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x88]
mov esi, str.ScreenSaverFrame::TryToDownLoadFile
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x74], 8
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
push 0xfc8
push esi
push str.__s__d___SetAdWallpaper__strUrl___s_strMd5___s
call fcn.0040a649
add esp, 0x14
mov dword [ebp - 0x18], ebx
lea eax, [edi + 0x90]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x28]
push eax
call fcn.0040b155
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040b220
push 0xf
pop eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x70], bl
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0xa0], bl
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x49acd2
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
call fcn.0042348d
push eax
lea ecx, [ebp - 0x70]
call fcn.00409145
lea ecx, [ebp - 0x58]
call fcn.00404812
push ebx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00426886
pop ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00409145
lea ecx, [ebp - 0x58]
call fcn.00404812
push ebx
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x58]
call fcn.00426802
pop ecx
mov ecx, eax
mov byte [ebp - 4], 8
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae edx, dword [ebp - 0x40]
cmp dword [ecx + 0x14], 8
jb 0x49ac77
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 0xfd2
push esi
push str.__s__d___SetAdWallpaper_strFile__s_strFileMd5___s_strMd5___s
call fcn.0040a649
add esp, 0x18
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.0040b67b
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00423c0c
pop ecx
pop ecx
test al, al
je 0x49ace5
push 0xfd5
push esi
push str.__s__d___file_md5_ok
call fcn.0040a649
add esp, 0xc
jmp 0x49ade3
push 0xfdf
push esi
push str.__s__d___file_not_exist
call fcn.0040a649
add esp, 0xc
push 0xfe4
push esi
push str.__s__d___SetAdWallpaper_download__begin
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0xe0]
call fcn.0040ba44
push 0x170
mov byte [ebp - 4], 9
call fcn.00590c07
pop ecx
mov dword [ebp - 0x158], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040b6ae
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
mov esi, eax
lea eax, [ebp - 0x88]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040b155
lea ecx, [ebp - 0x58]
call fcn.00430a1c
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0040b8c8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00404812
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040b155
lea ecx, [ebp - 0x58]
call fcn.00430a1c
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.0040b9f1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00404812
push 0x12c
mov ecx, esi
call fcn.0040b8d1
push esi
call fcn.0040bde0
mov esi, str.ScreenSaverFrame::TryToDownLoadFile
test eax, eax
je 0x49add4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0xff4
push esi
push str.__s__d___HttpDownloadSync_watermark:_s
call fcn.0040a649
add esp, 0x10
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.0040ba5f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x49af92
push 8
pop edi
cmp dword [ebp - 0x14], edi
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
call fcn.0042348d
push eax
lea ecx, [ebp - 0x70]
call fcn.00409145
lea ecx, [ebp - 0x58]
call fcn.00404812
push ebx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00426886
pop ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00409145
lea ecx, [ebp - 0x58]
call fcn.00404812
push ebx
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x58]
call fcn.00426802
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], edi
cmovae edx, dword [ebp - 0x40]
cmp dword [ecx + 0x14], edi
jb 0x49ae64
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push edx
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 0xffc
push esi
push str.__s__d___SetAdWallpaper_strFile__s_strFileMd5___s_strMd5___s
call fcn.0040a649
add esp, 0x18
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.0040b67b
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00423c0c
pop ecx
pop ecx
test al, al
je 0x49af7f
push 0xfff
push esi
push str.__s__d___ad_download_ok
call fcn.0040a649
add esp, 0xc
call fcn.0042561a
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x154]
push eax
push 0x5f3a30
push 1
push ebx
push 0x5f3a20
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x170]
push ebx
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x16c], 2
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
push ebx
cmovae edx, dword [ebp - 0x28]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax]
jns 0x49af37
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x49af92
push 0xf
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.004cad18
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 1
push eax
push str.play_type
mov edx, str.Software360360huabaoDynamicWallpaper
mov ecx, reloc.WS2_32.dll_accept
call fcn.00426054
pop ecx
pop ecx
mov bl, 1
jmp 0x49af92
push 0x101d
push esi
push str.__s__d___ad_download_error
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.00404812
lea ecx, [ebp - 0x70]
call fcn.00404812
lea ecx, [ebp - 0x28]
call fcn.0040b67b
lea ecx, [ebp - 0x40]
call fcn.0040b67b
lea ecx, [ebp - 0x88]
call fcn.0040b67b
lea ecx, [ebp - 0x168]
call fcn.00404dbc
lea ecx, [ebp - 0x150]
call fcn.00402bc3
mov al, bl
call fcn.00591fc1
ret 4