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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x126], 0
mov rbx, rcx
mov rdi, qword [rcx + 0x20]
jne 0x14002db90
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov byte [rcx + 0x126], 1
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x48], rsi
test rcx, rcx
je 0x14002d983
call fcn.14002ef40
mov qword [rbx + 0x38], rbp
lea rcx, [rdi + 0x130]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [rbx + 0x160], bpl
je 0x14002d9f3
mov rax, qword [rbx]
test rax, rax
jne 0x14002d9ab
cmp rbx, qword [rdi + 0x28]
jne 0x14002db9b
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14002d9c4
cmp rbx, qword [rdi + 0x20]
jne 0x14002dbe5
mov qword [rdi + 0x20], rax
jmp 0x14002d9c7
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x14002d9e3
mov qword [rdi + 0x28], rax
mov byte [rbx + 0x160], bpl
jmp 0x14002dae6
mov qword [rcx + 8], rax
mov byte [rbx + 0x160], bpl
jmp 0x14002dae6
mov eax, dword [rdi + 0x194]
and eax, 4
test al, al
jne 0x14002daa2
mov rax, qword [rdi + 0x188]
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x108], rax
jne 0x14002da57
test rcx, rcx
jne 0x14002da27
cmp rbx, qword [rdi + 0x48]
jne 0x14002dc2f
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x14002da40
cmp rbx, qword [rdi + 0x40]
jne 0x14002dc79
mov qword [rdi + 0x40], rcx
jmp 0x14002da44
mov qword [rax + 0x10], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x14002da96
mov qword [rdi + 0x48], rax
jmp 0x14002da9a
test rcx, rcx
jne 0x14002da66
cmp rbx, qword [rdi + 0x58]
jne 0x14002dcc3
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x14002da7f
cmp rbx, qword [rdi + 0x50]
jne 0x14002dd0d
mov qword [rdi + 0x50], rcx
jmp 0x14002da83
mov qword [rax + 0x10], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
test rcx, rcx
jne 0x14002da96
mov qword [rdi + 0x58], rax
jmp 0x14002da9a
mov qword [rcx + 0x18], rax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x10], rbp
mov rax, qword [rbx]
test rax, rax
jne 0x14002dab4
cmp rbx, qword [rdi + 0x18]
jne 0x14002dd57
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14002dacd
cmp rbx, qword [rdi + 0x10]
jne 0x14002dda1
mov qword [rdi + 0x10], rax
jmp 0x14002dad0
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
test rcx, rcx
jne 0x14002dae2
mov qword [rdi + 0x18], rax
jmp 0x14002dae6
mov qword [rcx + 8], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
cmp qword [rbx], rbp
jne 0x14002ddeb
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], rbp
cmp qword [rdi + 0x38], rbp
jne 0x14002db0d
mov qword [rdi + 0x38], rbx
jmp 0x14002db15
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 + 0x125], bpl
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [rdi + 0x194]
and eax, 4
test al, al
je 0x14002db86
cmp qword [rdi + 0x168], 0xffffffffffffffff
je 0x14002db86
mov rcx, qword [rdi + 0x170]
lea rdx, [0x1402dec94]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x14002db86
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14002db86
lea rdx, str.Failed_to_signal_end_of_connection_via_inter_thread_communication_channel
mov rcx, rdi
call fcn.14002fa20
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.1401d9d24
mov rcx, rax
lea r8, [0x1402e2a88]
lea rax, str._NULL____connection___next_____connection____daemon__suspended_connections_tail__
mov r9d, 0xcba
lea rdx, [0x1402e2a58]
mov qword [rsp + 0x20], rax
call fcn.1400108b0
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
call fcn.1401db71c
call fcn.1401e9cd4
int3
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
lea r8, [0x1402e29a8]
lea rax, str._NULL____connection___prev_____connection____daemon__suspended_connections_head__
mov r9d, 0xcba
lea rdx, [0x1402e2978]
mov qword [rsp + 0x20], rax
call fcn.1400108b0
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
call fcn.1401db71c
call fcn.1401e9cd4
int3
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
lea r8, [0x1402e2888]
lea rax, [0x1402e2920]
mov r9d, 0xcc4
lea rdx, [0x1402e2858]
mov qword [rsp + 0x20], rax
call fcn.1400108b0
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
call fcn.1401db71c
call fcn.1401e9cd4
int3
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
lea r8, [0x1402e2798]
lea rax, [0x1402e2800]
mov r9d, 0xcc4
lea rdx, [0x1402e2768]
mov qword [rsp + 0x20], rax
call fcn.1400108b0
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
call fcn.1401db71c
call fcn.1401e9cd4
int3
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
lea r8, [0x1402e2698]
lea rax, str._NULL____connection___nextX_____connection____daemon__manual_timeout_tail__
mov r9d, 0xcc8
lea rdx, [0x1402e2668]
mov qword [rsp + 0x20], rax
call fcn.1400108b0
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
call fcn.1401db71c
call fcn.1401e9cd4
int3
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
lea r8, [0x1402e25d0]
lea rax, str._NULL____connection___prevX_____connection____daemon__manual_timeout_head__
mov r9d, 0xcc8
lea rdx, [0x1402e25a0]
mov qword [rsp + 0x20], rax
call fcn.1400108b0
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
call fcn.1401db71c
call fcn.1401e9cd4
int3
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
lea r8, [0x1402e2510]
lea rax, str._NULL____connection___next_____connection____daemon__connections_tail__
mov r9d, 0xccc
lea rdx, [0x1402e24e0]
mov qword [rsp + 0x20], rax
call fcn.1400108b0
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
call fcn.1401db71c
call fcn.1401e9cd4
int3
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
lea r8, [0x1402e2450]
lea rax, str._NULL____connection___prev_____connection____daemon__connections_head__
mov r9d, 0xccc
lea rdx, [0x1402e2420]
mov qword [rsp + 0x20], rax
call fcn.1400108b0
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
call fcn.1401db71c
call fcn.1401e9cd4
int3
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
lea r8, [0x1402e23c0]
lea rax, str.NULL___connection___next
mov r9d, 0xcd0
lea rdx, [0x1402e2390]
mov qword [rsp + 0x20], rax
call fcn.1400108b0
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
call fcn.1401db71c
call fcn.1401e9cd4
int3