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

Disassembly:
mov eax, dword [0x42c2d0]
sub esp, 0x24
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x401d52
push 0x417080
push str.novaftp.log
call fcn.00408935
add esp, 8
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x401d52
mov dword [0x42c2d0], esi
mov eax, dword [esp + 0x38]
mov ecx, dword [0x42c4e8]
mov ebx, 1
mov dword [0x42c4e4], esi
push ebx
push 0xbd1
push eax
push ecx
mov dword [0x42c4ec], esi
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x401d8c
call fcn.00401c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [0x42c4e8]
push esi
push 0x10000
push 0x41c280
push edx
call sub.WSOCK32.dll_recv
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401dc3
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x401dc3
call fcn.00401c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [0x42c4e4]
cmp eax, ebx
je 0x401e1c
cmp ebp, 0xffffffff
jne 0x401e1c
push ebx
push esi
push esi
lea eax, [esp + 0x24]
push esi
push eax
call edi
test eax, eax
je 0x401e14
mov eax, dword [esp + 0x1c]
cmp eax, 0x12
je 0x401ec9
cmp eax, 0xbd2
je 0x401ec9
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [0x42c4e4], ebx
jne 0x401dd2
cmp dword [0x42c4ec], esi
jne 0x401f1f
cmp ebp, 0xffffffff
jne 0x401e33
mov ebp, dword [0x42c2c0]
cmp dword [0x42c2d0], esi
je 0x401e61
mov eax, dword [esp + 0x10]
mov byte [ebp + 0x41c280], 0xa
inc ebp
push eax
push ebp
push ebx
push 0x41c280
call fcn.00408440
add esp, 0x10
cmp eax, ebp
je 0x401e61
mov dword [0x42c2d0], esi
lea ecx, [ebp + 0x41c280]
mov dword [ecx], esi
mov al, byte [0x41c283]
cmp al, 0x2d
jne 0x401f07
push 0x417988
push 0x41c280
call fcn.00408d50
mov edx, eax
add esp, 8
cmp edx, esi
je 0x401eba
add edx, 2
mov eax, edx
sub eax, 0x41c280
cmp eax, ebp
jge 0x401eba
cmp byte [edx + 3], 0x20
je 0x401eb6
push 0x417988
push edx
call fcn.00408d50
mov edx, eax
add esp, 8
cmp edx, esi
jne 0x401e8e
cmp edx, esi
jne 0x401eed
or ebp, 0xffffffff
xor eax, eax
mov dword [0x42c4e4], eax
jmp 0x401dce
push str.FTP_ERR:_Cancelling_connection_due_to_user_abort.
push 0x41c060
call fcn.00408948
add esp, 8
call fcn.00401700
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 0x41c280
call fcn.00408a10
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov edx, dword [0x42c4e8]
push esi
push esi
push ecx
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x401f2c
call fcn.00401c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, dword [0x42c4e8]
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x20], esi
call sub.WSOCK32.dll_ioctlsocket
cmp dword [0x42c2d0], esi
je 0x401f6a
mov edx, dword [esp + 0x10]
push edx
call fcn.0040860d
add esp, 4
test eax, eax
je 0x401f65
mov dword [0x42c2d0], esi
call fcn.00401600
mov ax, word [0x41c280]
cmp al, 0x31
je 0x401fa6
cmp al, 0x32
je 0x401fa6
cmp al, 0x33
je 0x401fa6
push ebp
push 0x41c280
push str.FTP_ERR:_Server_response__s___d_bytes_
push 0x41c060
call fcn.00408948
add esp, 0x10
call fcn.00401700
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov word [0x41a9c8], ax
mov al, byte [0x41c282]
mov byte [0x41a9ca], al
xor eax, eax
cmp ebp, esi
mov dword [esp + 0x38], eax
jbe 0x402060
mov edx, dword [0x41a9d0]
shl edx, 9
add edx, 0x42c500
mov cl, byte [eax + 0x41c280]
lea eax, [eax + 0x41c282]
cmp cl, 0xd
jne 0x40204f
cmp byte [eax - 1], 0xa
jne 0x40204f
cmp byte [eax + 3], 0x20
jne 0x40204f
mov cl, byte [eax]
cmp cl, 0x31
je 0x40200b
cmp cl, 0x32
je 0x40200b
cmp cl, 0x33
je 0x40200b
cmp cl, 0x34
je 0x40200b
cmp cl, 0x35
jne 0x40204f
mov ecx, 3
mov edi, eax
mov esi, 0x41a9c8
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x40204f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x41a9d0]
inc ecx
add edx, 0x200
mov dword [0x41a9d0], ecx
mov eax, dword [esp + 0x38]
inc eax
cmp eax, ebp
mov dword [esp + 0x38], eax
jb 0x401fd3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret