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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x65bf90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7f
lea eax, [ebp - 0x103]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x90c], ebx
mov byte [ebp - 0x104], 0
call fcn.005c2720
push 0x7f
lea ecx, [ebp - 0x83]
push 0
push ecx
mov byte [ebp - 0x84], 0
call fcn.005c2720
mov esi, dword [ebx]
mov edi, dword [esi + 0x128]
mov edx, dword [edi + 0x1eb4]
sub edx, dword [edi + 0x1eb0]
lea eax, [edi + 0x1cb0]
add edx, 2
push edx
push eax
push 0x3c
mov dword [ebp - 0x908], esi
call fcn.004a52a0
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x24
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x4a5b09
cmp ecx, 0x23
je 0x4a5a7a
cmp ecx, 0x27
jne 0x4a5ba3
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea ecx, [ebp - 0x904]
push 0x800
push ecx
call fcn.00498f40
mov ebx, dword [edi + 0x1cac]
add esp, 0x1c
mov esi, 4
test ebx, ebx
je 0x4a5a04
jmp 0x4a5990
mov eax, dword [ebx]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a5995
sub eax, edx
lea edi, [eax + esi + 1]
cmp edi, 0x7fa
jae 0x4a59fd
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
push str._127_____127s
push eax
call fcn.005c2d3b
add esp, 0x10
test eax, eax
je 0x4a59fd
lea ecx, [ebp - 0x84]
push ecx
push 1
lea edx, [ebp - 0x104]
push edx
push 0
mov eax, 0x800
push str._c_s_c_s
sub eax, esi
push eax
lea ecx, [ebp + esi - 0x904]
push ecx
call fcn.00498f40
add esp, 0x1c
mov esi, edi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4a5990
push 0xf0
push 0xff
mov edx, 0x800
push 0x5fab50
sub edx, esi
push edx
lea eax, [ebp + esi - 0x904]
push eax
call fcn.00498f40
mov edx, dword [ebp - 0x90c]
mov eax, dword [edx + 0x154]
add esp, 0x14
push 0
add esi, 2
push esi
lea ecx, [ebp - 0x904]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4a5a6a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x908]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.00494d90
add esp, 0xc
add esi, 0xfffffffe
push esi
lea edx, [ebp - 0x902]
push edx
jmp 0x4a5b93
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a5a85
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 esi, [eax + 6]
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.00498f40
mov edx, dword [ebx + 0x154]
add esp, 0x28
push 0
push esi
lea ecx, [ebp - 0x904]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4a5af9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 0x908]
push str.Sending_data_failed___d_
push eax
call fcn.00494d90
add esp, 0xc
add esi, 0xfffffffe
push esi
lea ecx, [ebp - 0x902]
push ecx
jmp 0x4a5b93
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a5b14
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, [ebp - 0x904]
sub eax, esi
push 0x800
push edx
lea esi, [eax + 6]
call fcn.00498f40
mov ecx, dword [ebx + 0x154]
add esp, 0x28
push 0
push esi
lea eax, [ebp - 0x904]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4a5b88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp - 0x908]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.00494d90
add esp, 0xc
add esi, 0xfffffffe
push esi
lea eax, [ebp - 0x902]
push eax
mov esi, dword [ebp - 0x908]
push 0x3e
call fcn.004a52a0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bdb17
mov esp, ebp
pop ebp
ret