Function at 0x1400567f0
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 0x140056a40
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 0x140056833
call fcn.1400526a0
mov qword [rbx + 0x38], rbp
lea rcx, [rdi + 0x130]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rbx + 0x160], bpl
je 0x1400568a3
mov rax, qword [rbx]
test rax, rax
jne 0x14005685b
cmp rbx, qword [rdi + 0x28]
jne 0x140056a4b
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x140056874
cmp rbx, qword [rdi + 0x20]
jne 0x140056a95
mov qword [rdi + 0x20], rax
jmp 0x140056877
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x140056893
mov qword [rdi + 0x28], rax
mov byte [rbx + 0x160], bpl
jmp 0x140056996
mov qword [rcx + 8], rax
mov byte [rbx + 0x160], bpl
jmp 0x140056996
mov eax, dword [rdi + 0x194]
and eax, 4
test al, al
jne 0x140056952
mov rax, qword [rdi + 0x188]
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x108], rax
jne 0x140056907
test rcx, rcx
jne 0x1400568d7
cmp rbx, qword [rdi + 0x48]
jne 0x140056adf
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400568f0
cmp rbx, qword [rdi + 0x40]
jne 0x140056b29
mov qword [rdi + 0x40], rcx
jmp 0x1400568f4
mov qword [rax + 0x10], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x140056946
mov qword [rdi + 0x48], rax
jmp 0x14005694a
test rcx, rcx
jne 0x140056916
cmp rbx, qword [rdi + 0x58]
jne 0x140056b73
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x14005692f
cmp rbx, qword [rdi + 0x50]
jne 0x140056bbd
mov qword [rdi + 0x50], rcx
jmp 0x140056933
mov qword [rax + 0x10], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x140056946
mov qword [rdi + 0x58], rax
jmp 0x14005694a
mov qword [rcx + 0x18], rax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x10], rbp
mov rax, qword [rbx]
test rax, rax
jne 0x140056964
cmp rbx, qword [rdi + 0x18]
jne 0x140056c07
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14005697d
cmp rbx, qword [rdi + 0x10]
jne 0x140056c51
mov qword [rdi + 0x10], rax
jmp 0x140056980
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x140056992
mov qword [rdi + 0x18], rax
jmp 0x140056996
mov qword [rcx + 8], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
cmp qword [rbx], rbp
jne 0x140056c9b
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], rbp
cmp qword [rdi + 0x38], rbp
jne 0x1400569bd
mov qword [rdi + 0x38], rbx
jmp 0x1400569c5
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 0x140056a36
cmp qword [rdi + 0x168], 0xffffffffffffffff
je 0x140056a36
mov rcx, qword [rdi + 0x170]
lea rdx, [0x1400c5324]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140056a36
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140056a36
lea rdx, str.Failed_to_signal_end_of_connection_via_inter_thread_communication_channel
mov rcx, rdi
call fcn.140058130
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.1400622c8
mov rcx, rax
lea r8, [0x1400c90d0]
lea rax, str._NULL____connection___next_____connection____daemon__suspended_connections_tail__
mov r9d, 0xc6f
lea rdx, [0x1400c5fa8]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c9140]
lea rax, str._NULL____connection___prev_____connection____daemon__suspended_connections_head__
mov r9d, 0xc6f
lea rdx, [0x1400c6058]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c92d0]
lea rax, [0x1400c9210]
mov r9d, 0xc79
lea rdx, [0x1400c60f8]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c9340]
lea rax, [0x1400c93b0]
mov r9d, 0xc79
lea rdx, [0x1400c61d8]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c9550]
lea rax, [0x1400c9460]
mov r9d, 0xc7d
lea rdx, [0x1400c6298]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c95d0]
lea rax, [0x1400c9640]
mov r9d, 0xc7d
lea rdx, [0x1400c6338]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c9720]
lea rax, str._NULL____connection___next_____connection____daemon__connections_tail__
mov r9d, 0xc81
lea rdx, [0x1400c63d8]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c9790]
lea rax, str._NULL____connection___prev_____connection____daemon__connections_head__
mov r9d, 0xc81
lea rdx, [0x1400c64c8]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c9840]
lea rax, str.NULL___connection___next
mov r9d, 0xc85
lea rdx, [0x1400c65f8]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3