Function at 0x1400020e0
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 [0x140007028]
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 [0x140005570]
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 0x140002831
mov rax, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140002171
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.1400037b0
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400021a2
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x58]
call fcn.140003130
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.140003130
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 0x140002230
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140003130
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.140003130
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 0x1400022da
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400022d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000393c
movups xmmword [rbp - 0x20], xmm6
movups xmmword [rbp - 0x10], xmm7
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140002322
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000231d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000231d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000393c
movdqa xmm0, xmmword [0x140005570]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140002375
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002370
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002370
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000393c
movdqa xmm0, xmmword [0x140005570]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1400023c6
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400023c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000393c
movdqa xmm0, xmmword [0x140005570]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140002415
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002410
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002410
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000393c
mov ecx, 0x202
lea rdx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002550
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140002467
inc rdx
mov rcx, qword [rbp - 0x20]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140002462
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400026ed
call fcn.14000393c
movdqa xmm0, xmmword [0x140005570]
mov byte [rbp - 0x20], 0
movdqu xmmword [rbp - 0x10], xmm0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1400024b2
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x1400024ad
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000281c
mov rcx, r8
call fcn.14000393c
mov byte [r14], 0
mov qword [r14 + 0x18], send
mov qword [r14 + 0x10], r13
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1400024fc
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x1400024f7
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002823
mov rcx, r8
call fcn.14000393c
mov byte [rsi], 0
mov qword [rsi + 0x18], send
mov qword [rsi + 0x10], r13
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140002545
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x140002540
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000282a
mov rcx, r8
call fcn.14000393c
mov qword [rdi + 0x10], r13
xor eax, eax
jmp 0x1400027dd
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 0x140002578
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 0x14000242c
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 0x1400025e0
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, 0x2710
lea r13, [0x140007780]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14000269b
lea r12, [0x1400070d0]
mov rbx, r13
movzx r9d, byte [rbx]
cmp r9b, 0x20
jge 0x14000263a
cmp r9b, 0xa
je 0x14000263a
cmp r9b, 0xd
jne 0x140002682
mov rcx, qword [0x1400070e0]
mov rdx, qword [0x1400070e8]
cmp rcx, rdx
jae 0x140002675
lea rax, [rcx + 1]
mov qword [0x1400070e0], rax
mov rax, r12
cmp rdx, 0x10
cmovae rax, qword [0x1400070d0]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
inc rbx
jmp 0x140002624
mov rcx, r12
call fcn.140001a20
inc rbx
jmp 0x140002624
xor r9d, r9d
mov r8d, 0x2710
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140002621
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 0x1400026f9
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400026f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400026f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000393c
movdqa xmm0, xmmword [0x140005570]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140002744
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x14000273f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000281c
mov rcx, r8
call fcn.14000393c
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 0x14000278f
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x14000278a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002823
mov rcx, r8
call fcn.14000393c
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], send
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400027d4
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400027cf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000282a
mov rcx, r8
call fcn.14000393c
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.1400038e0
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.140001250
int3