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

Disassembly:
mov eax, 0x410e41
call fcn.004106f0
push ecx
mov eax, 0x1274
call fcn.004108a0
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
call fcn.00401062
xor esi, esi
cmp dword [0x42178c], esi
mov dword [ebp - 4], esi
je 0x40edcc
mov ecx, dword [0x42178c]
mov byte [ebp - 4], 1
call fcn.0040e361
test eax, eax
je 0x40edcc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
push dword [ebp + 8]
call fcn.0040b899
mov ecx, dword [0x42178c]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.0040c534
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004079e5
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401054
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401054
lea ecx, [ebp - 0x28]
call fcn.0040c2e7
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], eax
call fcn.00401156
cmp byte [0x421ba0], 0
mov dword [ebp + 0xc], eax
je 0x40edcc
mov ecx, dword [0x42178c]
call fcn.00405dbd
cmp eax, 4
mov eax, str.PRIVACY
je 0x40edbf
mov eax, str.INTEGRITY
push eax
push str.superDebug:_Encrypted_via_GSSAUTH_P__s_n
call fcn.00401292
pop ecx
pop ecx
mov eax, dword [edi]
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], eax
inc dword [edi + 0x28]
mov eax, dword [0x41a948]
mov dword [edi + 0x12c], eax
cmp byte [0x421ba0], 0
mov dword [ebp - 4], esi
je 0x40f005
mov ebx, dword [ebp + 0xc]
mov al, byte [0x421278]
push ebx
push str.superDebug:_Attempting_to_send__u_bytes:_n
mov byte [ebp - 0x15], al
mov byte [0x421278], 0
call fcn.00401292
cmp byte [0x421ba0], 2
pop ecx
pop ecx
jne 0x40ef3c
mov eax, dword [ebp + 8]
mov esi, 0x3e8
cmp ebx, esi
mov dword [ebp - 0x14], eax
jle 0x40eee8
push 0x3ea
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
push dword [ebp - 0x14]
mov edi, eax
push edi
call sub.MSVCRT.dll_memcpy
push 0xa
push edi
mov byte [edi + 0x3e8], 0
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x18
test eax, eax
je 0x40eeab
inc eax
mov ecx, edi
sub ecx, eax
mov byte [eax], 0
sub eax, edi
add ebx, ecx
add dword [ebp - 0x14], eax
jmp 0x40eeb0
sub ebx, esi
add dword [ebp - 0x14], esi
push edi
push 0x41221c
call fcn.00401292
push edi
call sub.MSVCRT.dll_strlen
add esp, 0xc
cmp byte [eax + edi - 1], 0xa
je 0x40eed6
push 0x412290
call fcn.00401292
pop ecx
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp ebx, esi
pop ecx
jg 0x40ee31
mov edi, dword [ebp - 0x1c]
test ebx, ebx
je 0x40effb
lea eax, [ebx + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push ebx
push dword [ebp - 0x14]
mov esi, eax
push esi
mov dword [ebp - 0x1c], esi
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x1c]
add esi, ebx
push 0x41221c
mov byte [esi], 0
call fcn.00401292
add esp, 0x18
cmp byte [esi - 1], 0xa
je 0x40ef2e
push 0x412290
call fcn.00401292
pop ecx
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40effb
push 0x42
lea eax, [ebp - 0x84]
push 0x20
push eax
call sub.MSVCRT.dll_memset
xor edi, edi
add esp, 0xc
cmp dword [ebp + 0xc], edi
jbe 0x40efd2
cmp esi, 0x10
mov eax, dword [ebp + 8]
mov bl, byte [edi + eax]
jne 0x40ef8f
lea eax, [ebp - 0x84]
push eax
lea eax, [edi - 0x10]
push eax
push str.superDebug:__05X__s_r_n
mov byte [ebp - 0x42], 0
call fcn.00401292
push 0x42
lea eax, [ebp - 0x84]
push 0x20
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
xor esi, esi
movzx eax, bl
push eax
lea eax, [ebp - 0x14]
push str.__02X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push 3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + esi - 0x84]
lea eax, [eax + esi*2]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
cmp bl, 0x20
jb 0x40efc5
cmp bl, 0x7e
jbe 0x40efc7
mov bl, 0x2e
mov byte [ebp + esi - 0x52], bl
inc esi
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x40ef56
cmp esi, 0x10
mov byte [ebp - 0x42], 0
jne 0x40efdc
dec edi
lea eax, [ebp - 0x84]
push eax
mov eax, edi
and eax, 0xf
sub edi, eax
push edi
push str.superDebug:__05X__s_r_n
call fcn.00401292
mov edi, dword [ebp - 0x1c]
add esp, 0xc
mov al, byte [ebp - 0x15]
mov byte [0x421278], al
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x40f0c6
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [edi + 0x12c]
push eax
push esi
lea eax, [edi + 0x28]
push eax
push esi
push esi
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x40f04f
call sub.WSOCK32.dll_WSAGetLastError
push eax
lea eax, [ebp - 0x184]
push str.connection::put_data___unexpected_error_from_select:__d
push eax
call ebx
lea eax, [ebp - 0x184]
push eax
call fcn.0040e372
add esp, 0x10
mov eax, dword [edi + 0x20]
cmp dword [ebp + 0xc], eax
jg 0x40f05a
mov eax, dword [ebp + 0xc]
push esi
push eax
push dword [ebp + 8]
push dword [edi]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x40f088
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jl 0x40f0a3
cmp eax, 0x2734
jg 0x40f095
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40f014
sub dword [ebp + 0xc], eax
add dword [ebp + 8], eax
cmp dword [ebp + 0xc], esi
jbe 0x40f0c6
jmp 0x40f07e
cmp eax, 0x2749
jne 0x40f0a3
mov esi, 0xfb0
jmp 0x40f0c6
push eax
lea eax, [ebp - 0x284]
push str.connection::put_data___unexpected_error_from_send__:__d
push eax
call ebx
lea eax, [ebp - 0x284]
push eax
call fcn.0040e372
add esp, 0x10
mov esi, 0xfa2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401054
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8