Function at 0x18007a950
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x200
mov rax, qword [0x180107738]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
cmp dword [rcx], 0x50545448
mov rbx, rcx
jne 0x18007a994
cmp word [rcx + 4], 0x2f3a
jne 0x18007a994
cmp byte [rcx + 6], 0x2f
je 0x18007a9b6
cmp dword [rcx], 0x70747468
jne 0x18007ad3c
cmp word [rcx + 4], 0x2f3a
jne 0x18007ad3c
cmp byte [rcx + 6], 0x2f
jne 0x18007ad3c
mov ecx, 0x101
lea rdx, [rsp + 0x50]
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x18007ad3c
lea rcx, [rbx + 7]
call fcn.1800b9384
mov edi, 0x50
mov rcx, rax
mov r15, rax
lea edx, [rdi - 0x16]
call fcn.18007f394
lea edx, [rdi - 0x21]
mov rbx, rax
test rax, rax
jne 0x18007aa22
mov rcx, r15
call fcn.18007f394
test rax, rax
je 0x18007aa11
lea rcx, [rax + 1]
mov byte [rax], bl
call fcn.1800b9384
mov r14, rax
jmp 0x18007aa5d
lea rcx, [0x1800e2160]
call fcn.1800b9384
mov r14, rax
jmp 0x18007aa5d
lea rcx, [rax + 1]
mov byte [rax], 0
call fcn.18007f394
test rax, rax
je 0x18007aa3c
mov byte [rax], 0
lea rcx, [rax + 1]
jmp 0x18007aa43
lea rcx, [0x1800e2160]
call fcn.1800b9384
lea rcx, [rbx + 1]
mov r14, rax
call fcn.1800a55bc
mov edi, eax
test eax, eax
jne 0x18007aa5d
lea edi, [rax + 0x50]
mov rcx, r15
call sub.WS2_32.dll_gethostbyname
mov rbx, rax
test rax, rax
je 0x18007ad2c
xor r8d, r8d
mov r12d, 2
mov ecx, r12d
lea edx, [r8 + 1]
call sub.WS2_32.dll_socket
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18007ad2c
mov word [rsp + 0x38], r12w
xor esi, esi
mov qword [rsp + 0x40], rsi
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rcx]
movzx ecx, byte [rdx]
mov byte [rsp + 0x3c], cl
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rcx]
movzx eax, byte [rdx + 1]
mov byte [rsp + 0x3d], al
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
movzx eax, byte [rcx + 2]
mov byte [rsp + 0x3e], al
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
movzx eax, byte [rcx + 3]
movzx ecx, di
mov byte [rsp + 0x3f], al
call sub.WS2_32.dll_htons
mov word [rsp + 0x3a], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
movzx eax, byte [rcx + 3]
movzx r9d, byte [rcx + 2]
movzx r8d, byte [rcx + 1]
movzx edx, byte [rcx]
lea rcx, str.Conecting_to__d._d._d._d...
mov dword [rsp + 0x20], eax
call fcn.18007ad70
lea r8d, [r12 + 0xe]
mov rcx, rbp
lea rdx, [rsp + 0x38]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x18007ab48
mov rcx, r15
call fcn.1800a37cc
mov rcx, r14
call fcn.1800a37cc
lea rcx, str.Error_n
call fcn.18007ad70
jmp 0x18007ad3c
lea rcx, [0x1800e40fc]
call fcn.18007ad70
mov ecx, 0x800
call fcn.1800a37e0
mov rdi, rax
test rax, rax
je 0x18007ad2c
mov ecx, dword [str.GET__]
mov dword [rax], ecx
movzx ecx, word [0x1800e4104]
mov word [rax + 4], cx
lea rcx, [rax - 1]
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x18007ab81
xor edx, edx
nop dword [rax]
movzx eax, byte [r14 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x18007ab90
lea rcx, [rdi - 1]
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x18007aba4
movups xmm0, xmmword [str._HTTP_1.1_r_nHost:]
movzx eax, word [0x1800e4118]
movups xmmword [rcx], xmm0
mov word [rcx + 0x10], ax
lea rcx, [rdi - 1]
nop word [rax + rax]
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x18007abd0
xor edx, edx
nop dword [rax]
movzx eax, byte [r15 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x18007abe0
lea rcx, [rdi - 1]
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x18007abf4
movaps xmm0, xmmword [str._r_nUser_agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_]
movaps xmm1, xmmword [0x1800e4130]
mov eax, dword [0x1800e4160]
movups xmmword [rcx], xmm0
movaps xmm0, xmmword [0x1800e4140]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [0x1800e4150]
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm1
mov dword [rcx + 0x40], eax
movzx eax, word [0x1800e4164]
mov word [rcx + 0x44], ax
lea rcx, [rdi - 1]
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x18007ac41
movups xmm0, xmmword [str._r_nAccept:___r_n_r_n]
movzx eax, word [0x1800e4178]
mov rdx, rdi
movups xmmword [rcx], xmm0
mov word [rcx + 0x10], ax
lea rcx, [0x1800e417c]
call fcn.18007ad70
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], sil
jne 0x18007ac76
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call sub.WS2_32.dll_send
mov rcx, r15
mov ebx, eax
call fcn.1800a37cc
mov rcx, r14
call fcn.1800a37cc
mov rcx, rdi
call fcn.1800a37cc
cmp ebx, 0xffffffff
je 0x18007ad3c
mov ebx, 0x100000
mov ecx, ebx
call fcn.1800a37e0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rbp
mov r14, rax
mov byte [rax], sil
mov rdi, rax
mov dword [rsp + 0x30], 0x3e8
call sub.WS2_32.dll_setsockopt
nop dword [rax]
test ebx, ebx
jle 0x18007ad1f
cmp esi, 5
jge 0x18007ad1f
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
lea r8d, [r9 + 4]
call sub.WS2_32.dll_recv
test eax, eax
jle 0x18007ad19
movsxd rcx, eax
add rdi, rcx
sub ebx, eax
jmp 0x18007ad1b
inc esi
test eax, eax
jne 0x18007acf0
mov byte [rdi], 0
call sub.WS2_32.dll_WSACleanup
mov rax, r14
jmp 0x18007ad3e
mov rcx, r15
call fcn.1800a37cc
mov rcx, r14
call fcn.1800a37cc
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.18007b2f0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret