Function at 0x14005a480
Capabilities:
Read data from internet
Receive data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2100
call fcn.140068770
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2158], rbx
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x20f0], rax
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov qword [rsp + 0x40], r8
xor edi, edi
mov esi, edi
mov dword [rsp + 0x30], edi
mov r12d, dword [rcx + 0xe4]
mov ebp, dword [rcx + 0xe0]
mov r13d, edi
jmp 0x14005a4f2
xor edi, edi
lea r9, [rsp + 0x30]
mov r8d, 0x2000
lea rdx, [rsp + 0xf0]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14005a609
lea rdx, [0x140091978]
lea rcx, [rsp + 0x48]
call fcn.14000264c
nop
cmp qword [rbx + 0xe8], 0
je 0x14005a541
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140059fc0
nop
lea rcx, [rsp + 0x48]
call fcn.140001624
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005a55e
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14005a571
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbx + 0x38], rdi
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14005a584
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbx + 0x40], rdi
cmp dword [rbx + 0xf0], 0
jle 0x14005a77a
mov ecx, dword [rbx + 0xf8]
call qword [sym.imp.KERNEL32.dll_Sleep]
dec dword [rbx + 0xf0]
lea eax, [r12 + rsi]
mov r9d, ebp
sub r9d, esi
mov dword [rsp + 0x20], eax
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call fcn.14005a1d0
test al, al
je 0x14005a77a
lea rdx, str.InternetReadFile__use_next_attempt
lea rcx, [rsp + 0xc0]
call fcn.14000264c
nop
cmp qword [rbx + 0xe8], 0
je 0x14005a5f7
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call fcn.140059fc0
nop
lea rcx, [rsp + 0xc0]
call fcn.140001624
jmp 0x14005a4f2
mov r9d, dword [rsp + 0x30]
test r9d, r9d
jne 0x14005a6e7
cmp ebp, 0xffffffff
je 0x14005a773
cmp esi, ebp
je 0x14005a773
mov esi, edi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005a63d
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14005a650
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbx + 0x38], rdi
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14005a663
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbx + 0x40], rdi
cmp dword [rbx + 0xf0], 0
jle 0x14005a77a
mov ecx, dword [rbx + 0xf8]
call qword [sym.imp.KERNEL32.dll_Sleep]
dec dword [rbx + 0xf0]
test ebp, ebp
setne r8b
mov dword [rsp + 0x20], edi
mov r9d, r12d
xor edx, edx
mov rcx, rbx
call fcn.14005a1d0
test al, al
je 0x14005a77a
cmp dword [rbx + 0xb0], 0
jbe 0x14005a734
lea rdx, str.Downloaded_bytes_less_than_the_length_of_the_content__redownload_all
lea rcx, [rsp + 0x70]
call fcn.14000264c
nop
cmp qword [rbx + 0xe8], 0
je 0x14005a6d8
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140059fc0
nop
lea rcx, [rsp + 0x70]
call fcn.140001624
jmp 0x14005a4f2
mov rcx, qword [r14]
mov rax, qword [rcx]
lea r8d, [r12 + rsi]
lea rdx, [rsp + 0xf0]
call qword [rax + 0x18]
add esi, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ecx, eax
sub ecx, r13d
cmp ecx, 0x1f4
jbe 0x14005a4f0
mov rcx, qword [rbx + 0x100]
mov r9, qword [rcx]
mov r8d, esi
mov rdx, rbx
call qword [r9]
mov r13d, edi
jmp 0x14005a4f0
lea rdx, str.Downloaded_bytes_less_than_the_length_of_the_content__contentLength0__break
lea rcx, [rsp + 0x98]
call fcn.14000264c
nop
cmp qword [rbx + 0xe8], 0
je 0x14005a764
lea rdx, [rsp + 0x98]
mov rcx, rbx
call fcn.140059fc0
nop
lea rcx, [rsp + 0x98]
call fcn.140001624
jmp 0x14005a77a
mov byte [rbx + 0xfc], 1
mov rcx, qword [rbx + 0x100]
mov rax, qword [rcx]
mov r8d, esi
mov rdx, rbx
call qword [rax]
mov rcx, qword [rbx + 0x100]
mov rax, qword [rcx]
mov r8d, esi
mov rdx, rbx
call qword [rax + VariantCopy]
nop
mov rbx, qword [r14 + 8]
test rbx, rbx
je 0x14005a7c6
lock dec dword [rbx + 8]
jne 0x14005a7c6
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x14005a7c6
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + VariantCopy]
mov eax, esi
mov rcx, qword [rsp + 0x20f0]
xor rcx, rsp
call fcn.14005ba60
mov rbx, qword [rsp + 0x2158]
add rsp, 0x2100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret