Function at 0x140017390
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov r12, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
mov rdi, qword [sym.imp.WININET.dll_InternetSetOptionA]
xor ecx, ecx
mov edx, 0x2a
xor r8d, r8d
xor r9d, r9d
call rdi
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbx, rax
call fcn.1400095d0
cdqe
lea rcx, [0x1400869d0]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0x3dc], eax
lea rsi, [rbp + 0x3dc]
mov rcx, rbx
mov edx, 6
mov r8, rsi
mov r9d, 4
call rdi
mov rcx, rbx
mov edx, 6
mov r8, rsi
mov r9d, 4
call rdi
mov rcx, rbx
mov edx, 6
mov r8, rsi
mov r9d, 4
call rdi
test rbx, rbx
je 0x1400176fb
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, r14
mov r8w, 0x1bb
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rdi, rax
test rax, rax
je 0x1400176ce
lea r14, [0x140098bb0]
xor esi, esi
cmp r12, r14
cmove r12, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0x80800000
lea rdx, [0x140097d09]
mov rcx, rdi
mov r8, r12
xor r9d, r9d
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
test rax, rax
je 0x14001750a
mov r13, rax
mov rdx, qword [rbp + 0x460]
cmp rdx, r14
mov qword [rbp + 0x3c8], rbx
mov qword [rbp + 0x3d0], rdi
je 0x140017517
mov dword [rsp + 0x20], 0
mov rcx, r13
mov r8d, 8
jmp 0x140017527
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400176bb
mov dword [rsp + 0x20], 0
mov rcx, r13
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_HttpSendRequestA]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], 0
call fcn.140008c60
cdqe
lea rcx, [0x140086a70]
mov rax, qword [rcx + rax*8]
mov qword [r15 + 0x18], rax
mov qword [r15 + 0x10], 0
call fcn.140008c60
cdqe
lea rcx, [0x140086aa0]
mov rax, qword [rcx + rax*8]
mov qword [r15 + 0x18], rax
mov byte [r15], 0
mov dword [rbp + 0x3ec], 0
lea rdx, [rbp - 0x40]
lea r9, [rbp + 0x3ec]
mov rcx, r13
mov r8d, 0x400
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14001769c
mov eax, dword [rbp + 0x3ec]
test eax, eax
je 0x14001769c
lea r12, [rbp - 0x40]
mov qword [rbp + 0x3e0], r15
nop dword [rax]
mov esi, eax
mov r14, qword [r15 + 0x10]
mov rdi, qword [r15 + 0x18]
mov rcx, r14
xor rcx, rdi
not rcx
mov rdx, r14
not rdx
mov rax, rdi
or rax, rdx
mov rbx, rdi
sub rbx, rax
sub rdx, r14
add rdx, rcx
lea rax, [rdx + rbx*2]
cmp rax, rsi
jae 0x140017610
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, rsi
mov r9, r12
call fcn.1400066b0
jmp 0x14001766a
mov rax, r14
or rax, rsi
mov rcx, rsi
not rcx
or rcx, r14
add rax, rsi
add rax, rcx
add rax, 1
mov qword [r15 + 0x10], rax
cmp rdi, 0xf
jbe 0x14001763d
mov rax, qword [rbp + 0x3e0]
mov r15, qword [rax]
lea rbx, [r15 + r14]
call fcn.1400159b0
cdqe
lea rcx, [0x140086ac0]
mov r8, qword [rcx + rax*8]
imul r8, rsi
mov rcx, rbx
mov rdx, r12
call fcn.14004edb0
add r14, rsi
mov byte [r15 + r14], 0
mov rcx, r13
mov rdx, r12
mov r8d, 0x400
lea r9, [rbp + 0x3ec]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
mov r15, qword [rbp + 0x3e0]
je 0x14001769c
mov eax, dword [rbp + 0x3ec]
test eax, eax
jne 0x1400175c0
call fcn.1400177a0
cdqe
lea rcx, [0x1400869dc]
mov esi, dword [rcx + rax*4]
mov rbx, qword [rbp + 0x3c8]
mov rdi, qword [rbp + 0x3d0]
call fcn.140009470
cdqe
lea rcx, [0x140086a88]
cmp esi, dword [rcx + rax*4]
jne 0x1400176e8
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.140008ea0
cdqe
lea rcx, [0x140086a88]
mov esi, dword [rcx + rax*4]
call fcn.140009560
cdqe
lea rcx, [0x140086a88]
cmp esi, dword [rcx + rax*4]
jne 0x140017740
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], 0
call fcn.140008c60
cdqe
lea rcx, [0x140086a70]
mov rax, qword [rcx + rax*8]
mov qword [r15 + 0x18], rax
lea rdx, [0x140098bb0]
mov rcx, r15
xor r8d, r8d
call fcn.140005060
call fcn.140008c60
mov rax, r15
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret