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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x44]
push 0x400
push ebx
mov eax, esi
call fcn.004648b0
add esp, 8
cmp eax, 0xffffffff
jne 0x464c04
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 0
je 0x464bf2
push str.Control_socket_read_failed
call fcn.0053b900
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 1
jle 0x464c24
push ebx
push 0x579720
call fcn.00535a46
add eax, 0x40
push eax
call fcn.0053593a
add esp, 0xc
cmp byte [esi + 0x47], 0x2d
push edi
jne 0x464da8
push 3
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00537970
add esp, 0xc
mov word [ebp - 9], 0x20
mov ecx, dword [esi + 0x18]
xor edx, edx
mov eax, 0x400
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edx
cmp ecx, edx
je 0x464c64
cmp ecx, 1
jne 0x464dd9
mov edi, dword [esi + 0xc]
test edi, edi
jle 0x464ca2
cmp eax, edi
jge 0x464c72
lea edi, [eax - 1]
mov ecx, dword [esi + 4]
push edi
push 0xa
push ecx
push ebx
call fcn.005693f0
add esp, 0x10
test eax, eax
je 0x464c8a
mov edi, eax
sub edi, ebx
add dword [ebp - 0x10], edi
sub dword [ebp - 0x14], edi
add ebx, edi
mov byte [ebx], 0
add dword [esi + 4], edi
sub dword [esi + 0xc], edi
test eax, eax
jne 0x464d1d
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x464d59
test eax, eax
je 0x464d65
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jne 0x464cd0
mov eax, dword [esi + 0x14]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x2000
cmp dword [ebp - 0x18], 0
jne 0x464d5f
call fcn.00464790
test eax, eax
je 0x464d65
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x464dc3
test eax, eax
jne 0x464d0d
mov dword [ebp - 0x18], 1
sub dword [esi + 0x10], eax
add dword [esi + 0xc], eax
add dword [esi], eax
mov eax, dword [ebp - 0x14]
jmp 0x464c64
mov edi, 0x57bec0
lea eax, [ebx - 2]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x464d45
test cl, cl
je 0x464d41
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x464d45
add eax, 2
add edi, 2
test cl, cl
jne 0x464d25
xor eax, eax
jmp 0x464d4a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x464d65
dec dword [ebp - 0x10]
mov word [ebx - 2], 0xa
jmp 0x464d65
mov byte [esi + 0x44], 0
jmp 0x464d65
cmp dword [ebp - 0x10], 0
je 0x464dd9
cmp dword [ebp - 0x10], 0xffffffff
je 0x464dd9
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 1
jle 0x464d8e
lea eax, [esi + 0x44]
push eax
push 0x579720
call fcn.00535a46
add eax, 0x40
push eax
call fcn.0053593a
add esp, 0xc
push 4
lea eax, [ebp - 0xc]
push eax
lea ebx, [esi + 0x44]
push ebx
call fcn.005374b7
add esp, 0xc
test eax, eax
jne 0x464c44
mov cl, byte [ebx]
xor eax, eax
cmp cl, byte [ebp + 8]
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 0
je 0x464def
push str.read
call fcn.0053b900
add esp, 4
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 0
je 0x464def
push str.Control_socket_read_failed
call fcn.0053b900
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00534bba
mov esp, ebp
pop ebp
ret