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

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, ecx
push edi
or ecx, 0xffffffff
mov edx, dword [esi + 0xac]
xor eax, eax
mov edi, edx
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ebx
mov edi, ecx
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x18], ebx
jne 0x404d39
lea eax, [esp + 0x10]
push 0x422748
push eax
mov dword [esp + 0x18], 0x19b
call sub.MSVCRT.dll__CxxThrowException
mov ebp, dword [sym.imp.WS2_32.dll_select]
mov eax, dword [esi + 0xb4]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x30], 1
call ebp
cmp eax, 0xffffffff
je 0x404e79
test eax, eax
je 0x404e1c
mov ecx, dword [esi + 0xb4]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x404d3f
test edi, edi
jle 0x404ed6
mov ecx, dword [esi + 0xac]
mov eax, dword [esi + 0xb4]
mov edx, ebx
push 0
add edx, ecx
push edi
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404dbf
test eax, eax
je 0x404ed6
sub edi, eax
add ebx, eax
jmp 0x404d3f
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jbe 0x404e05
mov esi, dword [esi + 0xb4]
lea ecx, [esp + 0x20]
cmp dword [ecx], esi
je 0x404de1
inc eax
add ecx, 4
cmp eax, edx
jb 0x404dd3
jmp 0x404e05
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x404e00
lea ecx, [esp + eax*4 + 0x20]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
add ecx, 4
lea esi, [edx - 1]
cmp eax, esi
jb 0x404dec
dec edx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
push 0x422748
push eax
mov dword [esp + 0x18], 0x66
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jbe 0x404e62
mov esi, dword [esi + 0xb4]
lea ecx, [esp + 0x20]
cmp dword [ecx], esi
je 0x404e3e
inc eax
add ecx, 4
cmp eax, edx
jb 0x404e30
jmp 0x404e62
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x404e5d
lea ecx, [esp + eax*4 + 0x20]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
add ecx, 4
lea esi, [edx - 1]
cmp eax, esi
jb 0x404e49
dec edx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
push 0x422748
push eax
mov dword [esp + 0x18], 0x192
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jbe 0x404ebf
mov esi, dword [esi + 0xb4]
lea ecx, [esp + 0x20]
cmp dword [ecx], esi
je 0x404e9b
inc eax
add ecx, 4
cmp eax, edx
jb 0x404e8d
jmp 0x404ebf
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x404eba
lea ecx, [esp + eax*4 + 0x20]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
add ecx, 4
lea esi, [edx - 1]
cmp eax, esi
jb 0x404ea6
dec edx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
push 0x422748
push eax
mov dword [esp + 0x18], 0x6d
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jbe 0x404f1c
mov esi, dword [esi + 0xb4]
lea ecx, [esp + 0x20]
cmp dword [ecx], esi
je 0x404f01
inc eax
add ecx, 4
cmp eax, edx
jb 0x404eea
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
dec edx
cmp eax, edx
jae 0x404f1c
lea ecx, [esp + eax*4 + 0x20]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
add ecx, 4
dec edx
cmp eax, edx
jb 0x404f0a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret