Function at 0x49b6fa
Capabilities:
Check if file exists

Disassembly:
push 0x164
mov eax, 0x5e706d
call fcn.00593b07
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x58]
xor ebx, ebx
mov edx, esi
push ebx
call fcn.00426805
pop ecx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x49b727
mov eax, dword [eax]
push eax
push 0xfc0
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.0040b67e
cmp dword [esi + 0x10], ebx
jne 0x49b757
xor al, al
jmp 0x49bc91
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 0x49bc79
lea ecx, [ebp - 0x168]
call fcn.00405673
test al, al
jne 0x49bc79
call fcn.004056d7
test al, al
je 0x49bc79
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 0x6329a0
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 4
call fcn.00405401
lea edx, [ebp - 0x88]
mov ecx, eax
call fcn.00436f2a
push 0x63cd98
lea ecx, [ebp - 0x168]
call fcn.00405401
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.00436f2a
cmp dword [ebp - 0x78], 0
je 0x49bc66
cmp dword [ebp - 0x30], 0
je 0x49bc66
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 0xfd3
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 0x49b98b
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
call fcn.00423490
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.00426889
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.00426805
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 0x49b930
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 0xfdd
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.0040b67e
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00423c0f
pop ecx
pop ecx
test al, al
je 0x49b99e
push 0xfe0
push esi
push str.__s__d___file_md5_ok
call fcn.0040a649
add esp, 0xc
jmp 0x49ba9c
push 0xfea
push esi
push str.__s__d___file_not_exist
call fcn.0040a649
add esp, 0xc
push 0xfef
push esi
push str.__s__d___SetAdWallpaper_download__begin
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0xe0]
call fcn.0040ba47
push 0x170
mov byte [ebp - 4], 9
call fcn.005926f7
pop ecx
mov dword [ebp - 0x158], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040b6b1
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.00430a1f
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0040b8cb
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.00430a1f
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.0040b9f4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00404812
push 0x12c
mov ecx, esi
call fcn.0040b8d4
push esi
call fcn.0040bde3
mov esi, str.ScreenSaverFrame::TryToDownLoadFile
test eax, eax
je 0x49ba8d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0xfff
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.0040ba62
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x49bc4b
push 8
pop edi
cmp dword [ebp - 0x14], edi
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
call fcn.00423490
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.00426889
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.00426805
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 0x49bb1d
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 0x1007
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.0040b67e
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00423c0f
pop ecx
pop ecx
test al, al
je 0x49bc38
push 0x100a
push esi
push str.__s__d___ad_download_ok
call fcn.0040a649
add esp, 0xc
call fcn.0042561d
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x154]
push eax
push 0x5f5a30
push 1
push ebx
push 0x5f5a20
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 0x49bbf0
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x49bc4b
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.004cc7e0
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.00426057
pop ecx
pop ecx
mov bl, 1
jmp 0x49bc4b
push 0x1028
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.0040b67e
lea ecx, [ebp - 0x40]
call fcn.0040b67e
lea ecx, [ebp - 0x88]
call fcn.0040b67e
lea ecx, [ebp - 0x168]
call fcn.00404dbc
lea ecx, [ebp - 0x150]
call fcn.00402bc3
mov al, bl
call fcn.00593ab1
ret 4