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

Disassembly:
mov eax, dword [0x42a6d0]
sub esp, 0x24
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x403452
push 0x41518c
push str.novaftp.log
call fcn.00408b50
add esp, 8
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x403452
mov dword [0x42a6d0], esi
mov eax, dword [esp + 0x38]
mov ecx, dword [0x42a8e8]
mov ebx, 1
mov dword [0x42a8e4], esi
push ebx
push 0xbd1
push eax
push ecx
mov dword [0x42a8ec], esi
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x40348c
call fcn.00403310
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [0x42a8e8]
push esi
push 0x10000
push 0x41a680
push edx
call sub.WSOCK32.dll_recv
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4034c3
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4034c3
call fcn.00403310
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [0x42a8e4]
cmp eax, ebx
je 0x40351c
cmp ebp, 0xffffffff
jne 0x40351c
push ebx
push esi
push esi
lea eax, [esp + 0x24]
push esi
push eax
call edi
test eax, eax
je 0x403514
mov eax, dword [esp + 0x1c]
cmp eax, 0x12
je 0x4035c9
cmp eax, 0xbd2
je 0x4035c9
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 [0x42a8e4], ebx
jne 0x4034d2
cmp dword [0x42a8ec], esi
jne 0x40361f
cmp ebp, 0xffffffff
jne 0x403533
mov ebp, dword [0x42a6c0]
cmp dword [0x42a6d0], esi
je 0x403561
mov eax, dword [esp + 0x10]
mov byte [ebp + 0x41a680], 0xa
inc ebp
push eax
push ebp
push ebx
push 0x41a680
call fcn.00408616
add esp, 0x10
cmp eax, ebp
je 0x403561
mov dword [0x42a6d0], esi
lea ecx, [ebp + 0x41a680]
mov dword [ecx], esi
mov al, byte [0x41a683]
cmp al, 0x2d
jne 0x403607
push 0x415a94
push 0x41a680
call fcn.00408550
mov edx, eax
add esp, 8
cmp edx, esi
je 0x4035ba
add edx, 2
mov eax, edx
sub eax, 0x41a680
cmp eax, ebp
jge 0x4035ba
cmp byte [edx + 3], 0x20
je 0x4035b6
push 0x415a94
push edx
call fcn.00408550
mov edx, eax
add esp, 8
cmp edx, esi
jne 0x40358e
cmp edx, esi
jne 0x4035ed
or ebp, 0xffffffff
xor eax, eax
mov dword [0x42a8e4], eax
jmp 0x4034ce
push str.FTP_ERR:_Cancelling_connection_due_to_user_abort.
push 0x41a460
call fcn.004080ec
add esp, 8
call fcn.00402e00
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 0x41a680
call fcn.00408c40
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov edx, dword [0x42a8e8]
push esi
push esi
push ecx
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x40362c
call fcn.00403310
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, dword [0x42a8e8]
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x20], esi
call sub.WSOCK32.dll_ioctlsocket
cmp dword [0x42a6d0], esi
je 0x40366a
mov edx, dword [esp + 0x10]
push edx
call fcn.00408866
add esp, 4
test eax, eax
je 0x403665
mov dword [0x42a6d0], esi
call fcn.00402d00
mov ax, word [0x41a680]
cmp al, 0x31
je 0x4036a6
cmp al, 0x32
je 0x4036a6
cmp al, 0x33
je 0x4036a6
push ebp
push 0x41a680
push str.FTP_ERR:_Server_response__s___d_bytes_
push 0x41a460
call fcn.004080ec
add esp, 0x10
call fcn.00402e00
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov word [0x418f30], ax
mov al, byte [0x41a682]
mov byte [0x418f32], al
xor eax, eax
cmp ebp, esi
mov dword [esp + 0x38], eax
jbe 0x403760
mov edx, dword [0x418f38]
shl edx, 9
add edx, 0x42a900
mov cl, byte [eax + 0x41a680]
lea eax, [eax + 0x41a682]
cmp cl, 0xd
jne 0x40374f
cmp byte [eax - 1], 0xa
jne 0x40374f
cmp byte [eax + 3], 0x20
jne 0x40374f
mov cl, byte [eax]
cmp cl, 0x31
je 0x40370b
cmp cl, 0x32
je 0x40370b
cmp cl, 0x33
je 0x40370b
cmp cl, 0x34
je 0x40370b
cmp cl, 0x35
jne 0x40374f
mov ecx, 3
mov edi, eax
mov esi, 0x418f30
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x40374f
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 [0x418f38]
inc ecx
add edx, 0x200
mov dword [0x418f38], ecx
mov eax, dword [esp + 0x38]
inc eax
cmp eax, ebp
mov dword [esp + 0x38], eax
jb 0x4036d3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret