Function at 0x1400073a0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x11a8
call fcn.14022fc50
sub rsp, rax
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x1190], rax
mov rax, qword [rsp + 0x1210]
mov r15, qword [rsp + 0x1218]
mov rdi, rdx
mov r13, rcx
movzx ebx, r8w
lea rdx, str.CONNECT__s:_d_HTTP_1.0_r_nuser_agent:_MTTP2.0_r_nhost:__s_r_ncontent_length:_0_r_nproxy_connection:_Keep_Alive_r_npragma:_no_cache_r_n_r_n
lea rcx, [rsp + 0x260]
mov r8d, 0x7d
mov qword [rsp + 0x40], rax
mov r14, r9
call fcn.1401e3ed0
lea rcx, [rsp + 0x2e0]
lea rdx, str.CONNECT__s:_d_HTTP_1.0_r_nuser_agent:_MTTP2.0_r_nProxy_Authorization:_Basic__s_r_nhost:__s_r_ncontent_length:_0_r_nproxy_connection:_Keep_Alive_r_npragma:_no_cache_r_n_r_n
mov r8d, 0x9c
call fcn.1401e3ed0
mov r12d, dword [rsp + 0x1228]
xor ebp, ebp
movzx r8d, bx
mov rdx, rdi
mov rcx, r13
mov r9d, r12d
mov esi, ebp
call fcn.140007040
test eax, eax
je 0x1400077eb
test r14, r14
je 0x1400074f1
cmp byte [r14], sil
je 0x1400074f1
mov r9, qword [rsp + 0x40]
lea rdx, str._s:_s
lea rcx, [rsp + 0xb90]
mov r8, r14
mov dword [rsp + 0x30], 0x400
call fcn.1401e5c60
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0xb90]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xd90]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0xb90]
call fcn.140001470
movsxd rdx, dword [rsp + 0x30]
movzx r9d, word [rsp + 0x1220]
mov byte [rsp + rdx + 0xd90], sil
lea rax, [rsp + 0xd90]
lea rcx, [rsp + 0x380]
lea rdx, [rsp + 0x2e0]
mov r8, r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.1401e5c60
jmp 0x140007517
movzx r9d, word [rsp + 0x1220]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x380]
mov r8, r15
mov qword [rsp + 0x20], r15
call fcn.1401e5c60
cmp dword [reloc.WS2_32.dll_accept], 1
mov edi, eax
jg 0x140007541
lea r9, [rsp + 0x380]
lea rdx, str....._base_srcwin32TSocket.c
mov r8d, 0xbd
mov ecx, 1
call fcn.1400045a0
test edi, edi
jle 0x14000756c
movsxd rax, esi
mov r8d, edi
xor r9d, r9d
lea rdx, [rsp + rax + 0x380]
sub r8d, esi
mov rcx, r13
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x1400075aa
add esi, eax
cmp esi, edi
jl 0x140007545
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x50], 1
cmp r12d, 0xffffffff
je 0x1400075da
mov eax, 0x10624dd3
lea rbx, [rsp + 0x38]
mul r12d
shr edx, 6
mov dword [rsp + 0x38], edx
imul edx, edx, 0x3e8
sub r12d, edx
imul r12d, r12d, 0x3e8
mov dword [rsp + 0x3c], r12d
jmp 0x1400075dd
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400077eb
lea r9, str.Fail_to_send_header.
lea rdx, str....._base_srcwin32TSocket.c
mov r8d, 0xc4
mov ecx, 3
call fcn.1400045a0
jmp 0x1400077eb
mov rbx, rbp
lea rcx, [rsp + 0x380]
xor edx, edx
mov r8d, 0x804
call fcn.1401e42d0
mov edi, ebp
nop word [rax + rax]
xor r9d, r9d
lea rdx, [rsp + 0x50]
xor r8d, r8d
lea ecx, [r9 + 1]
mov qword [rsp + 0x20], rbx
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x1400077bb
test eax, eax
je 0x1400077bb
movsxd rax, edi
mov r8d, 0x800
xor r9d, r9d
lea rdx, [rsp + rax + 0x380]
sub r8d, edi
mov rcx, r13
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14000779e
test eax, eax
je 0x14000779e
add edi, eax
cmp edi, 4
jl 0x1400076b0
movsxd rax, edi
cmp byte [rsp + rax + 0x37f], 0xa
jne 0x140007693
movzx ecx, byte [rsp + rax + 0x37e]
cmp cl, 0xa
je 0x1400076c1
cmp cl, 0xd
jne 0x140007693
cmp byte [rsp + rax + 0x37d], 0xa
jne 0x140007693
cmp byte [rsp + rax + 0x37c], cl
je 0x1400076c1
lea rdx, str._r_n_r_n
lea rcx, [rsp + 0x380]
call fcn.1401e7e58
test rax, rax
jne 0x140007774
cmp edi, 0x800
jl 0x140007600
jmp 0x1400077eb
mov ecx, ebp
test edi, edi
jle 0x140007763
lea rdx, [rsp + 0x380]
movzx eax, byte [rdx]
cmp al, 0x20
jne 0x1400076ef
mov byte [rdx], 0
test rbp, rbp
jne 0x1400076f7
movsxd rax, ecx
lea rbp, [rsp + rax + 0x381]
jmp 0x1400076f7
cmp al, 0xd
je 0x140007702
cmp al, 0xa
je 0x140007702
inc ecx
inc rdx
cmp ecx, edi
jl 0x1400076d3
jmp 0x14000770d
movsxd rax, ecx
mov byte [rsp + rax + 0x380], 0
test rbp, rbp
je 0x140007763
mov rcx, rbp
call fcn.1401e8a38
mov edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 2
jne 0x140007763
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x140007759
lea r9, str.HTTP_Proxy_connected.
lea rdx, str....._base_srcwin32TSocket.c
mov r8d, 0x10f
mov ecx, 1
call fcn.1400045a0
mov eax, 1
jmp 0x1400077ed
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x1400077eb
mov r8d, 0x10b
jmp 0x140007783
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x1400077eb
mov r8d, VarUI4FromDisp
lea r9, [rsp + 0x380]
lea rdx, str....._base_srcwin32TSocket.c
mov ecx, 1
call fcn.1400045a0
jmp 0x1400077eb
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400077eb
call sub.WS2_32.dll_WSAGetLastError
lea r9, str.recv_error__u
mov r8d, 0xe9
jmp 0x1400077d6
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400077eb
call sub.WS2_32.dll_WSAGetLastError
lea r9, str.socket_error__u
mov r8d, 0xe1
lea rdx, str....._base_srcwin32TSocket.c
mov ecx, 3
mov dword [rsp + 0x20], eax
call fcn.1400045a0
xor eax, eax
mov rcx, qword [rsp + 0x1190]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x11a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret