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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x124], 0
mov rbx, rcx
mov rdi, qword [rcx + 0x20]
jne 0x140060270
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov byte [rcx + 0x124], 1
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x48], rsi
test rcx, rcx
je 0x140060063
call fcn.14005c1e0
mov qword [rbx + 0x38], rbp
lea rcx, [rdi + 0x130]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [rbx + 0x160], bpl
je 0x1400600d3
mov rax, qword [rbx]
test rax, rax
jne 0x14006008b
cmp rbx, qword [rdi + 0x28]
jne 0x14006027b
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x1400600a4
cmp rbx, qword [rdi + 0x20]
jne 0x1400602c5
mov qword [rdi + 0x20], rax
jmp 0x1400600a7
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x1400600c3
mov qword [rdi + 0x28], rax
mov byte [rbx + 0x160], bpl
jmp 0x1400601c6
mov qword [rcx + 8], rax
mov byte [rbx + 0x160], bpl
jmp 0x1400601c6
mov eax, dword [rdi + 0x194]
and eax, 4
test al, al
jne 0x140060182
mov rax, qword [rdi + 0x188]
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x108], rax
jne 0x140060137
test rcx, rcx
jne 0x140060107
cmp rbx, qword [rdi + 0x48]
jne 0x14006030f
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x140060120
cmp rbx, qword [rdi + 0x40]
jne 0x140060359
mov qword [rdi + 0x40], rcx
jmp 0x140060124
mov qword [rax + 0x10], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x140060176
mov qword [rdi + 0x48], rax
jmp 0x14006017a
test rcx, rcx
jne 0x140060146
cmp rbx, qword [rdi + 0x58]
jne 0x1400603a3
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x14006015f
cmp rbx, qword [rdi + 0x50]
jne 0x1400603ed
mov qword [rdi + 0x50], rcx
jmp 0x140060163
mov qword [rax + 0x10], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x140060176
mov qword [rdi + 0x58], rax
jmp 0x14006017a
mov qword [rcx + 0x18], rax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x10], rbp
mov rax, qword [rbx]
test rax, rax
jne 0x140060194
cmp rbx, qword [rdi + 0x18]
jne 0x140060437
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x1400601ad
cmp rbx, qword [rdi + 0x10]
jne 0x140060481
mov qword [rdi + 0x10], rax
jmp 0x1400601b0
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x1400601c2
mov qword [rdi + 0x18], rax
jmp 0x1400601c6
mov qword [rcx + 8], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
cmp qword [rbx], rbp
jne 0x1400604cb
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], rbp
cmp qword [rdi + 0x38], rbp
jne 0x1400601ed
mov qword [rdi + 0x38], rbx
jmp 0x1400601f5
mov rax, qword [rdi + 0x30]
mov qword [rax + 8], rbx
mov qword [rdi + 0x30], rbx
lea rcx, [rdi + 0x130]
mov byte [rbx + 0x168], bpl
mov byte [rbx + 0x123], bpl
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [rdi + 0x194]
and eax, 4
test al, al
je 0x140060266
cmp qword [rdi + 0x168], 0xffffffffffffffff
je 0x140060266
mov rcx, qword [rdi + 0x170]
lea rdx, [0x14028be9c]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140060266
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140060266
lea rdx, str.Failed_to_signal_end_of_connection_via_inter_thread_communication_channel
mov rcx, rdi
call fcn.140061980
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028f578]
lea rax, str._NULL____connection___next_____connection____daemon__suspended_connections_tail__
mov r9d, 0xc72
lea rdx, [0x14028f548]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028f4a8]
lea rax, str._NULL____connection___prev_____connection____daemon__suspended_connections_head__
mov r9d, 0xc72
lea rdx, [0x14028f478]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028f3d8]
lea rax, [0x14028f420]
mov r9d, 0xc7c
lea rdx, [0x14028f3a8]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028f308]
lea rax, [0x14028f350]
mov r9d, 0xc7c
lea rdx, [0x14028f2d8]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028f238]
lea rax, str._NULL____connection___nextX_____connection____daemon__manual_timeout_tail__
mov r9d, 0xc80
lea rdx, [0x14028f208]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028f170]
lea rax, str._NULL____connection___prevX_____connection____daemon__manual_timeout_head__
mov r9d, 0xc80
lea rdx, [0x14028f140]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028f0b0]
lea rax, str._NULL____connection___next_____connection____daemon__connections_tail__
mov r9d, 0xc84
lea rdx, [0x14028f080]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028eff0]
lea rax, str._NULL____connection___prev_____connection____daemon__connections_head__
mov r9d, 0xc84
lea rdx, [0x14028efc0]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028ef60]
lea rax, str.NULL___connection___next
mov r9d, 0xc88
lea rdx, [0x14028ef30]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3