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

Disassembly:
test rcx, rcx
je 0x140017953
push rbx
sub rsp, 0x20
test dword [rcx + 0x18c], 0x2000
mov rbx, rcx
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x48], r14
je 0x14001760c
call fcn.140014ca0
mov eax, dword [rbx + 0x18c]
xor ebp, ebp
mov r14, qword [rbx + 0x150]
and eax, 8
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov byte [rbx + 0x170], 1
test al, al
je 0x140017889
cmp qword [rbx + 0xc8], rbp
je 0x1400177ec
mov edi, ebp
cmp dword [rbx + 0xf0], ebp
jbe 0x1400176b5
nop
mov eax, edi
imul rcx, rax, 0x1e0
mov rax, qword [rbx + 0xc8]
mov byte [rcx + rax + 0x170], 1
mov rax, qword [rbx + 0xc8]
cmp qword [rcx + rax + 0x160], 0xffffffffffffffff
je 0x1400176ab
mov rcx, qword [rcx + rax + 0x168]
lea rdx, [0x1400b01f4]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1400176ab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14001776f
inc edi
cmp edi, dword [rbx + 0xf0]
jb 0x140017650
mov esi, ebp
cmp dword [rbx + 0xf0], ebp
jbe 0x14001775e
mov rcx, qword [rbx + 0xc8]
or edx, 0xffffffff
mov eax, esi
imul rdi, rax, 0x1e0
mov rcx, qword [rdi + rcx + 0xf8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400177ca
mov rcx, qword [rbx + 0xc8]
mov rcx, qword [rdi + rcx + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0xc8]
mov rcx, qword [rdi + rax + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x140017739
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0xc8]
test eax, eax
jne 0x140017791
mov rcx, qword [rdi + rcx + 0x168]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x1400177a8
mov rcx, qword [rbx + 0xc8]
add rcx, 0x128
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
inc esi
cmp esi, dword [rbx + 0xf0]
jb 0x1400176c3
mov rcx, qword [rbx + 0xc8]
call fcn.140056c3c
jmp 0x140017891
mov rcx, qword [0x1400b93f8]
lea r9, str.Failed_to_signal_shutdown_via_inter_thread_communication_channel.
mov r8d, 0x18c6
lea rdx, [0x1400b3190]
call qword [0x1400b9400]
int3
mov eax, esi
imul rdx, rax, 0x1e0
mov rcx, qword [rdx + rcx + 0x168]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x1400b93f8]
lea r9, [0x1400b22a8]
mov r8d, 0x18e0
lea rdx, [0x1400b3380]
call qword [0x1400b9400]
int3
mov rcx, qword [0x1400b93f8]
lea r9, [0x1400b31e8]
mov r8d, 0x18d6
lea rdx, [0x1400b32a0]
call qword [0x1400b9400]
int3
cmp qword [rbx + 0x160], 0xffffffffffffffff
je 0x140017844
mov rcx, qword [rbx + 0x168]
lea rdx, [0x1400b0664]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140017844
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140017844
mov rcx, qword [0x1400b93f8]
lea r9, str.Failed_to_signal_shutdown_via_inter_thread_communication_channel
mov r8d, 0x18eb
lea rdx, [0x1400b3520]
call qword [0x1400b9400]
int3
mov rcx, qword [rbx + 0xf8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140017867
mov rcx, qword [rbx + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140017891
mov rcx, qword [0x1400b93f8]
lea r9, str.Failed_to_join_a_thread_n
mov r8d, 0x18f9
lea rdx, [0x1400b35f0]
call qword [0x1400b9400]
int3
mov rcx, rbx
call fcn.140017300
cmp r14, 0xffffffffffffffff
je 0x1400178d1
movzx eax, byte [rbx + 0x171]
test al, al
jne 0x1400178d1
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1400178d1
mov rcx, qword [0x1400b93f8]
lea r9, str.Close_socket_failed._n
mov r8d, 0x1905
lea rdx, [0x1400b3660]
call qword [0x1400b9400]
int3
mov rcx, qword [rbx + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x1400178ff
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x168]
test eax, eax
jne 0x140017954
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
sete bpl
test ebp, ebp
je 0x14001795a
mov rcx, qword [rbx + 0x1a0]
call fcn.140056c3c
lea rcx, [rbx + 0x1a8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rbx + 0x100]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rbx + 0x128]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, rbx
call fcn.140056c3c
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x1400b93f8]
lea r9, str.Failed_to_destroy_ITC._n
mov r8d, 0x1908
lea rdx, [0x1400b3700]
call qword [0x1400b9400]
int3