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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18c]
mov rsi, rcx
mov ebp, eax
mov r14d, eax
shr ebp, 2
shr r14d, 0xf
and bpl, 1
and r14b, 1
bt eax, 0xd
jae 0x1400060e4
mov byte [rcx + 0x173], 1
call fcn.140003790
lea rcx, [rsi + 0x128]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r14b, r14b
je 0x14000625d
mov rbx, qword [rsi + 0x28]
test rbx, rbx
je 0x140006159
nop dword [rax + rax]
mov rax, qword [rbx + 0x168]
test rax, rax
je 0x14000623b
movzx eax, byte [rax + 8]
test al, al
jne 0x140006137
lea rdx, str.Initiated_daemon_shutdown_while__upgraded__connection_was_not_closed._n
mov rcx, rsi
call fcn.14000fca0
mov rax, qword [rbx + 0x168]
mov byte [rax + 8], 1
mov byte [rbx + 0x178], 1
mov byte [rsi + 0x173], 1
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140006110
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1400061c4
mov rcx, qword [rbx + 0x110]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [rsi + 0x18c]
and eax, 4
test al, al
je 0x1400061bb
cmp qword [rsi + 0x160], 0xffffffffffffffff
je 0x1400061bb
mov rcx, qword [rsi + 0x168]
lea rdx, [0x1400b94a4]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1400061bb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14000628a
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140006162
test bpl, bpl
je 0x1400062c0
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1400062c0
nop word [rax + rax]
cmp byte [rbx + 0x11a], 0
jne 0x1400062ac
lea rcx, [rsi + 0x128]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0xa0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140006357
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsi + 0x128]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbx + 0x11a], 1
mov rbx, qword [rsi + 0x18]
jmp 0x1400062b0
mov rcx, qword [0x1400c2520]
lea r9, str.MHD_stop_daemon___called_while_we_have_suspended_connections._n
mov r8d, 0x1849
lea rdx, [0x1400b9b60]
call qword [0x1400c2538]
int3
cmp qword [rsi + 0x20], 0
je 0x140006159
mov rcx, qword [0x1400c2520]
lea r9, [0x1400b93f8]
mov r8d, 0x1868
lea rdx, [0x1400b9a80]
call qword [0x1400c2538]
int3
mov rcx, qword [0x1400c2520]
lea r9, str.Failed_to_signal_shutdown_via_inter_thread_communication_channel
mov r8d, 0x1871
lea rdx, [0x1400b9990]
call qword [0x1400c2538]
int3
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400061e0
nop dword [rax]
lea rcx, [rsi + 0x128]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14b, r14b
je 0x1400062e1
mov rcx, rsi
mov byte [rsi + 0x173], 1
call fcn.140003790
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x14000646a
xor r14d, r14d
mov eax, dword [rsi + 0x18c]
and eax, 4
test al, al
je 0x14000630b
cmp byte [rbx + 0x11a], r14b
je 0x14000648c
mov rdi, qword [rbx + 0x20]
mov eax, dword [rdi + 0x18c]
and eax, 4
test al, al
je 0x140006379
mov dword [rbx + 0x120], reloc.WS2_32.dll_send
mov dword [rbx + 0x124], 3
test dword [rdi + 0x18c], 0x1000
jne 0x14000645d
mov rcx, qword [rbx + 0x110]
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
jmp 0x14000645d
mov rcx, qword [0x1400c2520]
lea r9, [0x1400b9938]
mov r8d, 0x187f
lea rdx, [0x1400b98e0]
call qword [0x1400c2538]
int3
mov edx, 3
mov rcx, rbx
call fcn.140006bc0
lea rcx, [rdi + 0x128]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rax + 0x180]
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x100], rcx
jne 0x1400063d1
test rdx, rdx
jne 0x1400063ba
mov qword [rdi + 0x40], rax
jmp 0x1400063be
mov qword [rdx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x1400063f3
mov qword [rdi + 0x48], rax
jmp 0x1400063f7
test rdx, rdx
jne 0x1400063dc
mov qword [rdi + 0x50], rax
jmp 0x1400063e0
mov qword [rdx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x1400063f3
mov qword [rdi + 0x58], rax
jmp 0x1400063f7
mov qword [rcx + 0x18], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
test rcx, rcx
jne 0x140006411
mov qword [rdi + 0x10], rax
jmp 0x140006414
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x140006426
mov qword [rdi + 0x18], rax
jmp 0x14000642a
mov qword [rcx + 8], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
cmp qword [rdi + 0x38], r14
jne 0x140006444
mov qword [rdi + 0x38], rbx
jmp 0x14000644c
mov rax, qword [rdi + 0x30]
mov qword [rax + 8], rbx
lea rcx, [rdi + 0x128]
mov qword [rdi + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1400062f1
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.140003c00
mov rcx, qword [0x1400c2520]
lea r9, [0x1400b9898]
mov r8d, 0x189d
lea rdx, [0x1400b9840]
call qword [0x1400c2538]
int3