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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x23a0]
mov eax, 0x24a0
call fcn.140057580
sub rsp, rax
mov rax, qword [0x14009b020]
xor rax, rsp
mov qword [rbp + 0x2390], rax
mov byte [rcx + 0x68], 0
mov rdi, rcx
mov ebx, dword [rcx + 0x18]
mov rdx, qword [rcx + 0x10]
lea rcx, [rbp - 0x70]
lea r8d, [rbx + rbx]
call fcn.140058970
mov rcx, qword [0x1400a51a0]
lea eax, [rbx + 1]
xor esi, esi
lea r9, [0x14007cb84]
mov qword [rsp + 0x38], rsi
lea rdx, [rbp - 0x70]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 3
lea r8d, [rsi + 0x50]
mov word [rbp + rbx*2 - 0x70], si
mov word [rbp + rax*2 - 0x70], si
mov qword [rsp + 0x20], r9
call qword [sym.imp.WININET.dll_InternetConnectW]
mov r15, rax
test rax, rax
je 0x1400431a4
mov ebx, dword [rdi + 0x28]
lea rcx, [rbp + 0xf90]
mov rdx, qword [rdi + 0x20]
mov qword [rsp + 0x24c8], r14
lea r8d, [rbx + rbx]
call fcn.140058970
movsxd rax, dword [rdi + 8]
lea ecx, [rbx + 1]
mov qword [rsp + 0x38], 0x4000000
lea rdx, [0x14007a050]
mov dword [rsp + 0x30], esi
lea r8, [rbp + 0xf90]
mov word [rbp + rcx*2 + 0xf90], si
xor r9d, r9d
mov rdx, qword [rdx + rax*8]
mov rcx, r15
mov qword [rsp + 0x28], rsi
mov word [rbp + rbx*2 + 0xf90], si
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov rcx, rax
xor r8d, r8d
xor edx, edx
mov r14, rax
call qword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, 1
jne 0x14004318a
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], esi
mov r8d, 0x400
lea rdx, [rbp + 0x1f90]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004318a
nop
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x140043186
mov esi, dword [rdi + 0x78]
add esi, ebx
cmp esi, dword [rdi + 0x7c]
jbe 0x140043118
mov rcx, qword [rdi + 0x70]
mov edx, esi
call fcn.14005b8b8
mov qword [rdi + 0x70], rax
mov dword [rdi + 0x7c], esi
mov ecx, dword [rdi + 0x78]
lea r8, [rbp + 0x1f90]
mov edx, ecx
add r8, rbx
add rdx, qword [rdi + 0x70]
lea eax, [rcx + rbx]
mov dword [rdi + 0x78], eax
lea rax, [rbp + 0x1f90]
cmp rax, r8
je 0x140043161
lea rax, [rbp + 0x1f90]
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rax]
inc rax
mov byte [rdx], cl
lea rdx, [rdx + 1]
cmp rax, r8
jne 0x140043150
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rbp + 0x1f90]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400430f0
jmp 0x14004318a
mov byte [rdi + 0x68], 1
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r14, qword [rsp + 0x24c8]
mov rcx, qword [rdi + 0x60]
lea rax, [0x140043360]
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x48]
mov qword [rbp - 0x80], rax
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsp + 0x68], xmm1
movsd xmm0, qword [rsp + 0x68]
movsd qword [rsp + 0x78], xmm0
call fcn.140045bf0
mov rcx, qword [rbp + 0x2390]
xor rcx, rsp
call fcn.140056c70
lea r11, [rsp + 0x24a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret