Function at 0x4019f0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x448
lea rbp, [rsp + 0x80]
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 0
lea rcx, [0x00457060]
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WININET_InternetOpenA
mov r15, rax
test r15, r15
je 0x401b0a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r8d, r8d
xor r9d, r9d
mov rcx, r15
mov rdx, rdi
call sub.WININET_InternetOpenUrlA
mov rdi, rax
test rdi, rdi
je 0x401b8a
lea r8, [0x00457098]
lea rcx, [rbp + 0x3b8]
mov rdx, rbx
call fcn.00441450
test eax, eax
je 0x401c0f
lea rcx, [0x0046c718]
lea rdx, [0x0045709b]
call fcn.00404920
mov rbx, rax
mov rax, qword [rbx]
mov rax, qword [rax - 0x18]
mov rax, qword [rbx + rax + 0x40]
mov rcx, qword [rax]
mov qword [rbp - 0x50], rcx
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rbp - 0x50]
call fcn.00409730
mov r14, rax
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x401adc
mov rax, qword [rcx]
call qword [rax + 0x18]
test rax, rax
je 0x401adc
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 8]
mov rax, qword [r14]
mov edx, 0xa
mov rcx, r14
call qword [rax + 0x40]
movzx edx, al
mov rcx, rbx
call fcn.0040a5a0
mov rcx, rbx
call fcn.00406b80
mov rcx, rdi
call sub.WININET_InternetCloseHandle
jmp 0x401c03
lea rcx, [0x0046c718]
lea rdx, [0x00457066]
call fcn.00404920
mov rsi, rax
mov rax, qword [rsi]
mov rax, qword [rax - 0x18]
mov rax, qword [rsi + rax + 0x40]
mov rcx, qword [rax]
mov qword [rbp - 0x50], rcx
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rbp - 0x50]
call fcn.00409730
mov rdi, rax
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x401b62
mov rax, qword [rcx]
call qword [rax + 0x18]
test rax, rax
je 0x401b62
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 8]
mov rax, qword [rdi]
mov edx, 0xa
mov rcx, rdi
call qword [rax + 0x40]
movzx edx, al
mov rcx, rsi
call fcn.0040a5a0
mov rcx, rsi
call fcn.00406b80
xor eax, eax
jmp 0x401c8b
lea rcx, [0x0046c718]
lea rdx, [0x00457084]
call fcn.00404920
mov rdi, rax
mov rax, qword [rdi]
mov rax, qword [rax - 0x18]
mov rax, qword [rdi + rax + 0x40]
mov rcx, qword [rax]
mov qword [rbp - 0x50], rcx
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rbp - 0x50]
call fcn.00409730
mov rbx, rax
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x401be2
mov rax, qword [rcx]
call qword [rax + 0x18]
test rax, rax
je 0x401be2
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 8]
mov rax, qword [rbx]
mov edx, 0xa
mov rcx, rbx
call qword [rax + 0x40]
movzx edx, al
mov rcx, rdi
call fcn.0040a5a0
mov rcx, rdi
call fcn.00406b80
mov rcx, r15
call sub.WININET_InternetCloseHandle
xor eax, eax
jmp 0x401c8b
mov dword [rbp + 0x3c4], 0
lea rbx, [rbp - 0x50]
lea rsi, [rbp + 0x3c4]
nop word cs:[rax + rax]
mov r8d, 0x400
mov rcx, rdi
mov rdx, rbx
mov r9, rsi
call sub.WININET_InternetReadFile
mov r8d, dword [rbp + 0x3c4]
test r8, r8
je 0x401c6d
mov r9, qword [rbp + 0x3b8]
mov edx, 1
mov rcx, rbx
call fcn.00441ac0
cmp dword [rbp + 0x3c4], 0
jne 0x401c30
mov rcx, qword [rbp + 0x3b8]
call fcn.00440e70
mov rcx, rdi
call sub.WININET_InternetCloseHandle
mov rcx, r15
call sub.WININET_InternetCloseHandle
mov al, 1
add rsp, 0x448
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret