Function at 0x140006010
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 0x140006054
mov byte [rcx + 0x173], 1
call fcn.140003640
lea rcx, [rsi + 0x128]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r14b, r14b
je 0x1400061cb
mov rbx, qword [rsi + 0x28]
test rbx, rbx
je 0x1400060c9
nop dword [rax + rax]
mov rax, qword [rbx + 0x168]
test rax, rax
je 0x1400061a9
movzx eax, byte [rax + 8]
test al, al
jne 0x1400060a7
lea rdx, str.Initiated_daemon_shutdown_while__upgraded__connection_was_not_closed._n
mov rcx, rsi
call fcn.14000f5a0
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 0x140006080
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x140006134
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 0x14000612b
cmp qword [rsi + 0x160], 0xffffffffffffffff
je 0x14000612b
mov rcx, qword [rsi + 0x168]
lea rdx, [0x1400b5de4]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x14000612b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400061f8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400060d2
test bpl, bpl
je 0x140006230
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x140006230
nop word [rax + rax]
cmp byte [rbx + 0x11a], 0
jne 0x14000621a
lea rcx, [rsi + 0x128]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0xa0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400062c7
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 0x14000621e
mov rcx, qword [0x1400c1658]
lea r9, [0x1400b7e18]
mov r8d, 0x1849
lea rdx, [0x1400b86a0]
call qword [0x1400c1670]
int3
cmp qword [rsi + 0x20], 0
je 0x1400060c9
mov rcx, qword [0x1400c1658]
lea r9, str.MHD_stop_daemon___called_while_we_have_suspended_connections._n
mov r8d, 0x1868
lea rdx, [0x1400b8770]
call qword [0x1400c1670]
int3
mov rcx, qword [0x1400c1658]
lea r9, [0x1400b8820]
mov r8d, 0x1871
lea rdx, [0x1400b88f0]
call qword [0x1400c1670]
int3
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140006150
nop word [rax + rax]
lea rcx, [rsi + 0x128]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14b, r14b
je 0x140006251
mov rcx, rsi
mov byte [rsi + 0x173], 1
call fcn.140003640
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1400063de
xor r14d, r14d
mov eax, dword [rsi + 0x18c]
and eax, 4
test al, al
je 0x14000627b
cmp byte [rbx + 0x11a], r14b
je 0x140006400
mov rdi, qword [rbx + 0x20]
mov eax, dword [rdi + 0x18c]
and eax, 4
test al, al
je 0x1400062e9
mov dword [rbx + 0x120], reloc.WS2_32.dll_send
mov dword [rbx + 0x124], 3
test dword [rdi + 0x18c], 0x1000
jne 0x1400063d1
mov rcx, qword [rbx + 0x110]
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
jmp 0x1400063d1
mov rcx, qword [0x1400c1658]
lea r9, [0x1400b89f8]
mov r8d, 0x187f
lea rdx, [0x1400b8a80]
call qword [0x1400c1670]
int3
mov edx, 3
mov rcx, rbx
call fcn.140006a80
lea rcx, [rdi + 0x128]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + 0x180]
cmp qword [rbx + 0x100], rcx
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
jne 0x140006341
test rcx, rcx
jne 0x14000632a
mov qword [rdi + 0x40], rax
jmp 0x14000632e
mov qword [rcx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x140006363
mov qword [rdi + 0x48], rax
jmp 0x140006367
test rcx, rcx
jne 0x14000634c
mov qword [rdi + 0x50], rax
jmp 0x140006350
mov qword [rcx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x140006363
mov qword [rdi + 0x58], rax
jmp 0x140006367
mov qword [rcx + 0x18], rax
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x10], r14
test rcx, rcx
jne 0x140006381
mov qword [rdi + 0x10], rax
jmp 0x140006384
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x140006396
mov qword [rdi + 0x18], rax
jmp 0x14000639a
mov qword [rcx + 8], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], r14
cmp qword [rdi + 0x38], r14
jne 0x1400063b8
mov qword [rdi + 0x38], rbx
jmp 0x1400063c0
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 0x140006261
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.140003ae0
mov rcx, qword [0x1400c1658]
lea r9, [0x1400b8c38]
mov r8d, 0x189d
lea rdx, [0x1400b8c80]
call qword [0x1400c1670]
int3