Function at 0x140051b60
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 + 0x194]
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 0x140051ba4
mov byte [rcx + 0x17b], 1
call fcn.14004e920
lea rcx, [rbx + 0x130]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r14b, r14b
je 0x140051d1d
mov rdi, qword [rbx + 0x28]
test rdi, rdi
je 0x140051c19
nop dword [rax + rax]
mov rax, qword [rdi + 0x158]
test rax, rax
je 0x140051cfb
movzx eax, byte [rax + 8]
test al, al
jne 0x140051bf7
lea rdx, str.Initiated_daemon_shutdown_while__upgraded__connection_was_not_closed._n
mov rcx, rbx
call fcn.140058130
mov rax, qword [rdi + 0x158]
mov byte [rax + 8], 1
mov byte [rdi + 0x168], 1
mov byte [rbx + 0x17b], 1
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140051bd0
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x140051c84
mov rcx, qword [rdi + 0x118]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [rbx + 0x194]
and eax, 4
test al, al
je 0x140051c7b
cmp qword [rbx + 0x168], 0xffffffffffffffff
je 0x140051c7b
mov rcx, qword [rbx + 0x170]
lea rdx, [0x1400bfd84]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140051c7b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140051d4a
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140051c22
test bpl, bpl
je 0x140051d80
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x140051d80
nop word [rax + rax]
cmp byte [rdi + 0x122], 0
jne 0x140051d6c
lea rcx, [rbx + 0x130]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0xa0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140051df6
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x130]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rdi + 0x122], 1
mov rdi, qword [rbx + 0x18]
jmp 0x140051d70
mov rcx, qword [0x1400cd5b0]
lea r9, [0x1400c2f08]
mov r8d, 0x181e
lea rdx, [0x1400c5760]
call qword [0x1400cd5a8]
int3
cmp qword [rbx + 0x20], 0
je 0x140051c19
mov rcx, qword [0x1400cd5b0]
lea r9, str.MHD_stop_daemon___called_while_we_have_suspended_connections._n
mov r8d, 0x183d
lea rdx, [0x1400c5850]
call qword [0x1400cd5a8]
int3
mov rcx, qword [0x1400cd5b0]
lea r9, [0x1400c59e0]
mov r8d, 0x1846
lea rdx, [0x1400c5910]
call qword [0x1400cd5a8]
int3
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140051ca0
nop dword [rax]
lea rcx, [rbx + 0x130]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14b, r14b
je 0x140051da1
mov rcx, rbx
mov byte [rbx + 0x17b], 1
call fcn.14004e920
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140051dd4
nop word [rax + rax]
mov eax, dword [rbx + 0x194]
and eax, 4
test al, al
je 0x140051dc6
cmp byte [rcx + 0x122], 0
je 0x140051e18
call fcn.140050370
mov rcx, qword [rbx + 0x18]
test rcx, rcx
jne 0x140051db0
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.14004f0c0
mov rcx, qword [0x1400cd5b0]
lea r9, [0x1400c5c20]
mov r8d, 0x1854
lea rdx, [0x1400c5bc0]
call qword [0x1400cd5a8]
int3
mov rcx, qword [0x1400cd5b0]
lea r9, [0x1400c5dc0]
mov r8d, 0x1872
lea rdx, [0x1400c5d60]
call qword [0x1400cd5a8]
int3