Function at 0x4bef52
Capabilities:
Check if file exists

Disassembly:
push pe_nt_image_headers32
mov eax, 0x5f2e43
call fcn.0059bbd7
mov edi, ecx
mov dword [ebp - 0x12c], edi
mov eax, dword [ebp + 0xc]
mov edx, str.Software360360huabao
mov esi, dword [ebp + 8]
mov ecx, reloc.WS2_32.dll_accept
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x120]
push eax
push str.loop_is_start
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x120], 1
call fcn.00426539
xor ebx, ebx
mov dword [ebp - 0x5c], 0xf
pop ecx
pop ecx
mov byte [ebp - 0x119], bl
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
mov dword [ebp - 4], ebx
cmp dword [edi + 0x90], 4
jne 0x4beff6
lea eax, [ebp - 0x119]
mov ecx, edi
push eax
lea eax, [ebp - 0x70]
push eax
push esi
call fcn.004bec76
test al, al
jne 0x4bf023
push 0x22e
push str.PicLoopMgr::SetWallpaper
push str.__s__d___current_wallpaper_is_vip
call fcn.0040a649
add esp, 0xc
jmp 0x4bf37e
cmp dword [edi + 0x1d8], 2
jne 0x4bf023
push 0x66bb70
lea ecx, [ebp - 0x28]
call fcn.004045aa
push ebx
xor dl, dl
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.00463934
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00404812
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xb8]
sub eax, dword [esi + 0xb4]
push 0x68
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4bf221
lea ecx, [esi + 0x9c]
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x4bf06a
mov eax, dword [ecx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4bf1a7
mov ecx, dword [esi + 0xb8]
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x128], ecx
cmp eax, ecx
je 0x4bf1a7
mov edi, eax
push edi
lea ecx, [ebp - 0xd8]
call fcn.004894fc
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4bf17d
lea ecx, [ebp - 0x118]
call fcn.0040ba47
push 0x170
mov byte [ebp - 4], 5
call fcn.0059a7c1
pop ecx
mov dword [ebp - 0x120], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040b6b1
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0xd0]
mov ecx, esi
push eax
call fcn.0040b8cb
lea eax, [ebp - 0xa0]
mov ecx, esi
push eax
call fcn.0040b9f4
push 3
mov ecx, esi
call fcn.0040b8d4
push esi
call fcn.0040bde3
test eax, eax
je 0x4bf172
sub esp, 0x18
lea eax, [ebp - 0xa0]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x28]
call fcn.00435b82
add esp, 0x18
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4bf152
mov eax, dword [eax]
push eax
push 0x249
push str.PicLoopMgr::SetWallpaper
push str.__s__d___HttpDownloadSync_watermark:_s
call fcn.0040a649
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.0040b67e
lea ecx, [ebp - 0x118]
call fcn.0040ba62
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 3
call fcn.0048b79d
add edi, 0x68
cmp edi, dword [ebp - 0x128]
jne 0x4bf095
mov edi, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x130]
lea ecx, [edi + 0xc0]
cmp dword [ecx + 0x14], 8
jb 0x4bf1b5
mov ecx, dword [ecx]
xor edx, edx
inc edx
call fcn.00428292
mov ecx, esi
call fcn.004bc7fe
push 0xfde9
lea edx, [esi + 0x9c]
lea ecx, [ebp - 0x28]
call fcn.00426ce7
pop ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bf221
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
call fcn.004236f2
lea ecx, [ebp - 0x28]
call fcn.00435b82
add esp, 0x18
jmp 0x4bf250
push 0xfde9
lea edx, [esi + 0x44]
lea ecx, [ebp - 0x28]
call fcn.00426ce7
pop ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67e
push ebx
lea edx, [esi + 0x14]
lea ecx, [ebp - 0x28]
call fcn.00426ce7
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67e
mov eax, dword [esi + 4]
lea edx, [ebp - 0x144]
mov dword [ebp - 0x144], eax
mov ecx, 0xfbf
movzx eax, byte [esi + 0x94]
push 0x10
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x138], bl
mov dword [ebp - 0x13c], eax
call fcn.00463fca
pop ecx
lea eax, [ebp - 0x70]
mov ecx, 0x6d4644
push eax
call fcn.00404698
movzx eax, byte [edi + 0x85]
lea edx, [ebp - 0x58]
push eax
push dword [ebp - 0x124]
lea ecx, [ebp - 0x40]
call fcn.00423c73
pop ecx
pop ecx
test al, al
je 0x4bf330
push esi
lea ecx, [edi + 0xd8]
call fcn.004bddb3
call fcn.004ce026
push esi
mov ecx, edi
call fcn.004c01f7
cmp byte [edi + 0x86], 0
je 0x4bf322
mov esi, 0x4c8
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push dword [edi + 0x8c]
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [edi + 0x8c]
push 0x269
push str.PicLoopMgr::SetWallpaper
push str.__s__d___SetTimer:_d
call fcn.0040a649
add esp, 0x10
mov dword [edi + 0x1d8], 1
mov bl, 1
jmp 0x4bf36e
push dword [edi + 0x50]
push 0x270
push str.PicLoopMgr::SetWallpaper
push str.__s__d___SetWallPaper_failed_m_nCurIndex___d
call fcn.0040a649
mov eax, dword [edi + 0x50]
mov edx, str.Software360360huabao
mov dword [ebp - 0x124], eax
mov ecx, reloc.WS2_32.dll_accept
lea eax, [ebp - 0x124]
push eax
push str.360huabao_loopindex
call fcn.00426539
add esp, 0x18
lea ecx, [ebp - 0x58]
call fcn.0040b67e
lea ecx, [ebp - 0x40]
call fcn.0040b67e
lea ecx, [ebp - 0x70]
call fcn.00404812
mov al, bl
call fcn.0059bb81
ret 8