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

Disassembly:
sub esp, 0x90c
mov eax, dword [0x5857cc]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
mov ebp, dword [esp + 0x918]
push esi
mov esi, dword [ebp]
mov ebx, dword [esi + 0x8ed4]
mov eax, dword [ebx + 0x1eb4]
sub eax, dword [ebx + 0x1eb0]
push edi
add eax, 2
push eax
lea ecx, [ebx + 0x1cb0]
push ecx
push 0x3c
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
call fcn.004b01b0
mov eax, dword [ebx + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0xc
mov dword [ebx + 0x1eb0], eax
cmp ecx, 0x18
je 0x4b09a5
cmp ecx, 0x23
je 0x4b0915
cmp ecx, 0x27
jne 0x4b0a3e
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea edx, [esp + 0x12c]
push 0x800
push edx
call fcn.004a3280
mov esi, dword [ebx + 0x1cac]
add esp, 0x1c
mov edi, 4
test esi, esi
je 0x4b08a5
mov ebp, dword [0x545274]
mov edx, dword [esi]
mov eax, edx
lea ebx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b0840
sub eax, ebx
lea ebx, [eax + edi + 1]
cmp ebx, 0x7fa
jae 0x4b089a
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x9c]
push ecx
push str._127_____127s
push edx
call ebp
lea edx, [esp + 0x28]
push edx
push 1
lea eax, [esp + 0xb0]
push eax
push 0
mov ecx, 0x800
push str._c_s_c_s
sub ecx, edi
push ecx
lea edx, [esp + edi + 0x140]
push edx
call fcn.004a3280
add esp, 0x2c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x4b0838
mov ebp, dword [esp + 0x14]
push 0xf0
push 0xff
mov eax, 0x800
push 0x55a768
sub eax, edi
push eax
lea ecx, [esp + edi + 0x128]
push ecx
call fcn.004a3280
mov eax, dword [ebp + 0x130]
add esp, 0x14
push 0
add edi, 2
push edi
lea edx, [esp + 0x120]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b0904
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.0049f8e0
add esp, 0xc
add edi, 0xfffffffe
push edi
lea edx, [esp + 0x11e]
push edx
jmp 0x4b0a30
lea ecx, [ebx + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b0920
push 0xf0
push 0xff
push ecx
push 0
push 0x23
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x138]
push 0x800
push eax
call fcn.004a3280
mov edx, dword [ebp + 0x130]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b0994
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.0049f8e0
add esp, 0xc
add edi, 0xfffffffe
push edi
lea ecx, [esp + 0x11e]
push ecx
jmp 0x4b0a30
lea ecx, [ebx + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b09b0
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
lea edx, [esp + 0x138]
sub eax, esi
push 0x800
push edx
lea edi, [eax + 6]
call fcn.004a3280
mov ecx, dword [ebp + 0x130]
add esp, 0x28
push 0
push edi
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b0a24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.0049f8e0
add esp, 0xc
add edi, 0xfffffffe
push edi
lea eax, [esp + 0x11e]
push eax
mov esi, dword [esp + 0x18]
push 0x3e
call fcn.004b01b0
add esp, 0xc
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00521458
add esp, 0x90c
ret