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

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
mov cl, al
and cl, 1
push ebp
push esi
cmp cl, 1
push edi
jne 0x404dce
shr eax, 0x10
test ax, ax
je 0x404c5e
and eax, 0xffff
push eax
call fcn.00402fb0
add esp, 4
push ebx
call fcn.00404a20
add esp, 4
jmp 0x404dce
mov edx, dword [esp + 0x18]
push 0
push 0x400
push 0x41a040
push edx
call sub.WSOCK32.dll_recv
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x404c8e
call fcn.00403310
push ebx
call fcn.00404a20
add esp, 4
jmp 0x404dce
mov eax, dword [0x42a6c4]
test eax, eax
je 0x404cc3
mov eax, dword [0x42a680]
mov ecx, ebp
mov edx, ecx
mov esi, 0x41a040
lea edi, [eax + 0x42b900]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, ebp
rep movsb byte es:[edi], byte [esi]
mov dword [0x42a680], eax
jmp 0x404dce
push 0x415f3c
push 0x419f20
call fcn.00408b50
mov esi, eax
add esp, 8
test esi, esi
jne 0x404d09
push ebp
call fcn.00409611
mov eax, dword [eax]
push eax
call fcn.0040954e
add esp, 4
push eax
push 0x419f20
push str.FTP_ERR:_Error_opening__s_for_update:__s__Size_d_
push 0x41a460
call fcn.004080ec
add esp, 0x14
jmp 0x404daa
mov ecx, dword [0x42a8e0]
push 0
push ecx
push esi
call fcn.00408a66
add esp, 0xc
test eax, eax
je 0x404d48
push 0x419f20
push str.FTP_ERR:_Error_seeking_within__s_for_update.
push 0x41a460
call fcn.004080ec
add esp, 0xc
push esi
call fcn.00408866
add esp, 4
push ebx
call fcn.00404a20
add esp, 4
push esi
push ebp
push 1
push 0x41a040
call fcn.00408616
add esp, 0x10
cmp eax, ebp
je 0x404d86
push 0x419f20
push str.FTP_ERR:_Error_writing_to__s_for_update.
push 0x41a460
call fcn.004080ec
add esp, 0xc
push esi
call fcn.00408866
add esp, 4
push ebx
call fcn.00404a20
add esp, 4
push esi
call fcn.00408866
add esp, 4
test eax, eax
je 0x404db3
push 0x419f20
push str.FTP_ERR:_Error_closing__s_after_update.
push 0x41a460
call fcn.004080ec
add esp, 0xc
push ebx
call fcn.00404a20
add esp, 4
mov eax, dword [0x42a8e0]
add eax, ebp
push eax
push 2
push 0xbd0
push ebx
mov dword [0x42a8e0], eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dl, byte [esp + 0x1c]
and dl, 0x20
cmp dl, 0x20
jne 0x404ed1
mov eax, dword [0x42a6d0]
test eax, eax
je 0x404e70
push 0x41518c
push str.novaftp.log
call fcn.00408b50
mov esi, eax
add esp, 8
test esi, esi
je 0x404e4a
push str.ftp_server_data_connection_closed_n
push 0x42a6e0
call fcn.004080ec
mov edi, 0x42a6e0
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
push ecx
push 1
push 0x42a6e0
call fcn.00408616
mov edx, eax
mov edi, 0x42a6e0
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
je 0x404e54
mov dword [0x42a6d0], 0
push esi
call fcn.00408866
add esp, 4
test eax, eax
je 0x404e6b
mov dword [0x42a6d0], 0
call fcn.00402d00
mov eax, dword [esp + 0x1c]
shr eax, 0x10
test ax, ax
je 0x404e98
and eax, 0xffff
push eax
call fcn.00402fb0
add esp, 4
push ebx
call fcn.00404a20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x4004667f
push esi
call sub.WSOCK32.dll_ioctlsocket
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x404ec2
push ebx
call fcn.00404a80
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x20
push esi
push 0xbd1
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
ret