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 0x6847b6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3d8
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 edi, ecx
mov dword [ebp - 0x318], edi
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x1c]
mov dword [ebp - 0x330], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x31c], esi
mov dword [ebp - 4], 1
call fcn.00489520
test al, al
je 0x489e14
mov ecx, dword [0x7aa7a8]
test ecx, ecx
je 0x489e14
mov eax, dword [ebp - 0x32c]
mov esi, eax
cmp dword [eax + 0x14], 8
jb 0x489dee
mov esi, dword [eax]
mov eax, dword [ebp - 0x330]
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x489dfe
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 - 0x31c]
add esp, 0x10
mov dword [edi + 0x7c], 0
mov eax, esi
mov dword [edi + 0x84], 0
cmp dword [esi + 0x14], 8
jb 0x489e2f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x328], 0
call fcn.00489520
test al, al
je 0x489e67
mov ecx, dword [0x7aa7a8]
test ecx, ecx
je 0x489e67
push dword [ebp - 0x328]
mov eax, dword [ecx]
push str.SetupManager::Attempt:__d
push ecx
call dword [eax + 4]
add esp, 0xc
push 0xffffffffffffffff
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [edi + 0x88]
push dword [edi + 0x24]
mov byte [ebp - 0x311], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x311], 0
jne 0x48a682
cmp dword [esi + 0x10], 0
je 0x48a673
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x489eb4
mov eax, dword [esi]
push 0x80
push 4
push 0
push 0x40000000
lea ecx, [edi + 0x78]
push eax
mov dword [ebp - 0x320], ecx
call fcn.004647e0
test eax, eax
je 0x48a673
push 0
push dword [edi + 0x78]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x324], esi
test esi, esi
je 0x48a0e9
mov eax, dword [ebp - 0x320]
push 2
push 0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 8
lea ecx, [ebp - 0x3e8]
call fcn.00451990
push 0x773694
push ecx
push esi
push ecx
lea eax, [ebp - 0x3e8]
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
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 5
push str.Range
call fcn.0044fad0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x3e4]
call fcn.004535d0
mov byte [ebp - 4], 6
mov esi, dword [ebx + 0x20]
mov edi, dword [esi + 4]
cmp byte [edi + 0xd], 0
jne 0x489fcc
lea eax, [ebp - 0x58]
push eax
lea eax, [edi + 0x10]
push eax
lea ecx, [ebx + 0x20]
call fcn.005f9b60
test al, al
je 0x489fa9
mov edi, dword [edi + 8]
jmp 0x489fad
mov esi, edi
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x489f90
cmp esi, dword [ebx + 0x20]
je 0x489fcc
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebx + 0x20]
call fcn.005f9b60
test al, al
je 0x48a001
lea eax, [ebp - 0x58]
push ecx
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x320]
push eax
push ecx
lea ecx, [ebx + 0x20]
call fcn.0048d950
push eax
add eax, 0x10
lea ecx, [ebx + 0x20]
push eax
push esi
lea eax, [ebp - 0x344]
push eax
call fcn.00469f80
mov esi, dword [ebp - 0x344]
add esi, 0x28
lea eax, [ebp - 0x88]
cmp esi, eax
je 0x48a041
mov ecx, esi
call fcn.0044fa30
movups xmm0, xmmword [ebp - 0x88]
mov eax, 0xf
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x88], 0
jmp 0x48a044
mov eax, dword [ebp - 0x74]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x48a07e
mov ecx, dword [ebp - 0x88]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x48a074
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48a70d
push edx
push ecx
call fcn.006113da
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp edx, 0x10
jb 0x48a0cb
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48a0c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48a70d
push edx
push ecx
call fcn.006113da
add esp, 8
mov edi, dword [ebp - 0x318]
lea ecx, [ebp - 0x3e8]
mov eax, dword [ebp - 0x324]
mov byte [ebp - 4], 1
mov dword [edi + 0x7c], eax
call fcn.00451370
cmp byte [ebx + 0x14], 0
lea ecx, [ebp - 0x310]
mov eax, 0xbb8
mov esi, 0x7530
cmovne esi, eax
call fcn.005f7cf0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x324], esp
push dword [ebp - 0x32c]
call fcn.00458270
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
push dword [ebp - 0x330]
call fcn.00458270
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 7
call fcn.0046c190
add esp, 0x30
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x58]
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 - 0x310]
call fcn.005f8d70
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x48a1dc
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48a1d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48a70d
push edx
push ecx
call fcn.006113da
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x48a226
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48a21c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48a70d
push edx
push ecx
call fcn.006113da
add esp, 8
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 7
call fcn.00453390
lea eax, [ebx + 0x20]
push eax
lea ecx, [ebp - 0x310]
call fcn.005f8910
lea eax, [ebp - 0x350]
mov dword [ebp - 0x350], esi
push eax
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x34c], 0
call fcn.005f88e0
lea eax, [ebp - 0x338]
mov dword [ebp - 0x338], 0x32
push eax
lea ecx, [ebp - 0x310]
mov word [ebp - 0x334], 1
mov byte [ebp - 0x332], 7
call fcn.005f8de0
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x310]
call fcn.005f8750
mov eax, dword [ebp - 0x340]
test eax, eax
jne 0x48a2c6
mov byte [ebp - 4], 0xc
jmp 0x48a2f2
push 0
push 0x40
push dword [eax]
call fcn.005b0850
mov eax, dword [ebp - 0x340]
add esp, 0xc
push 0x476de0
push 0x4e8c
push dword [eax]
call fcn.005b0850
add esp, 0xc
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x33c]
test esi, esi
je 0x48a31d
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x48a31d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x48a31d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], vtable.std::_Func_impl_no_alloc_class__lambda_86909da35f71938afcd98ecbfd38d530___bool__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____int_.0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x44], 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xf
call fcn.0048d460
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x48a379
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 0x48a399
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 - 0x70]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x310]
call fcn.005f89c0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x48a3c8
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
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 0x48a3ed
mov ecx, dword [0x7aa7a8]
test ecx, ecx
je 0x48a3ed
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], edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x44], 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x15
call fcn.0048d430
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x48a449
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 0x48a469
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 - 0x70]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x310]
call fcn.005f8640
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x48a4a6
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0x1a
mov eax, dword [edi + 0x84]
mov esi, dword [ebp - 0x160]
test eax, eax
je 0x48a4ca
push 0
push eax
push 0
push 0
push dword [edi + 0x78]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov eax, dword [edi + 0x78]
cmp eax, 0xffffffff
je 0x48a4e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x78], 0xffffffff
mov eax, dword [ebp - 0x318]
mov edi, dword [edi + 0x84]
mov edx, dword [ebp - 0x108]
cmp edi, dword [eax + 0x7c]
jne 0x48a4fb
test edx, edx
je 0x48a51e
mov ecx, dword [0x7aa7a8]
test ecx, ecx
je 0x48a51e
mov eax, dword [ecx]
push edx
mov edx, dword [ebp - 0x318]
push dword [edx + 0x7c]
push edi
push str.SetupManager::ErrorDownload_expected_size:__d__received_size:__d__with_error:__d
push ecx
call dword [eax + 4]
add esp, 0x14
call fcn.00489520
test al, al
je 0x48a540
mov ecx, dword [0x7aa7a8]
test ecx, ecx
je 0x48a540
mov eax, dword [ecx]
push esi
push str.SetupManager::EndDownload_status__d
push ecx
call dword [eax + 4]
add esp, 0xc
mov edi, dword [ebp - 0x318]
mov eax, dword [edi + 0x84]
cmp eax, dword [edi + 0x7c]
jne 0x48a5e9
cmp esi, 0xc8
je 0x48a569
cmp esi, 0xce
jne 0x48a5e9
cmp dword [ebp - 0x108], 0
jne 0x48a5e9
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x48a649
mov esi, dword [ebp - 0x31c]
lea ecx, [ebx + 0x30]
and eax, 0xfffffffe
push esi
push ecx
mov eax, dword [eax + 4]
call eax
add esp, 8
test al, al
jne 0x48a649
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48a5a5
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00489520
test al, al
je 0x48a5cd
mov ecx, dword [0x7aa7a8]
test ecx, ecx
je 0x48a5cd
mov eax, dword [ecx]
push str.SetupManager::signatureChecker_return_false
push ecx
call dword [eax + 4]
add esp, 8
lea ecx, [ebp - 0x168]
call fcn.00467350
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 1
call fcn.00466d40
jmp 0x48a631
call fcn.00489520
test al, al
je 0x48a60b
mov ecx, dword [0x7aa7a8]
test ecx, ecx
je 0x48a60b
mov eax, dword [ecx]
push esi
push str.Error_downloading_file:__d
push ecx
call dword [eax + 4]
add esp, 0xc
lea ecx, [ebp - 0x168]
call fcn.00467350
cmp byte [ebx + 0x14], 0
lea ecx, [ebp - 0x310]
jne 0x48a668
mov byte [ebp - 4], 1
call fcn.00466d40
mov esi, dword [ebp - 0x31c]
mov eax, dword [ebp - 0x328]
inc eax
mov dword [ebp - 0x328], eax
cmp eax, 4
jne 0x489e40
jmp 0x48a673
lea ecx, [ebp - 0x168]
call fcn.00467350
lea ecx, [ebp - 0x310]
call fcn.00466d40
mov byte [ebp - 0x311], 1
jmp 0x48a689
call fcn.00466d40
mov esi, dword [ebp - 0x31c]
cmp dword [esi + 0x14], 8
jb 0x48a67b
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x311], 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.006113da
add esp, 8
mov dword [ebp - 4], 0x20
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x48a6e7
test al, 1
jne 0x48a6e7
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x48a6e7
lea ecx, [ebx + 0x30]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov al, byte [ebp - 0x311]
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.00611399
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x40
call fcn.00655ae8
int3