Function at 0x1400110c8
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
jmp 0x1400161b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x72
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2d8]
mov rax, qword [0x140027018]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x14002d0f8]
call fcn.140011767
mov dword [rbp + 0x64], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0xc4], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.User_Agent
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140016295
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x274], eax
lea rdx, str.InternetOpen_failed._Error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110e1
mov ecx, dword [rbp + 0x274]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14001104b]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x1400164d1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140016319
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x274], eax
lea rdx, str.InternetOpenUrlA_failed._Error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110e1
mov ecx, dword [rbp + 0x274]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14001104b]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1400164d1
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xc4]
lea r8, [rbp + 0x84]
mov edx, 0x20000005
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edx, 0x20
lea rcx, [rbp + 0xe8]
call fcn.140011668
mov byte [rbp + 0x204], 0
lea rcx, [rbp + 0x1e4]
call fcn.1400111d1
mov ecx, dword [rbp + 0x84]
inc ecx
mov ecx, ecx
mov r9, rax
lea r8, [rbp + 0x204]
mov edx, ecx
lea rcx, [rbp + 0xe8]
call fcn.140011186
nop
xor edx, edx
lea rcx, [rbp + 0xe8]
call fcn.1400111ae
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x84]
mov rdx, rax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400163f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x274], eax
lea rdx, str.InternetReadFile_failed._Error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110e1
mov ecx, dword [rbp + 0x274]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14001104b]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140016495
cmp dword [rbp + 0x44], 0
jbe 0x140016495
mov eax, dword [rbp + 0x44]
mov edx, eax
lea rcx, [rbp + 0xe8]
call fcn.1400111ae
mov byte [rax], 0
xor edx, edx
mov eax, dword [rbp + 0x44]
mov ecx, 2
div ecx
mov eax, eax
mov edx, eax
mov rcx, qword [rbp + 0x2a8]
call fcn.1400113fc
xor edx, edx
lea rcx, [rbp + 0xe8]
call fcn.1400111ae
mov rdx, rax
lea rcx, [rbp + 0x228]
call fcn.140011361
nop
xor edx, edx
mov eax, dword [rbp + 0x44]
mov ecx, 2
div ecx
mov dword [rbp + 0x274], eax
xor edx, edx
mov rcx, qword [rbp + 0x2a8]
call fcn.140011753
mov ecx, dword [rbp + 0x274]
mov r8d, ecx
mov rdx, rax
lea rcx, [rbp + 0x228]
call fcn.140011465
nop
lea rcx, [rbp + 0x228]
call fcn.14001116d
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor edx, edx
mov eax, dword [rbp + 0x44]
mov ecx, 2
div ecx
mov eax, eax
mov qword [rbp + 0x268], rax
lea rcx, [rbp + 0xe8]
call fcn.1400116db
mov rax, qword [rbp + 0x268]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140021df8]
call fcn.140011645
mov rax, rdi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.1400113c5
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret