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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x964
push ebx
push esi
push edi
mov al, byte [0x494460]
mov byte [ebp - 0x894], al
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x893]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x494460]
mov byte [ebp - 0x914], cl
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x913]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x918], eax
mov ecx, dword [ebp - 0x918]
mov edx, dword [ecx + 0x124]
mov dword [ebp - 0x91c], edx
mov eax, dword [ebp - 0x91c]
mov ecx, dword [ebp - 0x91c]
mov edx, dword [eax + 0x1eb4]
sub edx, dword [ecx + 0x1eb0]
add edx, 2
push edx
mov eax, dword [ebp - 0x91c]
add eax, 0x1cb0
push eax
push 0x3c
mov ecx, dword [ebp - 0x918]
push ecx
call fcn.004669a0
add esp, 0x10
mov edx, dword [ebp - 0x91c]
mov eax, dword [edx + 0x1eb0]
xor ecx, ecx
mov cl, byte [eax]
and ecx, 0xff
mov dword [ebp - 0x920], ecx
mov edx, dword [ebp - 0x91c]
mov eax, dword [edx + 0x1eb0]
add eax, 1
mov ecx, dword [ebp - 0x91c]
mov dword [ecx + 0x1eb0], eax
mov edx, dword [ebp - 0x920]
mov dword [ebp - 0x924], edx
cmp dword [ebp - 0x924], 0x18
je 0x466638
cmp dword [ebp - 0x924], 0x23
je 0x466710
cmp dword [ebp - 0x924], 0x27
je 0x4667e8
jmp 0x466996
mov eax, dword [ebp - 0x91c]
add eax, 0x1c08
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 6
mov dword [ebp - 0x80c], eax
push 0xf0
push 0xff
mov ecx, dword [ebp - 0x91c]
add ecx, 0x1c08
push ecx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
push 0x800
lea edx, [ebp - 0x804]
push edx
call fcn.00450fe0
add esp, 0x28
push 0
mov eax, dword [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x190]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x808], eax
cmp dword [ebp - 0x808], 0
jge 0x4666e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
push ecx
push str.Sending_data_failed___d_
mov edx, dword [ebp - 0x918]
push edx
call fcn.004466f0
add esp, 0xc
mov eax, dword [ebp - 0x80c]
sub eax, 2
push eax
lea ecx, [ebp - 0x802]
push ecx
push 0x3e
mov edx, dword [ebp - 0x918]
push edx
call fcn.004669a0
add esp, 0x10
jmp 0x466996
mov eax, dword [ebp - 0x91c]
add eax, 0x1c28
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 6
mov dword [ebp - 0x80c], eax
push 0xf0
push 0xff
mov ecx, dword [ebp - 0x91c]
add ecx, 0x1c28
push ecx
push 0
push 0x23
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
push 0x800
lea edx, [ebp - 0x804]
push edx
call fcn.00450fe0
add esp, 0x28
push 0
mov eax, dword [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x190]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x808], eax
cmp dword [ebp - 0x808], 0
jge 0x4667c1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
push ecx
push str.Sending_data_failed___d_
mov edx, dword [ebp - 0x918]
push edx
call fcn.004466f0
add esp, 0xc
mov eax, dword [ebp - 0x80c]
sub eax, 2
push eax
lea ecx, [ebp - 0x802]
push ecx
push 0x3e
mov edx, dword [ebp - 0x918]
push edx
call fcn.004669a0
add esp, 0x10
jmp 0x466996
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
push 0x800
lea eax, [ebp - 0x804]
push eax
call fcn.00450fe0
add esp, 0x1c
mov dword [ebp - 0x80c], 4
mov ecx, dword [ebp - 0x91c]
mov edx, dword [ecx + 0x1cac]
mov dword [ebp - 4], edx
jmp 0x466833
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x4668de
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x810], eax
mov ecx, dword [ebp - 0x80c]
add ecx, dword [ebp - 0x810]
cmp ecx, 0x7fa
jae 0x4668d9
lea edx, [ebp - 0x914]
push edx
lea eax, [ebp - 0x894]
push eax
push str._127_____127s
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
je 0x4668d9
lea eax, [ebp - 0x914]
push eax
push 1
lea ecx, [ebp - 0x894]
push ecx
push 0
push str._c_s_c_s
mov edx, 0x800
sub edx, dword [ebp - 0x80c]
push edx
mov eax, dword [ebp - 0x80c]
lea ecx, [ebp + eax - 0x804]
push ecx
call fcn.00450fe0
add esp, 0x1c
mov edx, dword [ebp - 0x80c]
add edx, dword [ebp - 0x810]
mov dword [ebp - 0x80c], edx
jmp 0x46682a
push 0xf0
push 0xff
push str._c_c
mov eax, 0x800
sub eax, dword [ebp - 0x80c]
push eax
mov ecx, dword [ebp - 0x80c]
lea edx, [ebp + ecx - 0x804]
push edx
call fcn.00450fe0
add esp, 0x14
mov eax, dword [ebp - 0x80c]
add eax, 2
mov dword [ebp - 0x80c], eax
push 0
mov ecx, dword [ebp - 0x80c]
push ecx
lea edx, [ebp - 0x804]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x808], eax
cmp dword [ebp - 0x808], 0
jge 0x466974
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x814], eax
mov edx, dword [ebp - 0x814]
push edx
push str.Sending_data_failed___d_
mov eax, dword [ebp - 0x918]
push eax
call fcn.004466f0
add esp, 0xc
mov ecx, dword [ebp - 0x80c]
sub ecx, 2
push ecx
lea edx, [ebp - 0x802]
push edx
push 0x3e
mov eax, dword [ebp - 0x918]
push eax
call fcn.004669a0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret