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

Disassembly:
test rcx, rcx
je 0x1400521bf
push rbx
sub rsp, 0x30
mov byte [rcx + 0x178], 1
mov rbx, rcx
movzx eax, byte [rcx + 0x179]
mov qword [rsp + 0x40], rbp
mov rbp, 0xffffffffffffffff
test al, al
jne 0x140051e76
mov rbp, qword [rcx + 0x158]
mov rdx, qword [rcx + 0xc8]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
test rdx, rdx
je 0x140051fa1
mov ecx, dword [rcx + 0xf0]
cmp ecx, 1
jbe 0x1400521c0
mov eax, dword [rbx + 0x194]
and eax, 8
test al, al
je 0x14005220a
xor edi, edi
mov esi, edi
test ecx, ecx
je 0x140051f86
nop dword [rax]
mov eax, esi
imul rcx, rax, 0x1e8
mov rax, qword [rbx + 0xc8]
mov byte [rcx + rax + 0x178], 1
mov rax, qword [rbx + 0xc8]
cmp qword [rcx + rax + 0x168], 0xffffffffffffffff
je 0x140051f39
mov rcx, qword [rcx + rax + 0x170]
lea rdx, [0x1400bfe94]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140051f43
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140051f43
mov rcx, qword [0x1400cd5b0]
lea r9, str.Failed_to_signal_shutdown_via_inter_thread_communication_channel.
mov r8d, 0x189a
lea rdx, [0x1400c6000]
call qword [0x1400cd5a8]
int3
cmp rbp, 0xffffffffffffffff
je 0x14005229e
mov ecx, dword [rbx + 0xf0]
inc esi
cmp esi, ecx
jb 0x140051ec0
mov rdx, qword [rbx + 0xc8]
test ecx, ecx
je 0x140051f86
nop
mov eax, edi
imul rcx, rax, 0x1e8
add rcx, qword [rbx + 0xc8]
call fcn.140051e40
inc edi
cmp edi, dword [rbx + 0xf0]
jb 0x140051f60
mov rdx, qword [rbx + 0xc8]
mov rcx, rdx
call fcn.140062194
cmp qword [rbx + 0x168], 0xffffffffffffffff
jne 0x140052254
jmp 0x140052112
mov ecx, dword [rcx + 0x194]
mov eax, ecx
and eax, 8
test al, al
je 0x1400520cd
cmp dword [rbx + 0xf0], 0
jne 0x1400522e8
bt ecx, 0xd
jae 0x140051fd5
mov rcx, rbx
call fcn.14004e920
mov ecx, dword [rbx + 0x194]
and ecx, 8
test cl, cl
je 0x1400520d5
cmp qword [rbx + 0x168], 0xffffffffffffffff
je 0x140052083
mov rcx, qword [rbx + 0x170]
lea rdx, [0x1400bffe4]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x14005203c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14005203c
mov rcx, qword [0x1400cd5b0]
lea r9, str.Failed_to_signal_shutdown_via_inter_thread_communication_channel
mov r8d, 0x18c1
lea rdx, [0x1400c6380]
call qword [0x1400cd5a8]
int3
mov rcx, qword [rbx + 0xf8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140052061
mov rcx, qword [rbx + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400520d5
mov rcx, qword [0x1400cd5b0]
lea r9, str.Failed_to_join_a_thread_n
mov r8d, 0x18d3
lea rdx, [0x1400c6550]
call qword [0x1400cd5a8]
int3
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c6450]
lea rax, str.false
mov r9d, 0x18ce
lea rdx, [0x1400c3568]
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 rcx, rbx
call fcn.140051b60
mov rcx, qword [rbx + 0x168]
cmp rcx, 0xffffffffffffffff
je 0x140052105
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x170]
test eax, eax
jne 0x140052155
call qword [sym.imp.WS2_32.dll_closesocket]
xor edi, edi
test eax, eax
sete dil
test edi, edi
je 0x14005215b
lea rcx, [rbx + 0x130]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp qword [rbx + 0xc0], 0
jne 0x1400521ab
cmp rbp, 0xffffffffffffffff
je 0x14005217d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14005217d
mov rcx, qword [0x1400cd5b0]
lea r9, str.Close_socket_failed._n
mov r8d, 0x18f3
lea rdx, [0x1400c67d0]
call qword [0x1400cd5a8]
int3
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x1400cd5b0]
lea r9, str.Failed_to_destroy_ITC._n
mov r8d, 0x18de
lea rdx, [0x1400c6660]
call qword [0x1400cd5a8]
int3
mov rcx, qword [rbx + 0x1a8]
call fcn.140062194
lea rcx, [rbx + 0x1b0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rbx + 0x108]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, rbx
call fcn.140062194
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c5de0]
lea rax, str.1___daemon__worker_pool_size
mov r9d, 0x1890
lea rdx, [0x1400c31d8]
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, [0x1400c5e80]
lea rax, str.0____daemon__options__MHD_USE_INTERNAL_POLLING_THREAD_
mov r9d, 0x1891
lea rdx, [0x1400c3278]
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, [0x1400c6180]
lea rax, str.MHD_ITC_IS_INVALID__daemon__itc_
mov r9d, 0x18ab
lea rdx, [0x1400c3438]
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, [0x1400c60a0]
lea rax, str.MHD_INVALID_SOCKET___fd
mov r9d, 0x189d
lea rdx, [0x1400c3348]
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, [0x1400c6240]
lea rax, str.0__daemon__worker_pool_size
mov r9d, 0x18b7
lea rdx, [0x1400c34c8]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3