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

Disassembly:
push 0x68
mov eax, 0x5bd54b
call fcn.00518b46
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 0x4de95d
mov dword [ebp + 0x1c], 0x7530
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4de966
mov dword [eax], ebx
cmp dword [ebp + 0x14], ebx
jne 0x4de974
mov eax, dword [edi + 0x160]
mov dword [ebp + 0x14], eax
push 0x104
call fcn.00511d1d
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004db094
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
jle 0x4deb48
cmp dword [ebp - 0x14], ebx
jne 0x4deb48
cmp byte [edi + 0x248], bl
jne 0x4deb48
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 0x4de9ce
lea esi, [eax + 4]
mov edi, dword [ebp + 0x14]
cmp dword [esi], edi
je 0x4de9cb
inc ecx
add esi, 4
cmp ecx, edx
jb 0x4de9bc
mov edi, dword [ebp - 0x1c]
cmp ecx, edx
jne 0x4de9e8
cmp edx, 0x40
jae 0x4de9e8
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 0x4de9eb
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 0x4debf7
cmp eax, ebx
je 0x4deb2a
push dword [ebp - 0x24]
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4debb8
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 0x4dea48
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
jmp 0x4dea4b
mov dword [ebp + 0xc], ebx
cmp esi, 0xffffffff
jne 0x4deb05
cmp dword [ebp + 0xc], 0x2746
je 0x4deb61
cmp dword [ebp + 0xc], 0x274a
je 0x4deb61
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.0049eefc
mov byte [ebp - 4], 5
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x74]
call fcn.0049ec37
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.004a0106
add esp, 0xc
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
mov ecx, edi
call fcn.004de02a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.0049ebaa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x50]
call fcn.0049ebaa
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.0049eefc
mov byte [ebp - 4], 8
mov byte [ebp - 4], bl
mov ecx, 0x6ed748
call fcn.004c25fd
jmp 0x4deb3f
cmp esi, ebx
jle 0x4dea6e
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], esi
add dword [ebp - 0x10], esi
cmp eax, ebx
je 0x4deb1c
add dword [eax], esi
push dword [ebp + 0x1c]
xor eax, eax
cmp dword [ebp + 8], ebx
sete al
push eax
jmp 0x4deb2e
push dword [ebp + 0x1c]
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004de110
mov esi, eax
cmp dword [ebp + 8], ebx
jg 0x4de994
cmp byte [ebp + 0x18], bl
je 0x4debe1
push 1
push dword [ebp + 0x14]
call dword [sym.imp.WSOCK32.dll_shutdown]
jmp 0x4debe1
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.0049eefc
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
mov ecx, edi
call fcn.004de02a
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.0049eefc
mov byte [ebp - 4], 4
mov byte [ebp - 4], bl
mov ecx, 0x6ed748
call fcn.004c25fd
jmp 0x4deb48
push edi
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x18], esp
push ebx
push str.__NC.WriteData.Failed3
call fcn.0049eefc
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
mov ecx, 0x6ed730
call fcn.004b4cba
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004da9e8
mov eax, esi
call fcn.00518c1e
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.0049eefc
mov byte [ebp - 4], 1
mov byte [ebp - 4], bl
mov ecx, 0x6ed730
call fcn.004b4cba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004da9e8
or eax, 0xffffffff
jmp 0x4debef