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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffad8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x528], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x44abbd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call sub.rtl160.bpl__System__LStrClr_qqrpv
mov bl, 1
mov dword [ebp - 0x524], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x20], 7
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea eax, [ebp - 0x524]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x44ab8b
push 0
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_recv
mov edi, eax
push 0
lea edx, [ebp - 0x420]
lea eax, [ebp - 0xc]
mov ecx, edi
call sub.rtl160.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call sub.rtl160.bpl__System__LStrCat_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov esi, eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
cmp esi, eax
setg byte [ebp - 0x15]
cmp byte [ebp - 0x15], 0
je 0x44ab8f
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov esi, eax
test esi, esi
jle 0x44aa7e
mov edi, 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi - 1]
mov edx, dword [ebp - 4]
cmp al, byte [edx + edi - 1]
je 0x44aa7a
mov byte [ebp - 0x15], 0
jmp 0x44aa7e
inc edi
dec esi
jne 0x44aa63
cmp byte [ebp - 0x15], 0
je 0x44ab8f
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov esi, eax
test esi, esi
jle 0x44aab6
mov edi, 1
mov eax, dword [ebp - 8]
cmp byte [eax + edi - 1], 0x3d
jne 0x44aab2
lea eax, [ebp - 8]
call sub.rtl160.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov byte [eax + edi - 1], 0x20
inc edi
dec esi
jne 0x44aa9b
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x2d
setne bl
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x44abdc
call fcn.0040a5b8
mov edi, eax
test edi, edi
jne 0x44aae2
mov edi, 0x7ffffffe
cmp dword [ebp - 0x14], 0
je 0x44ab64
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x44ab64
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
sub ecx, 5
mov edx, 5
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0xc]
mov eax, 0x44abec
call fcn.0040ade0
test al, al
je 0x44ab64
push 0x7fffffff
lea eax, [ebp - 0x528]
push eax
mov ecx, 0x7fffffff
mov edx, 5
mov eax, dword [ebp - 0xc]
call sub.rtl160.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
lea eax, [ebp - 0x528]
mov edx, 0x44ac00
call sub.rtl160.bpl__System__LStrCat_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x528]
mov ecx, 1
mov eax, 0x44ac10
call fcn.0040a688
test eax, eax
jle 0x44ab64
mov eax, dword [ebp - 0x14]
mov byte [eax], 1
lea ecx, [edi + 1]
lea eax, [ebp - 8]
mov edx, 1
call sub.rtl160.bpl__System__LStrDelete_qqrr27System__AnsiStringT_us_i0__ii
test bl, bl
jne 0x44ab8f
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
cmp eax, 4
jge 0x44aab6
jmp 0x44ab8f
mov byte [ebp - 0x15], 0
test bl, bl
je 0x44a9b9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44abc4
lea eax, [ebp - 0x528]
call sub.rtl160.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret