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

Disassembly:
mov eax, 0x41298d
call sub.MSVCRT.dll__EH_prolog
push ecx
mov eax, 0x1274
call fcn.004123b0
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 [0x423d2c], esi
mov dword [ebp - 4], esi
je 0x410845
mov ecx, dword [0x423d2c]
mov byte [ebp - 4], 1
call fcn.0040fb4b
test eax, eax
je 0x410845
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
push dword [ebp + 8]
call fcn.0040ca25
mov ecx, dword [0x423d2c]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.0040d6c0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00408941
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.0040d473
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], eax
call fcn.00401156
cmp byte [0x42434c], 0
mov dword [ebp + 0xc], eax
je 0x410845
mov ecx, dword [0x423d2c]
call fcn.004066f0
cmp eax, 4
mov eax, str.PRIVACY
je 0x410838
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 [0x41cbdc]
mov dword [edi + 0x12c], eax
cmp byte [0x42434c], 0
mov dword [ebp - 4], esi
je 0x410a7e
mov ebx, dword [ebp + 0xc]
mov al, byte [0x423710]
push ebx
push str.superDebug:_Attempting_to_send__u_bytes:_n
mov byte [ebp - 0x15], al
mov byte [0x423710], 0
call fcn.00401292
cmp byte [0x42434c], 2
pop ecx
pop ecx
jne 0x4109b5
mov eax, dword [ebp + 8]
mov esi, 0x3e8
cmp ebx, esi
mov dword [ebp - 0x14], eax
jle 0x410961
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 0x410924
inc eax
mov ecx, edi
sub ecx, eax
mov byte [eax], 0
sub eax, edi
add ebx, ecx
add dword [ebp - 0x14], eax
jmp 0x410929
sub ebx, esi
add dword [ebp - 0x14], esi
push edi
push 0x41322c
call fcn.00401292
push edi
call sub.MSVCRT.dll_strlen
add esp, 0xc
cmp byte [eax + edi - 1], 0xa
je 0x41094f
push 0x4132a0
call fcn.00401292
pop ecx
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp ebx, esi
pop ecx
jg 0x4108aa
mov edi, dword [ebp - 0x1c]
test ebx, ebx
je 0x410a74
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 0x41322c
mov byte [esi], 0
call fcn.00401292
add esp, 0x18
cmp byte [esi - 1], 0xa
je 0x4109a7
push 0x4132a0
call fcn.00401292
pop ecx
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x410a74
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 0x410a4b
cmp esi, 0x10
mov eax, dword [ebp + 8]
mov bl, byte [edi + eax]
jne 0x410a08
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 0x410a3e
cmp bl, 0x7e
jbe 0x410a40
mov bl, 0x2e
mov byte [ebp + esi - 0x52], bl
inc esi
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x4109cf
cmp esi, 0x10
mov byte [ebp - 0x42], 0
jne 0x410a55
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 [0x423710], al
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x410b3f
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 0x410ac8
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.0040fb5c
add esp, 0x10
mov eax, dword [edi + 0x20]
cmp dword [ebp + 0xc], eax
jg 0x410ad3
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 0x410b01
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jl 0x410b1c
cmp eax, 0x2734
jg 0x410b0e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410a8d
sub dword [ebp + 0xc], eax
add dword [ebp + 8], eax
cmp dword [ebp + 0xc], esi
jbe 0x410b3f
jmp 0x410af7
cmp eax, 0x2749
jne 0x410b1c
mov esi, 0xfb0
jmp 0x410b3f
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.0040fb5c
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