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

Disassembly:
push rsi
push rdi
push r13
push r14
sub rsp, 0x38
mov r14d, dword [rcx + 0x194]
xor r13d, r13d
shr r14d, 2
mov rdi, rcx
and r14b, 1
mov esi, r13d
cmp qword [rcx + 0xc8], r13
jne 0x14005877e
mov qword [rsp + 0x70], r12
add rcx, 0x130
mov qword [rsp + 0x30], r15
mov r15d, r13d
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [rdi + 0x17b], sil
je 0x1400584eb
mov rsi, qword [rdi + 0x28]
test rsi, rsi
jne 0x1400584eb
movzx eax, byte [rdi + 0x178]
test al, al
je 0x1400587c8
mov qword [rsp + 0x60], rbx
mov rbx, rsi
mov qword [rsp + 0x68], rbp
mov byte [rdi + 0x17b], r13b
test rsi, rsi
je 0x1400586c0
nop dword [rax + rax]
lea r8, [rsi + 8]
mov rdx, qword [rsi + 0x158]
lea rbp, [rsi]
mov rsi, qword [r8]
cmp byte [rbx + 0x168], r13b
je 0x1400586a8
test rdx, rdx
je 0x140058549
movzx eax, byte [rdx + 8]
test al, al
je 0x1400586a8
cmp byte [rdx + 9], r13b
je 0x1400586a8
mov r15d, 1
cmp byte [rbx + 0x160], r13b
je 0x140058734
mov rax, qword [rbx]
test rax, rax
jne 0x14005856e
cmp rbx, qword [rdi + 0x28]
jne 0x140058812
mov rcx, qword [r8]
test rcx, rcx
jne 0x140058586
cmp rbx, qword [rdi + 0x20]
jne 0x14005885c
mov qword [rdi + 0x20], rax
jmp 0x140058589
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [r8]
test rcx, rcx
jne 0x14005859a
mov qword [rdi + 0x28], rax
jmp 0x14005859e
mov qword [rcx + 8], rax
mov qword [rbx], r13
mov qword [r8], r13
mov byte [rbx + 0x160], r13b
test rdx, rdx
jne 0x140058682
mov rax, qword [rdi + 0x10]
mov qword [rbx], rax
cmp qword [rdi + 0x18], r13
jne 0x1400585c7
mov qword [rdi + 0x18], rbx
jmp 0x1400585cf
mov rax, qword [rdi + 0x10]
mov qword [rax + 8], rbx
mov qword [rdi + 0x10], rbx
test r14b, r14b
jne 0x1400586a1
mov rax, qword [rbx + 0x108]
test rax, rax
je 0x1400585fb
call fcn.140061750
mov qword [rbx + 0x100], rax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x10]
cmp rax, qword [rdi + 0x188]
jne 0x140058645
test rcx, rcx
jne 0x1400588f0
cmp qword [rbx + 0x18], r13
jne 0x1400588a6
mov rax, qword [rdi + 0x40]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r13
cmp qword [rdi + 0x48], r13
jne 0x140058637
mov qword [rdi + 0x48], rbx
mov qword [rdi + 0x40], rbx
jmp 0x1400586a1
mov rax, qword [rdi + 0x40]
mov qword [rax + 0x18], rbx
mov qword [rdi + 0x40], rbx
jmp 0x1400586a1
test rcx, rcx
jne 0x140058984
cmp qword [rbx + 0x18], r13
jne 0x14005893a
mov rax, qword [rdi + 0x50]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r13
cmp qword [rdi + 0x58], r13
jne 0x140058674
mov qword [rdi + 0x58], rbx
mov qword [rdi + 0x50], rbx
jmp 0x1400586a1
mov rax, qword [rdi + 0x50]
mov qword [rax + 0x18], rbx
mov qword [rdi + 0x50], rbx
jmp 0x1400586a1
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
cmp qword [rdi + 0x38], r13
jne 0x140058695
mov qword [rdi + 0x38], rbx
jmp 0x14005869d
mov rax, qword [rdi + 0x30]
mov qword [rax + 8], rbx
mov qword [rdi + 0x30], rbx
mov byte [rbx + 0x168], r13b
mov rbx, rsi
test rsi, rsi
jne 0x140058510
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rdi + 0x130]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test r14b, r14b
je 0x140058712
test r15d, r15d
je 0x140058712
mov rcx, qword [rdi + 0x170]
lea rdx, [0x14028bad4]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140058712
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140058712
lea rdx, str.Failed_to_signal_resume_of_connection_via_inter_thread_communication_channel.
mov rcx, rdi
call fcn.140061980
mov rbp, qword [rsp + 0x68]
mov eax, r15d
mov r15, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x70]
add rsp, 0x38
pop r14
pop r13
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028d8c8]
lea rax, str.pos__suspended
mov r9d, 0xaba
lea rdx, [0x14028d950]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028da50]
lea rax, str.NULL__daemon__worker_pool
mov r9d, 0xa9b
lea rdx, [0x14028da20]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028d9c0]
lea rax, str._NULL___prev____daemon__shutdown_
mov r9d, 0xaa4
lea rdx, [0x14028d990]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028d890]
lea rax, str._NULL____pos___next_____pos____daemon__suspended_connections_tail__
mov r9d, 0xabd
lea rdx, [0x14028d860]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028d7d8]
lea rax, str._NULL____pos___prev_____pos____daemon__suspended_connections_head__
mov r9d, 0xabd
lea rdx, [0x14028d7a8]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028d6d8]
lea rax, str.NULL___pos___prevX
mov r9d, 0xacd
lea rdx, [0x14028d6a8]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028d758]
lea rax, str.NULL___pos___nextX
mov r9d, 0xacd
lea rdx, [0x14028d728]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028d408]
lea rax, [0x14028d610]
mov r9d, 0xad1
lea rdx, [0x14028d5e0]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x14028d658]
lea rax, [0x14028d690]
mov r9d, 0xad1
lea rdx, [0x14028d628]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3