Function at 0x4eaff4
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push 0x68
mov eax, 0x5d9da4
call fcn.005234b0
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp + 0x1c], ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jne 0x4eb027
mov dword [ebp + 0x1c], 0x7530
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4eb030
mov dword [eax], ebx
cmp dword [ebp + 0x14], ebx
jne 0x4eb03e
mov eax, dword [edi + 0x160]
mov dword [ebp + 0x14], eax
push 0x104
call fcn.0051d97d
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004eab6f
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
jle 0x4eb212
cmp dword [ebp - 0x14], ebx
jne 0x4eb212
cmp byte [edi + 0x248], bl
jne 0x4eb212
mov eax, dword [ebp - 0x24]
mov dword [eax], ebx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
xor ecx, ecx
cmp edx, ebx
jbe 0x4eb098
lea esi, [eax + 4]
mov edi, dword [ebp + 0x14]
cmp dword [esi], edi
je 0x4eb095
inc ecx
add esi, 4
cmp ecx, edx
jb 0x4eb086
mov edi, dword [ebp - 0x1c]
cmp ecx, edx
jne 0x4eb0b2
cmp edx, 0x40
jae 0x4eb0b2
mov esi, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 4], esi
mov eax, dword [ebp - 0x24]
inc dword [eax]
mov eax, dword [ebp - 0x24]
jmp 0x4eb0b5
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push eax
push ebx
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x4eb2c1
cmp eax, ebx
je 0x4eb1f4
push dword [ebp - 0x24]
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4eb282
push ebx
push dword [ebp + 8]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
cmp esi, dword [ebp + 8]
je 0x4eb112
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
jmp 0x4eb115
mov dword [ebp + 0xc], ebx
cmp esi, 0xffffffff
jne 0x4eb1cf
cmp dword [ebp + 0xc], 0x2746
je 0x4eb22b
cmp dword [ebp + 0xc], 0x274a
je 0x4eb22b
push 1
push dword [ebp + 0x14]
mov dword [ebp + 8], ebx
call dword [sym.imp.WSOCK32.dll_shutdown]
push ebx
push str.writeData.Error.
lea ecx, [ebp - 0x50]
call fcn.004ac9bc
mov byte [ebp - 4], 5
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x74]
call fcn.004ac6f7
mov byte [ebp - 4], 6
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
lea eax, [ebp - 0x50]
push eax
push ecx
call fcn.004adc57
add esp, 0xc
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
mov ecx, edi
call fcn.004ea560
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.004ac66a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x50]
call fcn.004ac66a
push edi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0xc], esp
push ebx
push str.__NC.WriteData.Failed5
or esi, 0xffffffff
call fcn.004ac9bc
mov byte [ebp - 4], 8
mov byte [ebp - 4], bl
mov ecx, 0x721f30
call fcn.004cc5c3
jmp 0x4eb209
cmp esi, ebx
jle 0x4eb138
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], esi
add dword [ebp - 0x10], esi
cmp eax, ebx
je 0x4eb1e6
add dword [eax], esi
push dword [ebp + 0x1c]
xor eax, eax
cmp dword [ebp + 8], ebx
sete al
push eax
jmp 0x4eb1f8
push dword [ebp + 0x1c]
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004ea646
mov esi, eax
cmp dword [ebp + 8], ebx
jg 0x4eb05e
cmp byte [ebp + 0x18], bl
je 0x4eb2ab
push 1
push dword [ebp + 0x14]
call dword [sym.imp.WSOCK32.dll_shutdown]
jmp 0x4eb2ab
push 1
push dword [ebp + 0x14]
call dword [sym.imp.WSOCK32.dll_shutdown]
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x1c], esp
push ebx
push str.writeData.Disconnect
call fcn.004ac9bc
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
mov ecx, edi
call fcn.004ea560
push 4
pop esi
push edi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x1c], esp
push ebx
push str.__NC.WriteData.Failed4
call fcn.004ac9bc
mov byte [ebp - 4], 4
mov byte [ebp - 4], bl
mov ecx, 0x721f30
call fcn.004cc5c3
jmp 0x4eb212
push edi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x18], esp
push ebx
push str.__NC.WriteData.Failed3
call fcn.004ac9bc
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
mov ecx, 0x721f18
call fcn.004bc4ff
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004fc03d
mov eax, esi
call fcn.00523588
ret 0x18
push edi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x18], esp
push ebx
push str.__NC.WriteData.Failed1
call fcn.004ac9bc
mov byte [ebp - 4], 1
mov byte [ebp - 4], bl
mov ecx, 0x721f18
call fcn.004bc4ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004fc03d
or eax, 0xffffffff
jmp 0x4eb2b9