Function at 0x40e8a2
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x410e1f
call fcn.004106f0
push ecx
mov eax, 0x1174
call fcn.004108a0
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
xor esi, esi
lea eax, [edi + 0x28]
mov dword [eax], esi
mov dword [edi + 0x2c], ecx
inc dword [eax]
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
lea ecx, [edi + 0x12c]
je 0x40e8df
mov dword [ecx], esi
jmp 0x40e8e7
mov edx, dword [0x41a948]
mov dword [ecx], edx
push ecx
push esi
push esi
push eax
push esi
call sub.WSOCK32.dll_select
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e92f
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2734
jne 0x40e90d
cmp dword [ebp + 8], esi
jne 0x40ea73
push eax
lea eax, [ebp - 0x184]
push str.connection::get_buffer___unexpected_error_from_select:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x184]
push eax
call fcn.0040e372
add esp, 0x10
cmp ebx, esi
jne 0x40e93c
cmp dword [ebp + 8], esi
jne 0x40ea73
push esi
push dword [edi + 0x20]
push dword [edi + 4]
push dword [edi]
call sub.WSOCK32.dll_recv
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x1c], ebx
je 0x40e981
cmp ebx, 0xffffffff
jne 0x40ea7d
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x40ea73
cmp eax, 0x2741
jle 0x40e98b
cmp eax, 0x2746
jle 0x40e981
cmp eax, 0x2749
jne 0x40e98b
mov eax, 0xfb0
jmp 0x40ecae
push eax
lea eax, [ebp - 0x184]
push str.connection::get_buffer___unexpected_error:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x184]
push eax
call fcn.0040e372
add esp, 0x10
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
mov dword [edi + 0x14], eax
mov dword [edi + 0xc], esi
call fcn.00401062
cmp dword [0x42178c], esi
mov dword [ebp - 4], esi
je 0x40eca0
mov ecx, dword [0x42178c]
mov byte [ebp - 4], 1
call fcn.0040e361
test eax, eax
je 0x40eca0
push dword [edi + 0x14]
lea ecx, [ebp - 0x40]
push dword [edi + 4]
call fcn.0040b899
mov ecx, dword [0x42178c]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.0040c6f4
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.00401156
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c2e7
push eax
push dword [edi + 4]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00401156
mov dword [edi + 0x14], eax
cmp byte [0x421ba0], 0
je 0x40eca0
push str.superDebug:_Decrypted_n
call fcn.00401292
pop ecx
jmp 0x40eca0
mov eax, 0xfad
jmp 0x40ecae
cmp byte [0x421ba0], 0
je 0x40e9b0
mov al, byte [0x421278]
push ebx
push str.superDebug:_Received__u_bytes:_n
mov byte [ebp + 0xb], al
mov byte [0x421278], 0
call fcn.00401292
cmp byte [0x421ba0], 2
pop ecx
pop ecx
jne 0x40eb8e
mov eax, dword [edi + 4]
mov esi, 0x3e8
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
jle 0x40eb3a
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 0x40eb01
inc eax
mov ecx, edi
sub ecx, eax
mov byte [eax], 0
sub eax, edi
add ebx, ecx
add dword [ebp - 0x14], eax
jmp 0x40eb06
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 0x40eb2c
push 0x412290
call fcn.00401292
pop ecx
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp ebx, esi
pop ecx
jg 0x40eac3
mov edi, dword [ebp - 0x18]
test ebx, ebx
je 0x40ec55
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 - 0x18], esi
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x18]
add esi, ebx
push 0x41221c
mov byte [esi], 0
call fcn.00401292
add esp, 0x18
cmp byte [esi - 1], 0xa
je 0x40eb80
push 0x412290
call fcn.00401292
pop ecx
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40ec55
push 0x42
lea eax, [ebp - 0x84]
push 0x20
push eax
call sub.MSVCRT.dll_memset
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x1c], esi
jle 0x40ec29
cmp esi, 0x10
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov bl, byte [edi + eax]
jne 0x40ebe6
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 0x40ec1c
cmp bl, 0x7e
jbe 0x40ec1e
mov bl, 0x2e
mov byte [ebp + esi - 0x52], bl
inc esi
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x40ebaa
cmp esi, 0x10
mov byte [ebp - 0x42], 0
jne 0x40ec33
dec edi
lea eax, [ebp - 0x84]
push eax
mov eax, edi
push 0x10
pop ecx
cdq
idiv ecx
sub edi, edx
push edi
push str.superDebug:__05X__s_r_n
call fcn.00401292
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov al, byte [ebp + 0xb]
mov byte [0x421278], al
xor esi, esi
jmp 0x40e9b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401054
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4