Function at 0x40c9b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x848
mov eax, dword [0x44a00c]
xor eax, esp
mov dword [esp + 0x844], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], ecx
mov ecx, dword [eax]
cmp byte [edi + 0x34], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 0
je 0x40ca03
lea eax, [edi + 0x18]
push eax
mov eax, dword [edi + 0x20]
call eax
jmp 0x40ca0a
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x70]
mov eax, ecx
mov esi, dword [ebp + 8]
mov edx, dword [ecx + 4]
cmp byte [edx + 0xd], 0
jne 0x40ca34
nop dword [eax + eax]
cmp dword [edx + 0x10], esi
jae 0x40ca2a
mov edx, dword [edx + 8]
jmp 0x40ca2e
mov eax, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x40ca20
cmp eax, ecx
je 0x40ca3d
cmp esi, dword [eax + 0x10]
jae 0x40ca3f
mov eax, ecx
cmp eax, ecx
je 0x40cb2c
mov esi, dword [eax + 0x14]
push 0
call fcn.004230b2
mov ecx, dword [esp + 0xc]
add esp, 4
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
mov eax, dword [ecx + 4]
mov dword [esi + 0x68], eax
mov ax, word [ecx + 2]
mov word [esi + 0x6c], ax
mov eax, dword [esi + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40cc76
cmp dword [eax], 1
jne 0x40caf3
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esi + 0x44]
je 0x40cae6
cmp ecx, 0xffffffff
je 0x40cae6
cmp ecx, dword [esi + 0x3c]
je 0x40cae6
mov edx, dword [eax + 0x44]
test edx, edx
je 0x40cade
mov eax, dword [eax + 0x40]
test eax, eax
jle 0x40cade
push 0x409c80
push 0xc
push eax
push edx
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x40], 0
call fcn.00424d2a
add esp, 0x14
test eax, eax
je 0x40cade
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [esp + 0xc], esi
cmovne eax, dword [esp + 0xc]
jmp 0x40cb53
mov dword [esp + 0xc], 0
xor eax, eax
cmp dword [esp + 0xc], esi
cmovne eax, dword [esp + 0xc]
jmp 0x40cb53
mov ecx, dword [eax + 0x40]
xor edx, edx
mov dword [esp + 0xc], ecx
test ecx, ecx
jle 0x40cb2c
mov eax, dword [eax + 0x44]
mov dword [esp + 0x20], eax
lea ecx, [eax + 4]
mov eax, dword [esp + 0xc]
nop
cmp esi, dword [ecx + 4]
je 0x40cb24
mov eax, dword [ecx]
and eax, dword [esp + 0x14]
cmp eax, dword [ecx - 4]
je 0x40cb48
mov eax, dword [esp + 0xc]
inc edx
add ecx, 0xc
cmp edx, eax
jl 0x40cb10
mov esi, dword [esp + 8]
cmp byte [edi + 0x34], 0
je 0x40cc7d
lea eax, [edi + 0x18]
push eax
mov eax, dword [edi + 0x28]
call eax
jmp 0x40cc84
mov ecx, dword [esp + 0x20]
lea eax, [edx + edx*2]
mov eax, dword [ecx + eax*4 + 8]
mov dword [esp + 0xc], eax
test eax, eax
je 0x40cb2c
cmp byte [eax + 0x64], 0
je 0x40cb2c
cmp dword [eax + 0x68], 0
je 0x40cb2c
cmp word [eax + 0x6c], 0
je 0x40cb2c
push 0
call fcn.004230b2
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0xc]
sub ecx, dword [eax + 0x70]
sbb edx, dword [eax + 0x74]
mov eax, edx
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
test eax, eax
jg 0x40cb2c
jl 0x40cb9a
cmp ecx, 0xf
jae 0x40cb2c
mov eax, dword [str.VLAN]
push dword [esp + 0x1c]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov byte [esp + 0x17], 1
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], 2
call esi
mov dword [esp + 0x4e], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x52], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x56], eax
mov eax, dword [esp + 0xc]
push dword [eax + 0x60]
call esi
mov ecx, dword [esp + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x5a], eax
mov eax, dword [ecx + 0x68]
mov dword [esp + 0x5e], eax
movzx eax, word [ecx + 0x6c]
mov word [esp + 0x62], ax
mov eax, 2
movaps xmmword [esp + 0x30], xmm0
mov word [esp + 0x30], ax
mov eax, dword [ecx + 0x68]
mov dword [esp + 0x34], eax
movzx eax, word [ecx + 0x6c]
mov word [esp + 0x32], ax
mov eax, dword [str.VLAN]
mov dword [esp + 0x448], eax
mov word [esp + 0x44c], 2
push dword [ecx + 0x60]
call esi
push dword [esp + 0x1c]
mov dword [esp + 0x452], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x456], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x45a], eax
call esi
mov esi, dword [esp + 8]
mov dword [esp + 0x45a], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x45e], eax
movzx eax, word [esi + 2]
mov word [esp + 0x462], ax
jmp 0x40cb30
mov esi, ecx
jmp 0x40cb30
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
je 0x40ccba
push 0x10
push esi
mov esi, dword [sym.imp.WS2_32.dll_sendto]
lea eax, [esp + 0x50]
push 0
push 0x1c
push eax
push dword [edi + 0x58]
call esi
push 0x10
lea eax, [esp + 0x34]
push eax
push 0
push 0x1c
lea eax, [esp + 0x458]
push eax
push dword [edi + 0x58]
call esi
mov ecx, dword [esp + 0x84c]
pop edi
pop esi
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret 0xc