Function at 0x401cc0
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x110
mov qword [rsp + 0x100], rcx
mov word [rsp + 0xfe], dx
mov qword [rsp + 0xf0], r8
mov word [rsp + 0xee], 0xaa55
mov dword [rsp + 0xe8], 0x200
mov eax, dword [rsp + 0xe8]
mov edx, eax
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
mov r8, qword [rsp + 0x100]
mov r9w, word [rsp + 0xfe]
mov r10w, word [rsp + 0xee]
lea rdx, [rsp + 0xe8]
mov word [rsp + 0x20], r10w
mov dword [rsp + 0x28], 1
call sub.DNSAPI.dll_DnsWriteQuestionToBuffer_UTF8
mov dword [rsp + 0xdc], eax
cmp dword [rsp + 0xdc], 0
jne 0x401dc5
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0xe8]
mov edx, ecx
mov rcx, rax
call sub.msvcrt.dll_realloc
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
mov r8, qword [rsp + 0x100]
mov r9w, word [rsp + 0xfe]
mov r10w, word [rsp + 0xee]
lea rdx, [rsp + 0xe8]
mov word [rsp + 0x20], r10w
mov dword [rsp + 0x28], 1
call sub.DNSAPI.dll_DnsWriteQuestionToBuffer_UTF8
xor edx, edx
xor eax, eax
mov ecx, eax
lea r8, str.Mozilla_5.0
mov qword [rsp + 0x78], rcx
mov rcx, r8
mov r8, qword [rsp + 0x78]
mov r9, qword [rsp + 0x78]
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenA]
xor edx, edx
mov r9d, edx
xor edx, edx
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
lea rax, str.dns.google
mov dword [rsp + 0x74], edx
mov rdx, rax
mov r8d, 0x1bb
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
xor r8d, r8d
mov r9d, r8d
mov qword [rsp + 0xc8], rax
lea rax, str.Content_Type:_application_dns_message
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc8]
lea rdx, str.POST
lea r8, str._dns_query
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x38], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x68], rcx
mov rcx, rax
mov qword [rsp + 0x60], rdx
call sym.strlen
mov rcx, qword [rsp + 0xe0]
mov r10d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x60]
mov r8d, eax
mov r9, qword [rsp + 0x58]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.WININET.dll_HttpSendRequestA]
xor r8d, r8d
xor r10d, r10d
mov r9d, r10d
mov dword [rsp + 0xb4], 0
mov rcx, qword [rsp + 0xb8]
lea rdx, [rsp + 0xb4]
mov dword [rsp + 0x54], eax
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, 0
jne 0x401f4f
mov dword [rsp + 0x10c], 1
jmp 0x402164
mov eax, dword [rsp + 0xb4]
mov ecx, eax
call sym.operator_new___unsigned_long_long_
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xa4], 0
mov rcx, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xa8]
mov r8d, dword [rsp + 0xb4]
lea r9, [rsp + 0xa4]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r8d, dword [rsp + 0xb4]
mov dword [rsp + 0xa0], r8d
mov r8d, dword [rsp + 0xa0]
mov edx, r8d
mov ecx, 1
mov dword [rsp + 0x50], eax
call sub.msvcrt.dll_calloc
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov r8d, dword [rsp + 0xa0]
mov edx, r8d
mov r8, qword [rsp + 0xa8]
mov r10d, dword [rsp + 0xb4]
mov r9d, r10d
mov rcx, rax
call qword [dbg._stub]
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x90], rcx
mov rcx, qword [rsp + 0x90]
mov r11w, word [rcx]
mov word [rsp + 0x8e], r11w
movzx r10d, word [rsp + 0x8e]
shl r10d, 8
movzx esi, word [rsp + 0x8e]
sar esi, 8
or r10d, esi
mov rcx, qword [rsp + 0x90]
mov word [rcx], r10w
mov rcx, qword [rsp + 0x90]
mov r10w, word [rcx + 4]
mov word [rsp + 0x8c], r10w
movzx esi, word [rsp + 0x8c]
shl esi, 8
movzx edi, word [rsp + 0x8c]
sar edi, 8
or esi, edi
mov rcx, qword [rsp + 0x90]
mov word [rcx + 4], si
mov rcx, qword [rsp + 0x90]
mov r10w, word [rcx + 6]
mov word [rsp + 0x8a], r10w
movzx edi, word [rsp + 0x8a]
shl edi, 8
movzx ebx, word [rsp + 0x8a]
sar ebx, 8
or edi, ebx
mov rcx, qword [rsp + 0x90]
mov word [rcx + 6], di
mov rcx, qword [rsp + 0x90]
mov r10w, word [rcx + 8]
mov word [rsp + 0x88], r10w
movzx ebx, word [rsp + 0x88]
shl ebx, 8
movzx ebp, word [rsp + 0x88]
sar ebp, 8
or ebx, ebp
mov rcx, qword [rsp + 0x90]
mov word [rcx + 8], bx
mov rcx, qword [rsp + 0x90]
mov r10w, word [rcx + 0xa]
mov word [rsp + 0x86], r10w
movzx ebp, word [rsp + 0x86]
shl ebp, 8
movzx r14d, word [rsp + 0x86]
sar r14d, 8
or ebp, r14d
mov rcx, qword [rsp + 0x90]
mov word [rcx + 0xa], bp
mov rcx, qword [rsp + 0x98]
mov r14d, dword [rsp + 0xa0]
mov r8, qword [rsp + 0xf0]
mov dx, r14w
mov dword [rsp + 0x4c], eax
call sub.DNSAPI.dll_DnsExtractRecordsFromMessage_UTF8
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x10c], 0
mov eax, dword [rsp + 0x10c]
add rsp, 0x110
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret