Function at 0x4bb7a4
Capabilities:
Check if file exists

Disassembly:
push 0x1ec
mov eax, 0x5f289f
call fcn.0059bbd7
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x1ec], edi
test ebx, ebx
je 0x4bbfa6
push 0xc8
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4bbfa6
mov esi, 0xfde9
cmp eax, 0x102
jne 0x4bbf90
mov ecx, ebx
call fcn.004bc44d
test al, al
je 0x4bbf90
mov ecx, ebx
call sym.360huabao.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
push 0xbf
push str.DownloadMgr::RealDownLoad
push str.__s__d___lpdownload_begin__lpdownload_size__d
call fcn.0040a649
add esp, 0x10
lea ecx, [ebp - 0x134]
call fcn.004bb27c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14c]
push 0x6335fc
call fcn.0040b0d5
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.004bc361
test al, al
je 0x4bbf5f
cmp dword [ebp - 0x12c], 2
jne 0x4bb86b
mov ecx, dword [ebp - 0x130]
xor edx, edx
push 0
call fcn.004d4886
pop ecx
push esi
lea edx, [ebp - 0xf0]
lea ecx, [ebp - 0x40]
call fcn.00426ce7
pop ecx
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040b0ac
lea ecx, [ebp - 0x40]
call fcn.0040b67e
and dword [ebp - 0x60], 0
lea eax, [ebp - 0x14c]
and dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x70]
push eax
call fcn.0040b155
push esi
lea edx, [ebp - 0x120]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00426ce7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x70]
cmovae ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x5c], 8
push ecx
cmovae eax, dword [ebp - 0x70]
push eax
push 0xc9
push str.DownloadMgr::RealDownLoad
push str.__s__d___download_file___s__md5___s
call fcn.0040a649
add esp, 0x18
mov byte [ebp - 0x1e5], 0
lea eax, [ebp - 0x1e5]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
push eax
movzx eax, byte [ebx + 0x2c]
push eax
call fcn.004bb611
test al, al
je 0x4bbb00
push 0
lea edx, [ebp - 0x108]
lea ecx, [ebp - 0x40]
call fcn.00426ce7
sub esp, 0x14
mov byte [ebp - 4], 4
mov esi, eax
push 6
pop ecx
mov edi, esp
push 0xce
push str.DownloadMgr::RealDownLoad
rep movsd dword es:[edi], dword [esi]
push str.__s__d___bNeedDown_begin_url_:__s
call fcn.0040a649
add esp, 0x24
lea ecx, [ebp - 0x40]
call fcn.0040b67e
lea ecx, [ebp - 0x1a4]
call fcn.0040ba47
push 0x170
mov byte [ebp - 4], 5
call fcn.0059a7c1
pop ecx
mov dword [ebp - 0x1f4], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040b6b1
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.0040b8cb
sub esp, 0x18
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.0040b155
lea ecx, [ebp - 0x40]
call fcn.00435a2c
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0040b9f4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00404812
cmp dword [ebp - 0xf8], 0
je 0x4bbaab
push esi
call fcn.0040bde3
test eax, eax
jne 0x4bbaab
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bbaab
push 0xd4
push str.DownloadMgr::RealDownLoad
push str.__s__d___download_ok
call fcn.0040a649
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x70]
and dword [ebp - 0x44], 0
lea ecx, [ebp - 0x58]
add esp, 0xc
push eax
call fcn.0040b155
mov byte [ebp - 4], 8
cmp byte [ebx + 0x2c], 0
je 0x4bba8c
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.004257c4
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
mov edx, eax
mov ecx, str.0aa4efce
call fcn.00416a1a
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae ecx, dword [ebp - 0x58]
call fcn.0041e514
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00404812
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4bbad3
cmp dword [ebp - 0x12c], 2
je 0x4bbad3
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 1
push edx
call dword [eax]
jmp 0x4bbad3
cmp dword [ebp - 0x12c], 2
je 0x4bbadb
push str.https:__dd.browser.360.cn_static_a_1289.1848.gif__referer
lea ecx, [ebp - 0x58]
call fcn.0040b0d5
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x58]
mov ecx, dword [ebp - 0x130]
call fcn.004d479e
lea ecx, [ebp - 0x58]
call fcn.0040b67e
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 3
call fcn.0040ba62
mov edi, dword [ebp - 0x1ec]
mov esi, 0xfde9
cmp dword [ebp - 0x12c], 2
jne 0x4bbf17
cmp dword [ebp - 0x128], 2
jne 0x4bbb36
call fcn.0045f780
test eax, eax
je 0x4bbb36
push 0xf3
push str.DownloadMgr::RealDownLoad
push str.__s__d___RenderEngineHelper::CheckEngineAsserts_fail
call fcn.0040a649
add esp, 0xc
push esi
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x40]
call fcn.00426ce7
push eax
lea edx, [ebx + 0x30]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.0042adab
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
call fcn.0040b67e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bbb8d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x633b6c
call fcn.005c2f90
pop ecx
push eax
push 0x633b6c
lea ecx, [ebp - 0x28]
call fcn.0040b220
push esi
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0xa0]
call fcn.00426ce7
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4bbbc7
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b220
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
call fcn.0040b67e
push esi
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x58]
call fcn.00426ce7
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push 0xfd
push str.DownloadMgr::RealDownLoad
push str.__s__d___video_path___s__md5___s
call fcn.0040a649
add esp, 0x18
lea eax, [ebp - 0x1e5]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.004bb611
test al, al
je 0x4bbeef
push 0x101
push str.DownloadMgr::RealDownLoad
push str.__s__d___video_bVideoNeedDown_begin
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0x1e4]
call fcn.0040ba47
push 0x170
mov byte [ebp - 4], 0x10
call fcn.0059a7c1
pop ecx
mov dword [ebp - 0x1f8], eax
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.0040b6b1
mov esi, eax
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0xd8]
mov ecx, esi
push eax
call fcn.0040b8cb
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.0040b155
lea ecx, [ebp - 0xa0]
call fcn.00435a2c
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x12
call fcn.0040b9f4
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x10
call fcn.00404812
cmp dword [0x6decc8], 0
mov ecx, esi
je 0x4bbce6
push 0x78
jmp 0x4bbceb
push 0x258
call fcn.0040b8d4
push ecx
mov ecx, esi
call fcn.0040ba13
push dword [ebp - 0x130]
call fcn.0040ba03
push esi
call fcn.0040bde3
test eax, eax
jne 0x4bbd5c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bbd5c
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
cmovae edx, dword [ebp - 0x28]
call fcn.004236f2
lea ecx, [ebp - 0xc0]
or edi, 1
push ecx
push eax
mov dword [ebp - 0x1ec], edi
call fcn.00423e8e
mov byte [ebp - 0x1e6], 1
pop ecx
pop ecx
test al, al
jne 0x4bbd63
mov byte [ebp - 0x1e6], 0
mov eax, dword [ebp - 0x1ec]
test al, 1
je 0x4bbd81
and eax, 0xfffffffe
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x1ec], eax
call fcn.00404812
cmp byte [ebp - 0x1e6], 0
je 0x4bbdee
push 0x112
push str.DownloadMgr::RealDownLoad
push str.__s__d___video_download_ok
call fcn.0040a649
add esp, 0xc
cmp byte [ebp - 0x1e5], 0
je 0x4bbdd1
push str.https:__dd.browser.360.cn_static_a_1289.9719.gif__referer
lea ecx, [ebp - 0x40]
call fcn.0040b0d5
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 0x13
xor ecx, ecx
call fcn.004d479e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.0040b67e
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4bbedd
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 1
push edx
call dword [eax]
jmp 0x4bbedd
push str.https:__dd.browser.360.cn_static_a_1289.1848.gif__referer
lea ecx, [ebp - 0x40]
call fcn.0040b0d5
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x40]
mov ecx, dword [ebp - 0x130]
call fcn.004d479e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.0040b67e
cmp byte [ebp - 0x1e5], 0
je 0x4bbe4a
push str.https:__dd.browser.360.cn_static_a_1289.9719.gif__referer
lea ecx, [ebp - 0x40]
call fcn.0040b0d5
xor ecx, ecx
mov byte [ebp - 4], 0x15
lea edx, [ebp - 0x40]
inc ecx
call fcn.004d479e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.0040b67e
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4bbe5e
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 0
push edx
call dword [eax]
mov eax, dword [ebp - 0x128]
test eax, eax
jne 0x4bbe8e
push str.https:__dd.browser.360.cn_static_a_1289.5827.gif__referer3
lea ecx, [ebp - 0x40]
call fcn.0040b0d5
mov byte [ebp - 4], 0x16
push 1
push 1
mov dl, 1
lea ecx, [ebp - 0x40]
call fcn.004ce396
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
jmp 0x4bbed8
cmp eax, 1
jne 0x4bbea6
push str.https:__dd.browser.360.cn_static_a_1289.6140.gif__referer3
lea ecx, [ebp - 0x40]
call fcn.0040b0d5
mov byte [ebp - 4], 0x17
jmp 0x4bbe79
cmp eax, 2
jne 0x4bbedd
push str.https:__dd.browser.360.cn_static_a_1289.6140.gif__referer13
lea ecx, [ebp - 0x164]
call fcn.0040b0d5
push 1
push 1
mov dl, 1
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x164]
call fcn.004ce396
pop ecx
pop ecx
lea ecx, [ebp - 0x164]
call fcn.0040b67e
lea ecx, [ebp - 0x1e4]
call fcn.0040ba62
mov esi, 0xfde9
jmp 0x4bbf03
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4bbf03
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 1
push edx
call dword [eax]
lea ecx, [ebp - 0x58]
call fcn.0040b67e
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040b67e
lea eax, [ebp - 0x134]
mov ecx, ebx
push eax
call fcn.004bc173
mov ecx, ebx
call sym.360huabao.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
push 0x139
push str.DownloadMgr::RealDownLoad
push str.__s__d___lpdownload_DelPopDownLoadItem__lpdownload_size__d
call fcn.0040a649
add esp, 0x10
lea ecx, [ebp - 0x88]
call fcn.0040b67e
lea ecx, [ebp - 0x70]
call fcn.0040b67e
mov edi, dword [ebp - 0x1ec]
jmp 0x4bbf76
push 0x13d
push str.DownloadMgr::RealDownLoad
push str.__s__d___has_no_download_item
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0x14c]
call fcn.0040b67e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004bb463
push 0xc8
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4bb7e0
xor eax, eax
call fcn.0059bb81
ret