Function at 0x4a2b78
Capabilities:
Check if file exists

Disassembly:
push 0x164
mov eax, 0x5efda3
call fcn.0059bbd7
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x58]
xor ebx, ebx
mov edx, esi
push ebx
call fcn.00426ce7
pop ecx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x4a2ba5
mov eax, dword [eax]
push eax
push 0x103e
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 0x4a2bd5
xor al, al
jmp 0x4a312c
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 0x4a3114
lea ecx, [ebp - 0x168]
call fcn.00405673
test al, al
jne 0x4a3114
call fcn.004056d7
test al, al
je 0x4a3114
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 0x63c770
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 4
call fcn.00405401
lea edx, [ebp - 0x88]
mov ecx, eax
call fcn.0043bffa
push 0x646b80
lea ecx, [ebp - 0x168]
call fcn.00405401
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.0043bffa
cmp dword [ebp - 0x78], 0
je 0x4a3101
cmp dword [ebp - 0x30], 0
je 0x4a3101
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 0x1051
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 0x4a2e09
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
call fcn.004236f2
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.00426d6b
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.00426ce7
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 0x4a2dae
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 0x105b
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.00423e8e
pop ecx
pop ecx
test al, al
je 0x4a2e1c
push 0x105e
push esi
push str.__s__d___file_md5_ok
call fcn.0040a649
add esp, 0xc
jmp 0x4a2f1a
push 0x1068
push esi
push str.__s__d___file_not_exist
call fcn.0040a649
add esp, 0xc
push 0x106d
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.0059a7c1
pop ecx
mov dword [ebp - 0x154], 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.00435a2c
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.00435a2c
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 0x4a2f0b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x107d
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 0x4a30e6
push 8
pop edi
cmp dword [ebp - 0x14], edi
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
call fcn.004236f2
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.00426d6b
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.00426ce7
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 0x4a2f9b
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 0x1085
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.00423e8e
pop ecx
pop ecx
test al, al
je 0x4a30d3
push 0x1088
push esi
push str.__s__d___ad_download_ok
call fcn.0040a649
add esp, 0xc
call fcn.00425ae2
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x158]
push eax
push 0x5fea30
push 1
push ebx
push 0x5fea20
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x158]
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 - 0x158]
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 - 0x158]
mov ecx, dword [eax]
jns 0x4a306e
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4a30e6
push 0xf
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.004d4717
lea eax, [ebp - 0x154]
xor ebx, ebx
push eax
mov edi, str.Software360360huabaoDynamicWallpaper
mov esi, reloc.WS2_32.dll_accept
inc ebx
mov edx, edi
push str.play_type
mov ecx, esi
mov dword [ebp - 0x154], ebx
call fcn.00426539
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], ebx
push eax
push str.play_last_type_detail
mov edx, edi
mov ecx, esi
call fcn.00426539
add esp, 0x10
jmp 0x4a30e6
push 0x10a7
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.0059bb81
ret 4