Function at 0x401480
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, [0x00453010]
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WININET_InternetOpenA
mov r15, rax
test r15, r15
je 0x40159a
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 0x40161a
lea r8, [0x00453048]
lea rcx, [rbp + 0x3b8]
mov rdx, rbx
call fcn.0043d270
test eax, eax
je 0x40169f
lea rcx, [0x00466b38]
lea rdx, [0x0045304b]
call fcn.004037f0
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.00405f50
mov r14, rax
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x40156c
mov rax, qword [rcx]
call qword [rax + 0x18]
test rax, rax
je 0x40156c
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.00405d40
mov rcx, rbx
call fcn.00404fb0
mov rcx, rdi
call sub.WININET_InternetCloseHandle
jmp 0x401693
lea rcx, [0x00466b38]
lea rdx, [0x00453016]
call fcn.004037f0
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.00405f50
mov rdi, rax
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x4015f2
mov rax, qword [rcx]
call qword [rax + 0x18]
test rax, rax
je 0x4015f2
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.00405d40
mov rcx, rsi
call fcn.00404fb0
xor eax, eax
jmp 0x40171b
lea rcx, [0x00466b38]
lea rdx, [0x00453034]
call fcn.004037f0
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.00405f50
mov rbx, rax
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x401672
mov rax, qword [rcx]
call qword [rax + 0x18]
test rax, rax
je 0x401672
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.00405d40
mov rcx, rdi
call fcn.00404fb0
mov rcx, r15
call sub.WININET_InternetCloseHandle
xor eax, eax
jmp 0x40171b
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 0x4016fd
mov r9, qword [rbp + 0x3b8]
mov edx, 1
mov rcx, rbx
call fcn.0043d8e0
cmp dword [rbp + 0x3c4], 0
jne 0x4016c0
mov rcx, qword [rbp + 0x3b8]
call fcn.0043cc90
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