Function at 0x1400016a0
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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2e0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, r9
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], r9
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1400066e0]
movdqu xmmword [rbp - 0x10], xmm1
mov byte [rbp - 0x20], r13b
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 5
jb 0x140001df1
mov rax, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140001731
mov rax, qword [rdx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 5
lea r9, str.GET__
lea rcx, [rbp - 0x58]
call fcn.1400044a0
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001762
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x58]
call fcn.140003ea0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], send
mov byte [rax], 0
mov r8d, send
lea rdx, str._HTTP_1.0_r_nHost:
lea rcx, [rbp - 0x80]
call fcn.140003ea0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], send
mov byte [rax], 0
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1400017f0
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140003ea0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], send
mov byte [rax], 0
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str._r_nConnection:_close_r_n_r_n
lea rcx, [rsp + 0x40]
call fcn.140003ea0
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], send
mov byte [rax], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x14000189a
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001895
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001895
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004c2c
movups xmmword [rbp - 0x20], xmm6
movups xmmword [rbp - 0x10], xmm7
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400018e2
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004c2c
movdqa xmm0, xmmword [0x1400066e0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140001935
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001930
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001930
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004c2c
movdqa xmm0, xmmword [0x1400066e0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140001986
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001981
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001981
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004c2c
movdqa xmm0, xmmword [0x1400066e0]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1400019d5
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004c2c
mov ecx, 0x202
lea rdx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001b10
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140001a27
inc rdx
mov rcx, qword [rbp - 0x20]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140001a22
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001cad
call fcn.140004c2c
movdqa xmm0, xmmword [0x1400066e0]
mov byte [rbp - 0x20], 0
movdqu xmmword [rbp - 0x10], xmm0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140001a72
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x140001a6d
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001ddc
mov rcx, r8
call fcn.140004c2c
mov byte [r14], 0
mov qword [r14 + 0x18], send
mov qword [r14 + 0x10], r13
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140001abc
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x140001ab7
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001de3
mov rcx, r8
call fcn.140004c2c
mov byte [rsi], 0
mov qword [rsi + 0x18], send
mov qword [rsi + 0x10], r13
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140001b05
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x140001b00
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001dea
mov rcx, r8
call fcn.140004c2c
mov qword [rdi + 0x10], r13
xor eax, eax
jmp 0x140001d9d
mov edx, 1
lea r8d, [rdx + 5]
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140001b38
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
mov ecx, 0x50
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 2], ax
mov word [rbp], r12w
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 4], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1400019ec
lea r9, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae r9, qword [rbp - 0x20]
lea rdx, [rbp - 0x20]
cmovae rdx, qword [rbp - 0x20]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [r9 + r8], 0
jne 0x140001ba0
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, 0x2710
lea r13, [0x1400099d0]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140001c5b
lea r12, [0x1400090f0]
mov rbx, r13
movzx r9d, byte [rbx]
cmp r9b, 0x20
jge 0x140001bfa
cmp r9b, 0xa
je 0x140001bfa
cmp r9b, 0xd
jne 0x140001c42
mov rcx, qword [0x140009100]
mov rdx, qword [0x140009108]
cmp rcx, rdx
jae 0x140001c35
lea rax, [rcx + 1]
mov qword [0x140009100], rax
mov rax, r12
cmp rdx, 0x10
cmovae rax, qword [0x1400090f0]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
inc rbx
jmp 0x140001be4
mov rcx, r12
call fcn.1400041b0
inc rbx
jmp 0x140001be4
xor r9d, r9d
mov r8d, 0x2710
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140001be1
xor edx, edx
mov r8d, 0x3e8
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140001cb9
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004c2c
movdqa xmm0, xmmword [0x1400066e0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140001d04
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140001cff
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001ddc
mov rcx, r8
call fcn.140004c2c
xor ebx, ebx
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], send
mov byte [r14], bl
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140001d4f
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140001d4a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001de3
mov rcx, r8
call fcn.140004c2c
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], send
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140001d94
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140001d8f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001dea
mov rcx, r8
call fcn.140004c2c
mov qword [rdi + 0x10], rbx
mov eax, 1
mov byte [rdi], 0
mov qword [rdi + 0x18], send
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140004980
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001280
int3