Function at 0x140017300
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18c]
mov rbx, rcx
mov ebp, eax
mov r14d, eax
shr ebp, 2
shr r14d, 0xf
and bpl, 1
and r14b, 1
bt eax, 0xd
jae 0x140017344
mov byte [rcx + 0x173], 1
call fcn.140014ca0
lea rcx, [rbx + 0x128]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r14b, r14b
je 0x1400174bb
mov rdi, qword [rbx + 0x28]
test rdi, rdi
je 0x1400173b9
nop dword [rax + rax]
mov rax, qword [rdi + 0x168]
test rax, rax
je 0x140017499
movzx eax, byte [rax + 8]
test al, al
jne 0x140017397
lea rdx, str.Initiated_daemon_shutdown_while__upgraded__connection_was_not_closed._n
mov rcx, rbx
call fcn.14001d140
mov rax, qword [rdi + 0x168]
mov byte [rax + 8], 1
mov byte [rdi + 0x178], 1
mov byte [rbx + 0x173], 1
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140017370
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x140017424
mov rcx, qword [rdi + 0x110]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [rbx + 0x18c]
and eax, 4
test al, al
je 0x14001741b
cmp qword [rbx + 0x160], 0xffffffffffffffff
je 0x14001741b
mov rcx, qword [rbx + 0x168]
lea rdx, [0x1400b00b4]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x14001741b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400174e8
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x1400173c2
test bpl, bpl
je 0x140017520
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x140017520
nop word [rax + rax]
cmp byte [rdi + 0x11a], 0
jne 0x14001750a
lea rcx, [rbx + 0x128]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0xa0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140017596
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x128]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rdi + 0x11a], 1
mov rdi, qword [rbx + 0x18]
jmp 0x14001750e
mov rcx, qword [0x1400b93f8]
lea r9, [0x1400b21b8]
mov r8d, 0x1849
lea rdx, [0x1400b2ae0]
call qword [0x1400b9400]
int3
cmp qword [rbx + 0x20], 0
je 0x1400173b9
mov rcx, qword [0x1400b93f8]
lea r9, str.MHD_stop_daemon___called_while_we_have_suspended_connections._n
mov r8d, 0x1868
lea rdx, [0x1400b2bc0]
call qword [0x1400b9400]
int3
mov rcx, qword [0x1400b93f8]
lea r9, [0x1400b2c80]
mov r8d, 0x1871
lea rdx, [0x1400b2d50]
call qword [0x1400b9400]
int3
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140017440
nop word [rax + rax]
lea rcx, [rbx + 0x128]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14b, r14b
je 0x140017541
mov rcx, rbx
mov byte [rbx + 0x173], 1
call fcn.140014ca0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140017574
nop word [rax + rax]
mov eax, dword [rbx + 0x18c]
and eax, 4
test al, al
je 0x140017566
cmp byte [rcx + 0x11a], 0
je 0x1400175b8
call fcn.140015ff0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
jne 0x140017550
mov rcx, rbx
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.140015140
mov rcx, qword [0x1400b93f8]
lea r9, [0x1400b2e88]
mov r8d, 0x187f
lea rdx, [0x1400b2f00]
call qword [0x1400b9400]
int3
mov rcx, qword [0x1400b93f8]
lea r9, [0x1400b3068]
mov r8d, 0x189d
lea rdx, [0x1400b30c0]
call qword [0x1400b9400]
int3