Function at 0x4b5f1c
Capabilities:
Check if file exists

Disassembly:
push 0x138
mov eax, 0x5e82d6
call fcn.00592017
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.00426054
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 0x4b5fc0
lea eax, [ebp - 0x119]
mov ecx, edi
push eax
lea eax, [ebp - 0x70]
push eax
push esi
call fcn.004b5c40
test al, al
jne 0x4b5fed
push 0x22e
push str.PicLoopMgr::SetWallpaper
push str.__s__d___current_wallpaper_is_vip
call fcn.0040a649
add esp, 0xc
jmp 0x4b6348
cmp dword [edi + 0x1d8], 2
jne 0x4b5fed
push 0x65ecfc
lea ecx, [ebp - 0x28]
call fcn.004045aa
push ebx
xor dl, dl
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.0045dfa9
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 0x4b61eb
lea ecx, [esi + 0x9c]
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x4b6034
mov eax, dword [ecx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4b6171
mov ecx, dword [esi + 0xb8]
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x128], ecx
cmp eax, ecx
je 0x4b6171
mov edi, eax
push edi
lea ecx, [ebp - 0xd8]
call fcn.0048263f
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 0x4b6147
lea ecx, [ebp - 0x118]
call fcn.0040ba44
push 0x170
mov byte [ebp - 4], 5
call fcn.00590c07
pop ecx
mov dword [ebp - 0x120], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040b6ae
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0xd0]
mov ecx, esi
push eax
call fcn.0040b8c8
lea eax, [ebp - 0xa0]
mov ecx, esi
push eax
call fcn.0040b9f1
push 3
mov ecx, esi
call fcn.0040b8d1
push esi
call fcn.0040bde0
test eax, eax
je 0x4b613c
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.00430aaf
add esp, 0x18
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4b611c
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.0040b67b
lea ecx, [ebp - 0x118]
call fcn.0040ba5f
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 3
call fcn.004848e0
add edi, 0x68
cmp edi, dword [ebp - 0x128]
jne 0x4b605f
mov edi, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x130]
lea ecx, [edi + 0xc0]
cmp dword [ecx + 0x14], 8
jb 0x4b617f
mov ecx, dword [ecx]
xor edx, edx
inc edx
call fcn.00427dad
mov ecx, esi
call fcn.004b37c8
push 0xfde9
lea edx, [esi + 0x9c]
lea ecx, [ebp - 0x28]
call fcn.00426802
pop ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67b
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 0x4b61eb
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
call fcn.0042348d
lea ecx, [ebp - 0x28]
call fcn.00430aaf
add esp, 0x18
jmp 0x4b621a
push 0xfde9
lea edx, [esi + 0x44]
lea ecx, [ebp - 0x28]
call fcn.00426802
pop ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67b
push ebx
lea edx, [esi + 0x14]
lea ecx, [ebp - 0x28]
call fcn.00426802
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67b
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.0045e63c
pop ecx
lea eax, [ebp - 0x70]
mov ecx, 0x6c5644
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.004239f1
pop ecx
pop ecx
test al, al
je 0x4b62fa
push esi
lea ecx, [edi + 0xd8]
call fcn.004b4d7d
call fcn.004c483b
push esi
mov ecx, edi
call fcn.004b71c1
cmp byte [edi + 0x86], 0
je 0x4b62ec
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 0x4b6338
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.00426054
add esp, 0x18
lea ecx, [ebp - 0x58]
call fcn.0040b67b
lea ecx, [ebp - 0x40]
call fcn.0040b67b
lea ecx, [ebp - 0x70]
call fcn.00404812
mov al, bl
call fcn.00591fc1
ret 8