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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004262e
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x100590e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov dword [ebx], 0
cmp byte [edi + 0x11d], 0
jne 0x1001ab8c
push 0
push dword [ebp + 0xc]
push eax
push dword [edi + 0x124]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x1001a98e
push 0x1b8
push str.send_while_socket_closed____d_n
call fcn.1000e120
add esp, 8
xor al, al
jmp 0x1001ab8e
cmp eax, 0xffffffff
jne 0x1001ab8a
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x1001a9bf
call esi
push eax
push str._CSockStream__send_failed_with__d
push 8
call fcn.1001dae0
add esp, 0xc
xor al, al
jmp 0x1001ab8e
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x1001a9f0
push 0x1cb
push str.send_failed_timeout____d_n
call fcn.1000e120
push 0x1cc
push str._CSockStream__send_failed_timeout____d
push 8
call fcn.1001dae0
add esp, 0x14
xor al, al
jmp 0x1001ab8e
cmp dword [edi + 0x128], 0
je 0x1001aaba
push 0x20
mov byte [edi + 0x11d], 1
call fcn.1001fec7
mov esi, eax
add esp, 4
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1001aa68
mov ecx, dword [edi + 0x124]
mov dword [esi], vtable.CReference.0
mov dword [esi + 4], 0
mov dword [esi + 8], 1
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 1
mov dword [esi], vtable.CTCPStreamTask.0
lea eax, [edi + 8]
mov dword [esi + 0x18], edi
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 1
call dword [ecx + 4]
mov byte [esi + 0x1c], 0
jmp 0x1001aa6a
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x118], esi
test esi, esi
je 0x1001aa81
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0x128]
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], 3
test eax, eax
je 0x1001ab8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1001ab8c
mov eax, dword [edi + 0x124]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 1
cmp ecx, 0xffffffff
jne 0x1001aae2
push 0
push 0
lea ecx, [ebp - 0x114]
push ecx
jmp 0x1001ab23
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x120], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push 0
push eax
mov eax, dword [edi + 0x124]
push 0
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1001ab64
lea eax, [ebp - 0x114]
push eax
push dword [edi + 0x124]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001ab64
push dword [ebp + 0x18]
mov eax, dword [edi]
mov ecx, edi
push 0
push ebx
push dword [ebp + 0xc]
mov eax, dword [eax + 0x88]
push dword [ebp - 0x118]
call eax
jmp 0x1001ab8e
call esi
push eax
push str.send_failed_isel___0___FD_ISSET_m_Socket_setsock____d_n
call fcn.1000e120
add esp, 8
call esi
push eax
push str._CSockStream__send_failed_isel___0___FD_ISSET_m_Socket_setsock____d
push 8
call fcn.1001dae0
add esp, 0xc
xor al, al
jmp 0x1001ab8e
mov dword [ebx], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001ff0d
mov esp, ebp
pop ebp
ret 0x14