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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1c8], rbx
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r14d, r8d
mov r15, rdx
mov r13, rcx
mov ecx, r8d
call fcn.1400d6a4c
mov rbx, rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 1
xor edi, edi
mov word [rbp - 0x60], di
xor eax, eax
mov qword [rbp - 0x5e], rax
mov qword [rbp - 0x56], rax
mov qword [rbp - 0x4e], rax
mov qword [rbp - 0x46], rax
mov qword [rbp - 0x3e], rax
mov qword [rbp - 0x36], rax
mov qword [rbp - 0x2e], rax
mov dword [rbp - 0x26], eax
mov word [rbp - 0x22], ax
mov dword [rsp + 0x40], 0x40
mov r12d, edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x60]
lea edx, [rdi + 5]
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x140017919
mov qword [rbp - 0x70], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 0x78], rdi
mov byte [rsp + 0x78], dil
lea r8d, [rdi + 0x78]
lea rdx, str.Error_by_receiving_data_from_server___asynchronously__._Available_data_size_is_unknown._Cant_get_content_length_header.
lea rcx, [rsp + 0x78]
call fcn.1400082f0
nop
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea r11, vtable.Cxx::Network::Exception::CNetworkException.0
mov qword [rsp + 0x48], r11
mov dword [rsp + 0x60], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rdx, [0x140185380]
lea rcx, [rsp + 0x48]
call sub.MSVCR100.dll__CxxThrowException
nop
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCR100.dll__wtoi]
mov dword [rsp + 0x38], eax
xor sil, sil
mov edi, 0xa
mov r9d, dword [rsp + 0x30]
test r9d, r9d
jne 0x140017942
test sil, sil
je 0x140017a03
xor sil, sil
lea r9, [rsp + 0x30]
mov r8d, r14d
mov rdx, rbx
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400179be
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
je 0x140017a08
mov ecx, 0x1770
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, r12d
lea rdx, str.Range:_bytes_d__n
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCR100.dll__swprintf]
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1400179b1
dec rdi
jmp 0x140017967
mov sil, 1
test rdi, rdi
je 0x140017a08
jmp 0x14001792f
mov r9d, dword [rsp + 0x30]
test r9d, r9d
mov eax, 0xa
cmovne rdi, rax
add r12d, r9d
test r9d, r9d
je 0x140017939
mov rax, qword [r15]
mov ecx, dword [rsp + 0x38]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r12d
mov r8d, r14d
mov rdx, rbx
mov rcx, r15
call qword [rax]
test al, al
je 0x140017a8a
jmp 0x14001792f
jmp 0x140017a8a
mov qword [rbp - 0x70], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 0x78], 0
mov byte [rsp + 0x78], 0
mov r8d, 0x37
lea rdx, str.Error_by_receiving_data_from_server___asynchronously__.
lea rcx, [rsp + 0x78]
call fcn.1400082f0
nop
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea r11, vtable.Cxx::Network::Exception::CNetworkException.0
mov qword [rsp + 0x48], r11
mov dword [rsp + 0x60], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rdx, [0x140185380]
lea rcx, [rsp + 0x48]
call sub.MSVCR100.dll__CxxThrowException
nop
mov rcx, rbx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400d6f80
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret