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

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov ebp, dword [rcx + 0x194]
xor r12d, r12d
shr ebp, 2
mov rdi, rcx
and bpl, 1
mov esi, r12d
cmp qword [rcx + 0xc8], r12
jne 0x1800205c2
mov qword [rsp + 0x58], r14
add rcx, 0x130
mov qword [rsp + 0x60], r15
mov r14d, r12d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rdi + 0x17b], sil
je 0x18002036b
mov rsi, qword [rdi + 0x28]
test rsi, rsi
jne 0x18002036b
movzx eax, byte [rdi + 0x178]
test al, al
je 0x18002060c
mov qword [rsp + 0x50], rbx
mov rbx, rsi
mov byte [rdi + 0x17b], r12b
test rsi, rsi
je 0x180020550
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsi + 8]
mov r8, qword [rsi + 0x158]
mov rsi, qword [rcx]
cmp byte [rbx + 0x168], r12b
je 0x180020539
test r8, r8
je 0x1800203c7
movzx eax, byte [r8 + 8]
test al, al
je 0x180020539
cmp byte [r8 + 9], r12b
je 0x180020539
mov r14d, 1
cmp byte [rbx + 0x160], r12b
je 0x180020812
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800203ec
cmp rbx, qword [rdi + 0x28]
jne 0x180020656
mov rax, qword [rcx]
test rax, rax
jne 0x180020409
cmp rbx, qword [rdi + 0x20]
jne 0x1800206a0
test rax, rax
jne 0x180020409
mov qword [rdi + 0x20], rdx
jmp 0x18002040c
mov qword [rax], rdx
mov rdx, qword [rbx]
mov rax, qword [rcx]
test rdx, rdx
jne 0x18002041d
mov qword [rdi + 0x28], rax
jmp 0x180020421
mov qword [rdx + 8], rax
mov qword [rbx], r12
mov qword [rcx], r12
mov byte [rbx + 0x160], r12b
test r8, r8
jne 0x180020510
mov rax, qword [rdi + 0x10]
mov qword [rbx], rax
mov qword [rcx], r12
cmp qword [rdi + 0x18], r12
jne 0x18002044d
mov qword [rdi + 0x18], rbx
jmp 0x180020455
mov rax, qword [rdi + 0x10]
mov qword [rax + 8], rbx
mov qword [rdi + 0x10], rbx
test bpl, bpl
jne 0x180020532
cmp qword [rbx + 0x108], r12
je 0x180020477
call fcn.180029ba0
mov qword [rbx + 0x100], rax
mov rax, qword [rdi + 0x188]
cmp qword [rbx + 0x108], rax
jne 0x1800204c5
cmp qword [rbx + 0x10], r12
jne 0x180020734
cmp qword [rbx + 0x18], r12
jne 0x1800206ea
mov rax, qword [rdi + 0x40]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r12
cmp qword [rdi + 0x48], r12
jne 0x1800204b7
mov qword [rdi + 0x48], rbx
mov qword [rdi + 0x40], rbx
jmp 0x180020532
mov rax, qword [rdi + 0x40]
mov qword [rax + 0x18], rbx
mov qword [rdi + 0x40], rbx
jmp 0x180020532
cmp qword [rbx + 0x10], r12
jne 0x1800207c8
cmp qword [rbx + 0x18], r12
jne 0x18002077e
mov rax, qword [rdi + 0x50]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r12
cmp qword [rdi + 0x58], r12
jne 0x1800204f5
mov qword [rdi + 0x58], rbx
mov qword [rdi + 0x50], rbx
jmp 0x180020532
mov rax, qword [rdi + 0x50]
mov qword [rax + 0x18], rbx
mov qword [rdi + 0x50], rbx
jmp 0x180020532
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
mov qword [rcx], r12
cmp qword [rdi + 0x38], r12
jne 0x180020526
mov qword [rdi + 0x38], rbx
jmp 0x18002052e
mov rax, qword [rdi + 0x30]
mov qword [rax + 8], rbx
mov qword [rdi + 0x30], rbx
mov byte [rbx + 0x168], r12b
mov rbx, rsi
test rsi, rsi
jne 0x180020390
nop word [rax + rax]
lea rcx, [rdi + 0x130]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bpl, bpl
je 0x1800205a2
test r14d, r14d
je 0x1800205a2
mov rcx, qword [rdi + 0x170]
lea rdx, [0x18008524c]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1800205a2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1800205a2
lea rdx, str.Failed_to_signal_resume_of_connection_via_inter_thread_communication_channel.
mov rcx, rdi
call fcn.180029dd0
mov rbx, qword [rsp + 0x50]
mov eax, r14d
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x180087010]
lea rax, str.NULL__daemon__worker_pool
mov r9d, 0xa9b
lea rdx, [0x180086fe0]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x1800870d0]
lea rax, str._NULL___prev____daemon__shutdown_
mov r9d, 0xaa4
lea rdx, [0x180087130]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x1800871f0]
lea rax, str._NULL____pos___next_____pos____daemon__suspended_connections_tail__
mov r9d, 0xabd
lea rdx, [0x1800872f0]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x180087350]
lea rax, str._NULL____pos___prev_____pos____daemon__suspended_connections_head__
mov r9d, 0xabd
lea rdx, [0x180087320]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x1800875c0]
lea rax, [0x180087530]
mov r9d, 0xacd
lea rdx, [0x180087578]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x1800874d0]
lea rax, [0x180086e28]
mov r9d, 0xacd
lea rdx, [0x180087548]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x180087710]
lea rax, str.NULL___pos___prevX
mov r9d, 0xad1
lea rdx, [0x1800876c8]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x180087620]
lea rax, str.NULL___pos___nextX
mov r9d, 0xad1
lea rdx, [0x180087698]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x180087190]
lea rax, str.pos__suspended
mov r9d, 0xaba
lea rdx, [0x180087160]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3