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

Disassembly:
sub esp, 0x640
mov eax, dword [0x5627bc]
xor eax, esp
mov dword [esp + 0x63c], eax
push ebx
push ebp
push esi
push edi
call dword [sym.imp.MSVCR80.dll__errno]
mov ebp, dword [esp + 0x658]
mov dword [eax], 0
xor eax, eax
cmp ebp, 0xffffffff
mov dword [0x5711e8], 5
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jne 0x46520f
mov eax, dword [0x54c0e8]
cmp eax, ebp
je 0x46520f
mov ebp, eax
push 0
push 0x64
lea eax, [esp + 0x254]
push eax
push ebp
call sub.WSOCK32.dll_recv
mov eax, dword [esp + 0x654]
mov bl, 0x2f
cmp byte [eax], bl
jne 0x465247
cmp byte [eax + 1], bl
je 0x465247
mov dx, word [0x53bc1c]
mov ecx, dword [str.CWD__]
mov word [esp + 0x1c], dx
jmp 0x465257
mov dl, byte [0x53bc14]
mov ecx, dword [str.CWD]
mov byte [esp + 0x1c], dl
lea edx, [esp + 0x14c]
mov dword [esp + 0x18], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x465264
lea eax, [esp + 0x14c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x465280
sub eax, edx
cmp byte [esp + eax + 0x14b], bl
jne 0x4652b2
lea eax, [esp + 0x14c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4652a0
sub eax, edx
mov byte [esp + eax + 0x14b], cl
lea eax, [esp + 0x14c]
mov edx, eax
jmp 0x4652c0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4652c0
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4652d2
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]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4652f3
mov cx, word [0x53bc0c]
mov dl, byte [0x53bc0e]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x465317
sub eax, edx
lea ecx, [esp + 0x18]
mov ebx, ebp
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x46535c
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push ebp
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xffffffeb
mov dword [0x54c0e8], 0xffffffff
sub eax, esi
jmp 0x4653fb
push 2
lea ecx, [esp + 0x14]
push 3
push ecx
mov ebx, ebp
call fcn.00464d30
add esp, 0xc
test eax, eax
jge 0x465388
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
mov dword [0x5711ec], edx
mov eax, 0xffffe188
jmp 0x4653fb
mov al, byte [esp + 0x10]
cmp al, 0x35
jne 0x4653b6
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
mov dword [0x5711ec], eax
call dword [sym.imp.MSVCR80.dll_atoi]
mov edx, 0xfffff448
add esp, 4
sub edx, eax
mov eax, edx
jmp 0x4653fb
cmp al, 0x34
jne 0x4653c1
mov eax, 0x270f
jmp 0x4653fb
mov edi, ebp
call fcn.00464e80
mov esi, eax
call dword [sym.imp.MSVCR80.dll__errno]
test esi, esi
jle 0x4653f1
mov eax, dword [eax]
push ebp
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, esi
mov dword [0x54c0e8], 0xffffffff
neg eax
jmp 0x4653fb
mov ecx, dword [eax]
mov dword [0x5711ec], ecx
xor eax, eax
mov ecx, dword [esp + 0x64c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00523ce0
add esp, 0x640
ret