Function at 0x4b276e
Capabilities:
Check if file exists

Disassembly:
push 0x1ec
mov eax, 0x5e7d32
call fcn.00592017
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x1ec], edi
test ebx, ebx
je 0x4b2f70
push 0xc8
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b2f70
mov esi, 0xfde9
cmp eax, 0x102
jne 0x4b2f5a
mov ecx, ebx
call fcn.004b3417
test al, al
je 0x4b2f5a
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.004b2272
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14c]
push 0x6284b4
call fcn.0040b0d5
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.004b332b
test al, al
je 0x4b2f29
cmp dword [ebp - 0x12c], 2
jne 0x4b2835
mov ecx, dword [ebp - 0x130]
xor edx, edx
push 0
call fcn.004cae87
pop ecx
push esi
lea edx, [ebp - 0xf0]
lea ecx, [ebp - 0x40]
call fcn.00426802
pop ecx
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040b0ac
lea ecx, [ebp - 0x40]
call fcn.0040b67b
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.00426802
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.004b2607
test al, al
je 0x4b2aca
push 0
lea edx, [ebp - 0x108]
lea ecx, [ebp - 0x40]
call fcn.00426802
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.0040b67b
lea ecx, [ebp - 0x1a4]
call fcn.0040ba44
push 0x170
mov byte [ebp - 4], 5
call fcn.00590c07
pop ecx
mov dword [ebp - 0x1f4], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040b6ae
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.0040b8c8
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.00430a1c
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0040b9f1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00404812
cmp dword [ebp - 0xf8], 0
je 0x4b2a75
push esi
call fcn.0040bde0
test eax, eax
jne 0x4b2a75
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 0x4b2a75
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 0x4b2a56
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.0042530f
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
mov edx, eax
mov ecx, str.0aa4efce
call fcn.004167ee
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.0041e2e8
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 0x4b2a9d
cmp dword [ebp - 0x12c], 2
je 0x4b2a9d
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 1
push edx
call dword [eax]
jmp 0x4b2a9d
cmp dword [ebp - 0x12c], 2
je 0x4b2aa5
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.004cad9f
lea ecx, [ebp - 0x58]
call fcn.0040b67b
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 3
call fcn.0040ba5f
mov edi, dword [ebp - 0x1ec]
mov esi, 0xfde9
cmp dword [ebp - 0x12c], 2
jne 0x4b2ee1
cmp dword [ebp - 0x128], 2
jne 0x4b2b00
call fcn.00459e4c
test eax, eax
je 0x4b2b00
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.00426802
push eax
lea edx, [ebx + 0x30]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.004296ce
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
call fcn.0040b67b
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 0x4b2b57
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 0x628a24
call fcn.005b93d0
pop ecx
push eax
push 0x628a24
lea ecx, [ebp - 0x28]
call fcn.0040b220
push esi
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0xa0]
call fcn.00426802
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4b2b91
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.0040b67b
push esi
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x58]
call fcn.00426802
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.004b2607
test al, al
je 0x4b2eb9
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.0040ba44
push 0x170
mov byte [ebp - 4], 0x10
call fcn.00590c07
pop ecx
mov dword [ebp - 0x1f8], eax
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.0040b6ae
mov esi, eax
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0xd8]
mov ecx, esi
push eax
call fcn.0040b8c8
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.00430a1c
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x12
call fcn.0040b9f1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x10
call fcn.00404812
cmp dword [0x6cfc04], 0
mov ecx, esi
je 0x4b2cb0
push 0x78
jmp 0x4b2cb5
push 0x258
call fcn.0040b8d1
push ecx
mov ecx, esi
call fcn.0040ba10
push dword [ebp - 0x130]
call fcn.0040ba00
push esi
call fcn.0040bde0
test eax, eax
jne 0x4b2d26
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 0x4b2d26
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
cmovae edx, dword [ebp - 0x28]
call fcn.0042348d
lea ecx, [ebp - 0xc0]
or edi, 1
push ecx
push eax
mov dword [ebp - 0x1ec], edi
call fcn.00423c0c
mov byte [ebp - 0x1e6], 1
pop ecx
pop ecx
test al, al
jne 0x4b2d2d
mov byte [ebp - 0x1e6], 0
mov eax, dword [ebp - 0x1ec]
test al, 1
je 0x4b2d4b
and eax, 0xfffffffe
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x1ec], eax
call fcn.00404812
cmp byte [ebp - 0x1e6], 0
je 0x4b2db8
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 0x4b2d9b
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.004cad9f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.0040b67b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4b2ea7
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 1
push edx
call dword [eax]
jmp 0x4b2ea7
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.004cad9f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.0040b67b
cmp byte [ebp - 0x1e5], 0
je 0x4b2e14
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.004cad9f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.0040b67b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4b2e28
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 0
push edx
call dword [eax]
mov eax, dword [ebp - 0x128]
test eax, eax
jne 0x4b2e58
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.004c4bab
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
jmp 0x4b2ea2
cmp eax, 1
jne 0x4b2e70
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 0x4b2e43
cmp eax, 2
jne 0x4b2ea7
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.004c4bab
pop ecx
pop ecx
lea ecx, [ebp - 0x164]
call fcn.0040b67b
lea ecx, [ebp - 0x1e4]
call fcn.0040ba5f
mov esi, 0xfde9
jmp 0x4b2ecd
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4b2ecd
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push 1
push edx
call dword [eax]
lea ecx, [ebp - 0x58]
call fcn.0040b67b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040b67b
lea eax, [ebp - 0x134]
mov ecx, ebx
push eax
call fcn.004b313d
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.0040b67b
lea ecx, [ebp - 0x70]
call fcn.0040b67b
mov edi, dword [ebp - 0x1ec]
jmp 0x4b2f40
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.0040b67b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004b2459
push 0xc8
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4b27aa
xor eax, eax
call fcn.00591fc1
ret