Function at 0x4e5ab0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500829
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x19188
call fcn.004c4a60
mov eax, dword [0x54eb90]
xor eax, ebp
mov dword [ebp - 0xa0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call fcn.004038f0
mov dword [ebp - 0x5c], eax
push 0xa
lea ecx, [ebp - 0x50]
call fcn.004a0846
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x190a8], esp
lea edx, [ebp + 8]
push edx
call fcn.00402120
mov dword [ebp - 0x19108], eax
call fcn.004e1bd0
add esp, 8
mov dword [ebp - 0x1910c], eax
mov eax, dword [ebp - 0x1910c]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 6
je 0x4e5c33
lea ecx, [ebp + 8]
push ecx
push str._DownloadFile__Invalid_arguments__nArg_6_:
lea edx, [ebp - 0x190bc]
push edx
call fcn.004042e0
add esp, 0xc
mov dword [ebp - 0x19110], eax
mov eax, dword [ebp - 0x19110]
mov dword [ebp - 0x19114], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x19114]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4e5b91
mov dword [ebp - 0x19118], 0
jmp 0x4e5bf5
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x4e5bb6
mov dword [ebp - 0x1911c], 0
jmp 0x4e5be9
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.004c5300
mov dword [ebp - 0x19120], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x19120]
push edx
call fcn.00407890
mov dword [ebp - 0x1911c], eax
mov eax, dword [ebp - 0x1911c]
mov dword [ebp - 0x19118], eax
mov ecx, dword [ebp - 0x19118]
mov dword [ebp - 0x190b8], ecx
lea edx, [ebp - 0x190b8]
push edx
lea ecx, [ebp - 0x190b4]
call fcn.004bdd7c
push 0x52b83c
lea eax, [ebp - 0x190b4]
push eax
call fcn.004c5561
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x190bc]
call fcn.00402e80
push 0
lea ecx, [ebp - 0x50]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x50]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x58]
call fcn.00402120
mov byte [ebp - 4], 3
push 1
lea ecx, [ebp - 0x50]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x50]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x34]
call fcn.00402120
mov byte [ebp - 4], 4
push 2
lea ecx, [ebp - 0x50]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x50]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x30]
call fcn.00402120
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
call fcn.00404430
movzx ecx, al
test ecx, ecx
jne 0x4e5cb5
lea ecx, [ebp - 0x30]
call fcn.00404430
movzx edx, al
test edx, edx
je 0x4e5da5
mov dword [ebp - 0x20], str._DownloadFile__Arguments_Url_Or_Path_Empty__
cmp dword [ebp - 0x20], 0
jne 0x4e5cce
mov dword [ebp - 0x19124], 0
jmp 0x4e5d32
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x4e5cf3
mov dword [ebp - 0x19128], 0
jmp 0x4e5d26
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.004c5300
mov dword [ebp - 0x1912c], esp
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x14]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1912c]
push ecx
call fcn.00407890
mov dword [ebp - 0x19128], eax
mov edx, dword [ebp - 0x19128]
mov dword [ebp - 0x19124], edx
mov eax, dword [ebp - 0x19124]
mov dword [ebp - 0x190cc], eax
lea ecx, [ebp - 0x190cc]
push ecx
lea ecx, [ebp - 0x190c8]
call fcn.004bdd7c
push 0x52b83c
lea edx, [ebp - 0x190c8]
push edx
call fcn.004c5561
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00402e80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00402e80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00402e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004a0970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402e80
jmp 0x4e645e
push 3
lea ecx, [ebp - 0x50]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x50]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x54]
call fcn.00402120
mov byte [ebp - 4], 6
push 4
lea ecx, [ebp - 0x50]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x50]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x60]
call fcn.00402120
mov byte [ebp - 4], 7
push 5
lea ecx, [ebp - 0x50]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x50]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x18]
call fcn.00402120
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x54]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.004bfdd2
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x60]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.004bfdd2
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], 0
jl 0x4e5e45
cmp dword [ebp - 0x28], 0
jl 0x4e5e45
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
jns 0x4e5f59
mov dword [ebp - 0x20], str._DownloadFile__Arguments_Start_Or_End_Pos_Invalid__
cmp dword [ebp - 0x20], 0
jne 0x4e5e5e
mov dword [ebp - 0x19130], 0
jmp 0x4e5ec2
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x4e5e83
mov dword [ebp - 0x19134], 0
jmp 0x4e5eb6
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.004c5300
mov dword [ebp - 0x19138], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x19138]
push edx
call fcn.00407890
mov dword [ebp - 0x19134], eax
mov eax, dword [ebp - 0x19134]
mov dword [ebp - 0x19130], eax
mov ecx, dword [ebp - 0x19130]
mov dword [ebp - 0x190dc], ecx
lea edx, [ebp - 0x190dc]
push edx
lea ecx, [ebp - 0x190d8]
call fcn.004bdd7c
push 0x52b83c
lea eax, [ebp - 0x190d8]
push eax
call fcn.004c5561
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
call fcn.00402e80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.00402e80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.00402e80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00402e80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00402e80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00402e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004a0970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402e80
jmp 0x4e645e
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.004bfdd2
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 9
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x7c]
call fcn.004ab77c
mov dword [ebp - 0x1913c], eax
mov byte [ebp - 4], 0xa
push 0
push 0
push 2
push 1
lea ecx, [ebp - 0x34]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x7c]
call fcn.004ac0de
mov dword [ebp - 0x19140], eax
mov ecx, dword [ebp - 0x19140]
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x80], 0
je 0x4e62df
lea ecx, [ebp - 0x94]
call fcn.004a0f0c
mov dword [ebp - 0x19144], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x30]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e5fff
lea ecx, [ebp - 0x30]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x80]
call fcn.00408b40
mov dword [ebp - 0x1914c], eax
mov dword [ebp - 0x19148], edx
mov edx, dword [ebp - 0x1914c]
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 0x64
jae 0x4e603c
cmp dword [ebp - 0x24], 0
jle 0x4e603c
mov eax, dword [ebp - 0x24]
shl eax, 0xa
mov dword [ebp - 0x84], eax
jmp 0x4e604f
cmp dword [ebp - 0x84], 0x64
jae 0x4e604f
mov dword [ebp - 0x84], 0xa00000
mov ecx, dword [ebp - 0x80]
call fcn.00407ac0
push 0x51a1b0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x190e4]
push edx
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x19150], eax
mov eax, dword [ebp - 0x19150]
mov dword [ebp - 0x19154], eax
mov byte [ebp - 4], 0xc
push 0
push 0x1001
mov ecx, dword [ebp - 0x19154]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x94]
call fcn.004a1395
mov dword [ebp - 0x19158], eax
mov ecx, dword [ebp - 0x19158]
mov dword [ebp - 0x190e0], ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x190e4]
call fcn.00402e80
cmp dword [ebp - 0x190e0], 0
je 0x4e62d0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
push ecx
mov edx, esp
mov dword [ebp - 0x190e8], esp
lea eax, [ebp - 0x34]
push eax
push str.DownloadFile_Start_:
push edx
call fcn.004042e0
add esp, 0xc
mov dword [ebp - 0x1915c], eax
mov ecx, 0x553e48
call fcn.004f2090
lea ecx, [ebp - 0x58]
call fcn.004043f0
mov dword [ebp - 0x19160], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x19160]
push edx
push 0x7e7
mov eax, dword [0x553e14]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x18fff
lea ecx, [ebp - 0x190a0]
push ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x80]
mov edx, dword [eax + 0x34]
call edx
mov dword [ebp - 0x19164], eax
mov eax, dword [ebp - 0x19164]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jbe 0x4e6240
mov ecx, dword [ebp - 0x9c]
add ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x98]
push edx
lea eax, [ebp - 0x190a0]
push eax
lea ecx, [ebp - 0x94]
call fcn.004a0c42
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x1916c], ecx
mov dword [ebp - 0x19168], 0
fild qword [ebp - 0x1916c]
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x19174], edx
mov dword [ebp - 0x19170], 0
fild qword [ebp - 0x19174]
fmul qword [0x51e130]
fdivrp st(1)
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x19178], eax
fild dword [ebp - 0x19178]
fmulp st(1)
call fcn.004c7480
mov dword [ebp - 0x190a4], eax
mov ecx, dword [ebp - 0x190a4]
add ecx, dword [ebp - 0x2c]
cmp ecx, 0x64
jge 0x4e623b
lea ecx, [ebp - 0x58]
call fcn.004043f0
mov dword [ebp - 0x1917c], eax
mov edx, dword [ebp - 0x190a4]
add edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x1917c]
push eax
push 0x7e7
mov ecx, dword [0x553e14]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4e613a
mov edx, dword [ebp - 0x80]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x80]
mov edx, dword [eax + 0x4c]
call edx
lea ecx, [ebp - 0x94]
call fcn.004a0ea6
push str..tmp
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x190ec]
push ecx
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x19180], eax
lea ecx, [ebp - 0x30]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x19180]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x190ec]
call fcn.00402e80
cmp dword [ebp - 0x1c], 0
je 0x4e62d0
push ecx
mov edx, esp
mov dword [ebp - 0x190f0], esp
lea eax, [ebp - 0x30]
push eax
push str.DownloadFile_Success_:
push edx
call fcn.004042e0
add esp, 0xc
mov dword [ebp - 0x19184], eax
mov ecx, 0x553e48
call fcn.004f2090
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x94]
call fcn.004a1025
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x7c]
call fcn.004abe36
jmp 0x4e62fa
mov dword [ebp - 4], 8
cmp dword [ebp - 0x1c], 0
jne 0x4e63fb
lea ecx, [ebp - 0x34]
push ecx
push str._DownloadFile__Download_File_Failed:
lea edx, [ebp - 0x19104]
push edx
call fcn.004042e0
add esp, 0xc
mov dword [ebp - 0x19188], eax
mov eax, dword [ebp - 0x19188]
mov dword [ebp - 0x1918c], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1918c]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4e6359
mov dword [ebp - 0x19190], 0
jmp 0x4e63bd
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x4e637e
mov dword [ebp - 0x19194], 0
jmp 0x4e63b1
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.004c5300
mov dword [ebp - 0x19198], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x19198]
push edx
call fcn.00407890
mov dword [ebp - 0x19194], eax
mov eax, dword [ebp - 0x19194]
mov dword [ebp - 0x19190], eax
mov ecx, dword [ebp - 0x19190]
mov dword [ebp - 0x19100], ecx
lea edx, [ebp - 0x19100]
push edx
lea ecx, [ebp - 0x190fc]
call fcn.004bdd7c
push 0x52b83c
lea eax, [ebp - 0x190fc]
push eax
call fcn.004c5561
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x19104]
call fcn.00402e80
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
call fcn.00402e80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.00402e80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.00402e80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00402e80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00402e80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00402e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004a0970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402e80
lea esp, [ebp - 0x191a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xa0]
xor ecx, ebp
call fcn.004bd72f
mov esp, ebp
pop ebp
ret