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

Disassembly:
mov eax, 0x41296b
call sub.MSVCRT.dll__EH_prolog
push ecx
mov eax, 0x1174
call fcn.004123b0
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 0x410358
mov dword [ecx], esi
jmp 0x410360
mov edx, dword [0x41cbdc]
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 0x4103a8
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2734
jne 0x410386
cmp dword [ebp + 8], esi
jne 0x4104ec
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.0040fb5c
add esp, 0x10
cmp ebx, esi
jne 0x4103b5
cmp dword [ebp + 8], esi
jne 0x4104ec
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 0x4103fa
cmp ebx, 0xffffffff
jne 0x4104f6
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4104ec
cmp eax, 0x2741
jle 0x410404
cmp eax, 0x2746
jle 0x4103fa
cmp eax, 0x2749
jne 0x410404
mov eax, 0xfb0
jmp 0x410727
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.0040fb5c
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 [0x423d2c], esi
mov dword [ebp - 4], esi
je 0x410719
mov ecx, dword [0x423d2c]
mov byte [ebp - 4], 1
call fcn.0040fb4b
test eax, eax
je 0x410719
push dword [edi + 0x14]
lea ecx, [ebp - 0x40]
push dword [edi + 4]
call fcn.0040ca25
mov ecx, dword [0x423d2c]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.0040d880
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.00401156
push eax
lea ecx, [ebp - 0x28]
call fcn.0040d473
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 [0x42434c], 0
je 0x410719
push str.superDebug:_Decrypted_n
call fcn.00401292
pop ecx
jmp 0x410719
mov eax, 0xfad
jmp 0x410727
cmp byte [0x42434c], 0
je 0x410429
mov al, byte [0x423710]
push ebx
push str.superDebug:_Received__u_bytes:_n
mov byte [ebp + 0xb], al
mov byte [0x423710], 0
call fcn.00401292
cmp byte [0x42434c], 2
pop ecx
pop ecx
jne 0x410607
mov eax, dword [edi + 4]
mov esi, 0x3e8
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
jle 0x4105b3
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 0x41057a
inc eax
mov ecx, edi
sub ecx, eax
mov byte [eax], 0
sub eax, edi
add ebx, ecx
add dword [ebp - 0x14], eax
jmp 0x41057f
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 0x4105a5
push 0x4132a0
call fcn.00401292
pop ecx
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp ebx, esi
pop ecx
jg 0x41053c
mov edi, dword [ebp - 0x18]
test ebx, ebx
je 0x4106ce
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 0x41322c
mov byte [esi], 0
call fcn.00401292
add esp, 0x18
cmp byte [esi - 1], 0xa
je 0x4105f9
push 0x4132a0
call fcn.00401292
pop ecx
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4106ce
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 0x4106a2
cmp esi, 0x10
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov bl, byte [edi + eax]
jne 0x41065f
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 0x410695
cmp bl, 0x7e
jbe 0x410697
mov bl, 0x2e
mov byte [ebp + esi - 0x52], bl
inc esi
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x410623
cmp esi, 0x10
mov byte [ebp - 0x42], 0
jne 0x4106ac
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 [0x423710], al
xor esi, esi
jmp 0x410429
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