Function at 0x4b3ea5
Capabilities:
Check if file exists

Disassembly:
push 0x1ec
mov eax, 0x5e9b02
call fcn.00593b07
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x1ec], edi
test ebx, ebx
je 0x4b46a7
push 0xc8
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b46a7
mov esi, 0xfde9
cmp eax, 0x102
jne 0x4b4691
mov ecx, ebx
call fcn.004b4b4e
test al, al
je 0x4b4691
mov ecx, ebx
call sym.360huabao.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
push 0xbd
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.004b39a9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14c]
push 0x62a4ac
call fcn.0040b0d5
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.004b4a62
test al, al
je 0x4b4660
cmp dword [ebp - 0x12c], 2
jne 0x4b3f6c
mov ecx, dword [ebp - 0x130]
xor edx, edx
push 0
call fcn.004cc94f
pop ecx
push esi
lea edx, [ebp - 0xf0]
lea ecx, [ebp - 0x40]
call fcn.00426805
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.00426805
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 0xc7
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.004b3d3e
test al, al
je 0x4b4201
push 0
lea edx, [ebp - 0x108]
lea ecx, [ebp - 0x40]
call fcn.00426805
sub esp, 0x14
mov byte [ebp - 4], 4
mov esi, eax
push 6
pop ecx
mov edi, esp
push 0xcc
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.005926f7
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.00430a1f
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 0x4b41ac
push esi
call fcn.0040bde3
test eax, eax
jne 0x4b41ac
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 0x4b41ac
push 0xd2
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 0x4b418d
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.00425312
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
mov edx, eax
mov ecx, str.0aa4efce
call fcn.004167f1
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.0041e2eb
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 0x4b41d4
cmp dword [ebp - 0x12c], 2
je 0x4b41d4
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 1
push edx
call dword [eax]
jmp 0x4b41d4
cmp dword [ebp - 0x12c], 2
je 0x4b41dc
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.004cc867
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 0x4b4618
cmp dword [ebp - 0x128], 2
jne 0x4b4237
call fcn.0045a6db
test eax, eax
je 0x4b4237
push 0xf1
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.00426805
push eax
lea edx, [ebx + 0x30]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.004296d1
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 0x4b428e
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 0x62aa1c
call fcn.005baec0
pop ecx
push eax
push 0x62aa1c
lea ecx, [ebp - 0x28]
call fcn.0040b220
push esi
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0xa0]
call fcn.00426805
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4b42c8
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.00426805
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 0xfb
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.004b3d3e
test al, al
je 0x4b45f0
push 0xff
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.005926f7
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.00430a1f
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 [0x6d2c58], 0
mov ecx, esi
je 0x4b43e7
push 0x78
jmp 0x4b43ec
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 0x4b445d
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 0x4b445d
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
cmovae edx, dword [ebp - 0x28]
call fcn.00423490
lea ecx, [ebp - 0xc0]
or edi, 1
push ecx
push eax
mov dword [ebp - 0x1ec], edi
call fcn.00423c0f
mov byte [ebp - 0x1e6], 1
pop ecx
pop ecx
test al, al
jne 0x4b4464
mov byte [ebp - 0x1e6], 0
mov eax, dword [ebp - 0x1ec]
test al, 1
je 0x4b4482
and eax, 0xfffffffe
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x1ec], eax
call fcn.00404812
cmp byte [ebp - 0x1e6], 0
je 0x4b44ef
push 0x110
push str.DownloadMgr::RealDownLoad
push str.__s__d___video_download_ok
call fcn.0040a649
add esp, 0xc
cmp byte [ebp - 0x1e5], 0
je 0x4b44d2
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.004cc867
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.0040b67e
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4b45de
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 1
push edx
call dword [eax]
jmp 0x4b45de
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.004cc867
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.0040b67e
cmp byte [ebp - 0x1e5], 0
je 0x4b454b
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.004cc867
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.0040b67e
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4b455f
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 0
push edx
call dword [eax]
mov eax, dword [ebp - 0x128]
test eax, eax
jne 0x4b458f
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.004c6673
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
jmp 0x4b45d9
cmp eax, 1
jne 0x4b45a7
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 0x4b457a
cmp eax, 2
jne 0x4b45de
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.004c6673
pop ecx
pop ecx
lea ecx, [ebp - 0x164]
call fcn.0040b67e
lea ecx, [ebp - 0x1e4]
call fcn.0040ba62
mov esi, 0xfde9
jmp 0x4b4604
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4b4604
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.004b4874
mov ecx, ebx
call sym.360huabao.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
push 0x137
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 0x4b4677
push 0x13b
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.004b3b90
push 0xc8
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4b3ee1
xor eax, eax
call fcn.00593ab1
ret