Function at 0x465880
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x540
mov eax, dword [0x5627bc]
xor eax, esp
mov dword [esp + 0x53c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x54c]
push esi
mov esi, dword [esp + 0x554]
push edi
push 0x131
lea eax, [esp + 0x1d]
push 0
push eax
mov byte [esp + 0x24], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
call dword [sym.imp.MSVCR80.dll__errno]
mov ebx, dword [esp + 0x55c]
mov dword [eax], 0
xor eax, eax
cmp ebx, 0xffffffff
mov dword [0x5711e8], 3
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jne 0x4658f6
mov eax, dword [0x54c0e8]
cmp eax, ebx
je 0x4658f6
mov ebx, eax
push 0
push 0x64
lea ecx, [esp + 0x154]
push ecx
push ebx
call sub.WSOCK32.dll_recv
mov ax, word [0x53bc34]
mov edx, dword [str.DELE]
mov word [esp + 0x1c], ax
mov eax, esi
mov dword [esp + 0x18], edx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x465921
lea edi, [esp + 0x18]
sub eax, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x465933
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x465952
sub eax, edx
cmp byte [esp + eax + 0x17], 0x2f
je 0x465984
lea edi, [esp + 0x18]
add edi, 0xffffffff
jmp 0x465970
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x465970
mov cx, word [0x536c34]
mov word [edi], cx
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x465988
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4659a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
or ebp, 0xffffffff
rep movsb byte es:[edi], byte [esi]
add eax, ebp
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4659c3
mov dx, word [0x53bc0c]
mov cl, byte [0x53bc0e]
mov word [eax], dx
mov byte [eax + 2], cl
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4659e7
sub eax, edx
lea ecx, [esp + 0x18]
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x465a27
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push ebx
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffffe2
mov dword [0x54c0e8], ebp
sub eax, esi
jmp 0x465abf
push 2
lea eax, [esp + 0x14]
push 3
push eax
call fcn.00464d30
add esp, 0xc
test eax, eax
jge 0x465a51
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
mov dword [0x5711ec], ecx
mov eax, 0xffffe188
jmp 0x465abf
mov al, byte [esp + 0x10]
cmp al, 0x35
jne 0x465a80
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
lea eax, [esp + 0x10]
push eax
mov dword [0x5711ec], edx
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, 0xfffff448
add esp, 4
sub ecx, eax
mov eax, ecx
jmp 0x465abf
cmp al, 0x34
jne 0x465a8b
mov eax, 0x270f
jmp 0x465abf
mov edi, ebx
call fcn.00464e80
mov esi, eax
call dword [sym.imp.MSVCR80.dll__errno]
test esi, esi
jle 0x465ab6
mov edx, dword [eax]
push ebx
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov dword [0x54c0e8], ebp
mov eax, esi
jmp 0x465abf
mov eax, dword [eax]
mov dword [0x5711ec], eax
xor eax, eax
mov ecx, dword [esp + 0x54c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00523ce0
add esp, 0x540
ret