Function at 0x401470
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, [0x00451010]
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WININET_InternetOpenA
mov r15, rax
test r15, r15
je 0x40158a
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 0x40160a
lea r8, [0x00451048]
lea rcx, [rbp + 0x3b8]
mov rdx, rbx
call fcn.0043c040
test eax, eax
je 0x40168f
lea rcx, [0x004645c8]
lea rdx, [0x0045104b]
call fcn.00403130
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.00405250
mov r14, rax
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x40155c
mov rax, qword [rcx]
call qword [rax + 0x18]
test rax, rax
je 0x40155c
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.00405040
mov rcx, rbx
call fcn.004042b0
mov rcx, rdi
call sub.WININET_InternetCloseHandle
jmp 0x401683
lea rcx, [0x004645c8]
lea rdx, [0x00451016]
call fcn.00403130
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.00405250
mov rdi, rax
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x4015e2
mov rax, qword [rcx]
call qword [rax + 0x18]
test rax, rax
je 0x4015e2
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.00405040
mov rcx, rsi
call fcn.004042b0
xor eax, eax
jmp 0x40170b
lea rcx, [0x004645c8]
lea rdx, [0x00451034]
call fcn.00403130
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.00405250
mov rbx, rax
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x401662
mov rax, qword [rcx]
call qword [rax + 0x18]
test rax, rax
je 0x401662
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.00405040
mov rcx, rdi
call fcn.004042b0
mov rcx, r15
call sub.WININET_InternetCloseHandle
xor eax, eax
jmp 0x40170b
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 0x4016ed
mov r9, qword [rbp + 0x3b8]
mov edx, 1
mov rcx, rbx
call fcn.0043c6b0
cmp dword [rbp + 0x3c4], 0
jne 0x4016b0
mov rcx, qword [rbp + 0x3b8]
call fcn.0043ba60
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