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

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0xa8], 0
mov edi, dword [esi + 0x10]
jne 0x4c0c8c
mov ecx, dword [esi + 0x1c]
mov byte [esi + 0xa8], 1
test ecx, ecx
je 0x4c0a0f
call fcn.004bd9f0
mov dword [esi + 0x1c], 0
lea ebx, [edi + 0x9c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0xdc], 0
je 0x4c0a86
mov eax, dword [esi]
test eax, eax
jne 0x4c0a34
cmp esi, dword [edi + 0x14]
jne 0x4c0c90
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4c0a5e
cmp esi, dword [edi + 0x10]
je 0x4c0a59
push str._NULL____connection___prev_____connection____daemon__suspended_connections_head__
push 0xc72
push 0x54114c
push 0x5411dc
jmp 0x4c0ca4
mov dword [edi + 0x10], eax
jmp 0x4c0a60
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
test ecx, ecx
jne 0x4c0a77
mov dword [edi + 0x14], eax
mov byte [esi + 0xdc], cl
jmp 0x4c0be3
mov dword [ecx + 4], eax
mov byte [esi + 0xdc], 0
jmp 0x4c0be3
test dword [edi + 0xe4], 4
jne 0x4c0b82
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 8]
cmp eax, dword [edi + 0xd8]
jne 0x4c0b13
mov eax, dword [esi + 0x94]
cmp eax, dword [edi + 0xdc]
jne 0x4c0b13
test ecx, ecx
jne 0x4c0ad7
cmp esi, dword [edi + 0x24]
je 0x4c0ad7
push 0x541188
push 0xc7c
push 0x54108c
push 0x54111c
jmp 0x4c0ca4
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4c0b01
cmp esi, dword [edi + 0x20]
je 0x4c0afc
push 0x5410c8
push 0xc7c
push 0x540fcc
push 0x54105c
jmp 0x4c0ca4
mov dword [edi + 0x20], ecx
jmp 0x4c0b04
mov dword [eax + 8], ecx
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
test ecx, ecx
jne 0x4c0b71
mov dword [edi + 0x24], eax
jmp 0x4c0b74
test ecx, ecx
jne 0x4c0b35
cmp esi, dword [edi + 0x2c]
je 0x4c0b35
push str._NULL____connection___nextX_____connection____daemon__manual_timeout_tail__
push 0xc80
push 0x540f0c
push 0x540f9c
jmp 0x4c0ca4
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4c0b5f
cmp esi, dword [edi + 0x28]
je 0x4c0b5a
push str._NULL____connection___prevX_____connection____daemon__manual_timeout_head__
push 0xc80
push 0x540ed0
push 0x540ea0
jmp 0x4c0ca4
mov dword [edi + 0x28], ecx
jmp 0x4c0b62
mov dword [eax + 8], ecx
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
test ecx, ecx
jne 0x4c0b71
mov dword [edi + 0x2c], eax
jmp 0x4c0b74
mov dword [ecx + 0xc], eax
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov eax, dword [esi]
test eax, eax
jne 0x4c0ba6
cmp esi, dword [edi + 0xc]
je 0x4c0ba6
push str._NULL____connection___next_____connection____daemon__connections_tail__
push 0xc84
push 0x540d94
push 0x540e20
jmp 0x4c0ca4
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4c0bd0
cmp esi, dword [edi + 8]
je 0x4c0bcb
push str._NULL____connection___prev_____connection____daemon__connections_head__
push 0xc84
push 0x540d58
push 0x540d28
jmp 0x4c0ca4
mov dword [edi + 8], eax
jmp 0x4c0bd2
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
test ecx, ecx
jne 0x4c0be0
mov dword [edi + 0xc], eax
jmp 0x4c0be3
mov dword [ecx + 4], eax
mov dword [esi], 0
mov dword [esi + 4], 0
cmp dword [esi], 0
je 0x4c0c0e
push str.NULL___connection___next
push 0xc88
push 0x540cd0
push 0x540ca0
jmp 0x4c0ca4
mov eax, dword [edi + 0x18]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [edi + 0x1c], 0
jne 0x4c0c25
mov dword [edi + 0x1c], esi
jmp 0x4c0c2b
mov eax, dword [edi + 0x18]
mov dword [eax + 4], esi
mov dword [edi + 0x18], esi
push ebx
mov byte [esi + 0xe4], 0
mov byte [esi + 0xa7], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test dword [edi + 0xe4], 4
je 0x4c0c8c
cmp dword [edi + 0xbc], 0xffffffff
je 0x4c0c8c
push 0
push 1
push 0x540c9c
push dword [edi + 0xc0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x4c0c8c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4c0c8c
push str.Failed_to_signal_end_of_connection_via_inter_thread_communication_channel
push edi
call fcn.004c1e90
add esp, 8
pop edi
pop esi
pop ebx
ret
push str._NULL____connection___next_____connection____daemon__suspended_connections_tail__
push 0xc72
push 0x54120c
push 0x5412a0
push 2
call fcn.004cb8fa
add esp, 4
push eax
call fcn.004038b0
add esp, 0x14
push 2
call fcn.004cb8fa
add esp, 4
push eax
call fcn.004cd32e
add esp, 4
call fcn.004cebb9
int3