Function at 0x1400267c0
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 0x140026a10
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 0x140026803
call fcn.140022940
mov qword [rbx + 0x38], rbp
lea rcx, [rdi + 0x130]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rbx + 0x160], bpl
je 0x140026873
mov rax, qword [rbx]
test rax, rax
jne 0x14002682b
cmp rbx, qword [rdi + 0x28]
jne 0x140026a1b
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x140026844
cmp rbx, qword [rdi + 0x20]
jne 0x140026a65
mov qword [rdi + 0x20], rax
jmp 0x140026847
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x140026863
mov qword [rdi + 0x28], rax
mov byte [rbx + 0x160], bpl
jmp 0x140026966
mov qword [rcx + 8], rax
mov byte [rbx + 0x160], bpl
jmp 0x140026966
mov eax, dword [rdi + 0x194]
and eax, 4
test al, al
jne 0x140026922
mov rax, qword [rdi + 0x188]
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x108], rax
jne 0x1400268d7
test rcx, rcx
jne 0x1400268a7
cmp rbx, qword [rdi + 0x48]
jne 0x140026aaf
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400268c0
cmp rbx, qword [rdi + 0x40]
jne 0x140026af9
mov qword [rdi + 0x40], rcx
jmp 0x1400268c4
mov qword [rax + 0x10], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x140026916
mov qword [rdi + 0x48], rax
jmp 0x14002691a
test rcx, rcx
jne 0x1400268e6
cmp rbx, qword [rdi + 0x58]
jne 0x140026b43
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400268ff
cmp rbx, qword [rdi + 0x50]
jne 0x140026b8d
mov qword [rdi + 0x50], rcx
jmp 0x140026903
mov qword [rax + 0x10], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x140026916
mov qword [rdi + 0x58], rax
jmp 0x14002691a
mov qword [rcx + 0x18], rax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x10], rbp
mov rax, qword [rbx]
test rax, rax
jne 0x140026934
cmp rbx, qword [rdi + 0x18]
jne 0x140026bd7
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14002694d
cmp rbx, qword [rdi + 0x10]
jne 0x140026c21
mov qword [rdi + 0x10], rax
jmp 0x140026950
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x140026962
mov qword [rdi + 0x18], rax
jmp 0x140026966
mov qword [rcx + 8], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
cmp qword [rbx], rbp
jne 0x140026c6b
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], rbp
cmp qword [rdi + 0x38], rbp
jne 0x14002698d
mov qword [rdi + 0x38], rbx
jmp 0x140026995
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 0x140026a06
cmp qword [rdi + 0x168], 0xffffffffffffffff
je 0x140026a06
mov rcx, qword [rdi + 0x170]
lea rdx, [0x14008e4e4]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140026a06
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140026a06
lea rdx, str.Failed_to_signal_end_of_connection_via_inter_thread_communication_channel
mov rcx, rdi
call fcn.1400285a0
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.1400317b0
mov rcx, rax
lea r8, [0x140092160]
lea rax, str._NULL____connection___next_____connection____daemon__suspended_connections_tail__
mov r9d, 0xc6f
lea rdx, [0x14008eef8]
mov qword [rsp + 0x20], rax
call fcn.140008f10
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
call fcn.140031e50
call fcn.140033840
int3
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
lea r8, [0x140092290]
lea rax, str._NULL____connection___prev_____connection____daemon__suspended_connections_head__
mov r9d, 0xc6f
lea rdx, [0x14008ef98]
mov qword [rsp + 0x20], rax
call fcn.140008f10
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
call fcn.140031e50
call fcn.140033840
int3
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
lea r8, [0x140092300]
lea rax, [0x140092370]
mov r9d, 0xc79
lea rdx, [0x14008f0e8]
mov qword [rsp + 0x20], rax
call fcn.140008f10
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
call fcn.140031e50
call fcn.140033840
int3
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
lea r8, [0x1400924e0]
lea rax, [0x140092430]
mov r9d, 0xc79
lea rdx, [0x14008f178]
mov qword [rsp + 0x20], rax
call fcn.140008f10
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
call fcn.140031e50
call fcn.140033840
int3
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
lea r8, [0x140092560]
lea rax, [0x1400925e0]
mov r9d, 0xc7d
lea rdx, [0x14008f2d8]
mov qword [rsp + 0x20], rax
call fcn.140008f10
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
call fcn.140031e50
call fcn.140033840
int3
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
lea r8, [0x140092760]
lea rax, [0x1400926c0]
mov r9d, 0xc7d
lea rdx, [0x14008f398]
mov qword [rsp + 0x20], rax
call fcn.140008f10
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
call fcn.140031e50
call fcn.140033840
int3
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
lea r8, [0x1400927d0]
lea rax, str._NULL____connection___next_____connection____daemon__connections_tail__
mov r9d, 0xc81
lea rdx, [0x14008f438]
mov qword [rsp + 0x20], rax
call fcn.140008f10
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
call fcn.140031e50
call fcn.140033840
int3
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
lea r8, [0x1400928d0]
lea rax, str._NULL____connection___prev_____connection____daemon__connections_head__
mov r9d, 0xc81
lea rdx, [0x14008f4e8]
mov qword [rsp + 0x20], rax
call fcn.140008f10
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
call fcn.140031e50
call fcn.140033840
int3
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
lea r8, [0x140092940]
lea rax, str.NULL___connection___next
mov r9d, 0xc85
lea rdx, [0x14008f608]
mov qword [rsp + 0x20], rax
call fcn.140008f10
mov ecx, 2
call fcn.1400317b0
mov rcx, rax
call fcn.140031e50
call fcn.140033840
int3