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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
cmp ebx, edx
push esi
push edi
mov dword [esp + 0x810], edx
jne 0x66b6c9
mov eax, dword [0x744d48]
mov dword [ebp + 8], eax
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, 0x3b
jne 0x66b6f6
mov ebx, dword [ebx + 0xdc]
cmp ebx, edx
je case.0x66b788.3
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push eax
call ebx
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 0x5c
jne 0x66b728
lea esi, [esp + 0x10]
mov edi, ebx
call fcn.0066b570
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x810]
push 0x10
push eax
mov eax, dword [ebx]
push 0
push ecx
mov edx, esi
push edx
push eax
call sub.WSOCK32.dll_sendto
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
cmp esi, 7
jl case.0x66b788.3
cmp cl, 0xfe
jne case.0x66b788.3
cmp byte [eax + 1], 0xfd
jne case.0x66b788.3
cmp dword [ebx + 0xb8], edx
jle 0x66b755
mov dword [ebx + 0xb8], edx
mov cl, byte [eax + 2]
mov edx, dword [eax + 3]
mov byte [esp + 0x10], cl
movsx ecx, cl
sub esi, 7
cmp ecx, 6
mov dword [esp + 0x11], edx
lea edi, [eax + 7]
mov edx, 5
mov dword [esp + 0xc], edi
mov dword [ebp + 0x10], esi
mov dword [esp + 0x810], edx
ja case.0x66b788.3
jmp dword [ecx*4 + 0x66b8fc]
lea eax, [esp + 0x10]
push eax
push ebx
mov edx, esi
mov ecx, edi
call fcn.0066b230
add esp, 8
jmp 0x66b8d5
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x66b7c3
cmp esi, 0xd
jl 0x66b7c3
lea edx, [edi + esi - 0xd]
mov esi, ebx
call fcn.0066aed0
mov esi, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
push ebx
mov ebx, esi
lea edi, [esp + 0x14]
call fcn.0066ae40
mov ebx, dword [ebp + 8]
jmp 0x66b8d2
cmp esi, 0x20
jle 0x66b7ea
mov dword [ebp + 0x10], 0x20
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, esi
mov byte [esp + 0x10], dl
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x15]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [esp + 0x810], eax
jmp 0x66b8d5
mov edx, dword [ebx + 0xb8]
or ecx, 0xffffffff
cmp edx, ecx
je case.0x66b788.3
xor edi, edi
jmp 0x66b830
mov dl, byte [edi + eax + 3]
cmp dl, byte [ebx + edi + 0x84]
jne case.0x66b788.3
inc edi
cmp edi, 4
jl 0x66b830
cmp esi, 2
jl case.0x66b788.3
mov eax, dword [ebx + 0x114]
push eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xb8], ecx
movsx edx, byte [eax]
lea ecx, [eax + 1]
push ecx
push edx
call dword [ebx + 0x9c]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x66b880
mov cl, byte [edi + eax + 3]
cmp cl, byte [ebx + edi + 0x84]
jne case.0x66b788.3
inc edi
cmp edi, 4
jl 0x66b880
cmp esi, 4
jl case.0x66b788.3
mov edx, dword [esp + 0xc]
mov edi, dword [edx]
mov esi, ebx
mov byte [esp + 0x10], 7
mov dword [esp + 0x15], edi
mov dword [esp + 0x810], 9
call fcn.0066b660
test eax, eax
jne 0x66b8d5
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
add eax, 4
add edx, 0xfffffffc
push eax
mov edi, ebx
call fcn.0066b5c0
add esp, 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x810]
push 0x10
push ecx
mov ecx, dword [ebx]
push 0
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call sub.WSOCK32.dll_sendto
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret