Function at 0x489d60
Capabilities:
Check http status code
Delete file
Get file size

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x684b06
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3e0
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x320], esi
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x328], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x32c], eax
mov dword [ebp - 4], 1
call fcn.00489520
test al, al
je 0x489e0e
mov ecx, dword [0x7aa7c8]
test ecx, ecx
je 0x489e0e
mov eax, dword [ebp - 0x32c]
mov esi, eax
cmp dword [eax + 0x14], 8
jb 0x489de8
mov esi, dword [eax]
mov eax, dword [ebp - 0x328]
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x489df8
mov edx, dword [eax]
mov eax, dword [ecx]
push esi
push edx
push str.Downloading__s_s
push ecx
call dword [eax + 4]
mov esi, dword [ebp - 0x320]
add esp, 0x10
mov dword [esi + 0x7c], 0
mov eax, edi
mov dword [esi + 0x84], 0
cmp dword [edi + 0x14], 8
jb 0x489e29
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x324], 0
nop word [eax + eax]
call fcn.00489520
test al, al
je 0x489e67
mov ecx, dword [0x7aa7c8]
test ecx, ecx
je 0x489e67
push dword [ebp - 0x324]
mov eax, dword [ecx]
push str.SetupManager::Attempt:__d
push ecx
call dword [eax + 4]
add esp, 0xc
push 0xffffffffffffffff
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x88]
push dword [esi + 0x24]
mov byte [ebp - 0x319], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x319], 0
jne 0x48a55f
cmp dword [edi + 0x10], 0
je 0x48a550
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x489eb4
mov eax, dword [edi]
push 0x80
push 4
push 0
push 0x40000000
push eax
lea ecx, [esi + 0x78]
call fcn.004647e0
test eax, eax
je 0x48a550
push 0
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x48a003
mov eax, dword [ebp - 0x320]
push 2
push 0
push 0
push dword [eax + 0x78]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 8
lea ecx, [ebp - 0x3f0]
call fcn.00451990
push 0x7735e4
push ecx
push esi
push ecx
lea eax, [ebp - 0x3f0]
mov byte [ebp - 4], 4
push str.bytes
push eax
call fcn.00454a20
add esp, 0xc
mov ecx, eax
call fcn.00452040
add esp, 4
push eax
call fcn.00454a20
add esp, 8
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x3ec]
push eax
call fcn.004535d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
push 5
push str.Range
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.0044fad0
movups xmm0, xmmword [ebp - 0x60]
mov byte [ebp - 0x60], 0
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 4], 6
lea eax, [ebp - 0x48]
push dword [ebp - 0x328]
push eax
push ecx
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebx + 0x20]
call fcn.0048d2f0
lea ecx, [ebp - 0x48]
call fcn.00467250
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x489ff4
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x489fea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48a5ea
push edx
push ecx
call fcn.00611704
add esp, 8
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 1
call fcn.00451370
cmp byte [ebx + 0x14], 0
lea ecx, [ebp - 0x238]
mov eax, 0xbb8
mov esi, 0x7530
cmovne esi, eax
call fcn.005f8020
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x34c], esp
push dword [ebp - 0x32c]
call fcn.00458270
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
push dword [ebp - 0x328]
call fcn.00458270
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.0046c190
add esp, 0x30
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60]
call fcn.0046b0e0
mov dword [ebp - 0x34], vtable.cpr::StringHolder_class_cpr::Url_.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x34], vtable.cpr::Url.0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x238]
call fcn.005f9070
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x48a0f3
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48a0e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48a5ea
push edx
push ecx
call fcn.00611704
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x48a13d
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48a133
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48a5ea
push edx
push ecx
call fcn.00611704
add esp, 8
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 7
call fcn.00453390
lea eax, [ebx + 0x20]
push eax
lea ecx, [ebp - 0x238]
call fcn.005f8c10
lea eax, [ebp - 0x348]
mov dword [ebp - 0x348], esi
push eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x344], 0
call fcn.005f91a0
lea eax, [ebp - 0x338]
mov dword [ebp - 0x338], 0x32
push eax
lea ecx, [ebp - 0x238]
mov word [ebp - 0x334], 1
mov byte [ebp - 0x332], 7
call fcn.005f90e0
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x238]
call fcn.005f8a80
mov eax, dword [ebp - 0x340]
test eax, eax
jne 0x48a1da
mov byte [ebp - 4], 0xc
jmp 0x48a206
push 0
push 0x40
push dword [eax]
call fcn.005b0b60
mov eax, dword [ebp - 0x340]
add esp, 0xc
push 0x476de0
push 0x4e8c
push dword [eax]
call fcn.005b0b60
add esp, 0xc
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x33c]
test esi, esi
je 0x48a231
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x48a231
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x48a231
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x320]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], vtable.std::_Func_impl_no_alloc_class__lambda_b35c7c66ca22c784f71ce68e7c716fbc___bool__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____int_.0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x64], 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xf
call fcn.0048d490
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x48a299
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x48a2b9
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x238]
call fcn.005f8cc0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x48a2ee
mov edx, dword [ecx]
lea eax, [ebp - 0x88]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 7
call fcn.00489520
test al, al
je 0x48a313
mov ecx, dword [0x7aa7c8]
test ecx, ecx
je 0x48a313
mov eax, dword [ecx]
push str.SetupManager::TryDownload
push ecx
call dword [eax + 4]
add esp, 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], vtable.std::_Func_impl_no_alloc_class__lambda_72a21ae790deff9553a64c6478a23c9a___bool__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____int_.0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x64], 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x15
call fcn.0048d460
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x48a375
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov byte [ebp - 4], 0x17
test ecx, ecx
je 0x48a395
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x238]
call fcn.005f8970
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x48a3d8
mov edx, dword [ecx]
lea eax, [ebp - 0x88]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x320]
mov byte [ebp - 4], 0x1a
mov esi, dword [ebp - 0x310]
mov eax, dword [ecx + 0x84]
test eax, eax
je 0x48a408
push 0
push eax
push 0
push 0
push dword [ecx + 0x78]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov ecx, dword [ebp - 0x320]
mov eax, dword [ecx + 0x78]
cmp eax, 0xffffffff
je 0x48a424
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x320]
mov dword [eax + 0x78], 0xffffffff
call fcn.00489520
test al, al
je 0x48a446
mov ecx, dword [0x7aa7c8]
test ecx, ecx
je 0x48a446
mov eax, dword [ecx]
push esi
push str.SetupManager::EndDownload_status__d
push ecx
call dword [eax + 4]
add esp, 0xc
mov eax, dword [ebp - 0x320]
cmp dword [eax + 0x84], 0
je 0x48a45d
cmp esi, 0xc8
je 0x48a465
cmp esi, 0xce
jne 0x48a4bc
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x48a51b
and eax, 0xfffffffe
lea ecx, [ebx + 0x30]
push edi
push ecx
mov eax, dword [eax + 4]
call eax
add esp, 8
test al, al
jne 0x48a51b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48a492
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00489520
test al, al
je 0x48a4e4
mov ecx, dword [0x7aa7c8]
test ecx, ecx
je 0x48a4e4
mov eax, dword [ecx]
push str.SetupManager::signatureChecker_return_false
push ecx
call dword [eax + 4]
add esp, 8
jmp 0x48a4e4
call fcn.00489520
test al, al
je 0x48a4de
mov ecx, dword [0x7aa7c8]
test ecx, ecx
je 0x48a4de
mov eax, dword [ecx]
push esi
push str.Error_downloading_file:__d
push ecx
call dword [eax + 4]
add esp, 0xc
cmp byte [ebx + 0x14], 0
jne 0x48a53a
lea ecx, [ebp - 0x318]
call fcn.00467350
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.00466d40
mov eax, dword [ebp - 0x324]
inc eax
mov dword [ebp - 0x324], eax
cmp eax, 4
je 0x48a550
mov esi, dword [ebp - 0x320]
jmp 0x489e40
lea ecx, [ebp - 0x318]
call fcn.00467350
lea ecx, [ebp - 0x238]
call fcn.00466d40
mov byte [ebp - 0x319], 1
jmp 0x48a566
lea ecx, [ebp - 0x318]
call fcn.00467350
lea ecx, [ebp - 0x238]
call fcn.00466d40
cmp dword [edi + 0x14], 8
jb 0x48a558
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x319], 0
mov byte [ebp - 4], 0x1f
lea ecx, [ebx + 0x20]
mov esi, dword [ebx + 0x20]
push dword [esi + 4]
call fcn.00469220
mov eax, dword [ebx + 0x20]
push 0x40
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x20]
mov dword [eax], esi
mov eax, dword [ebx + 0x20]
mov dword [eax + 8], esi
push dword [ebx + 0x20]
mov dword [ebx + 0x24], 0
call fcn.00611704
add esp, 8
mov dword [ebp - 4], 0x20
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x48a5c4
test al, 1
jne 0x48a5c4
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x48a5c4
lea ecx, [ebx + 0x30]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov al, byte [ebp - 0x319]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x40
call fcn.00655e38
int3