Function at 0x403520
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 0x4036ce
shr eax, 0x10
test ax, ax
je 0x40355e
and eax, 0xffff
push eax
call fcn.004018b0
add esp, 4
push ebx
call fcn.00403320
add esp, 4
jmp 0x4036ce
mov edx, dword [esp + 0x18]
push 0
push 0x400
push 0x41bc40
push edx
call sub.WSOCK32.dll_recv
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40358e
call fcn.00401c10
push ebx
call fcn.00403320
add esp, 4
jmp 0x4036ce
mov eax, dword [0x42c2c4]
test eax, eax
je 0x4035c3
mov eax, dword [0x42c280]
mov ecx, ebp
mov edx, ecx
mov esi, 0x41bc40
lea edi, [eax + 0x42d500]
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 [0x42c280], eax
jmp 0x4036ce
push 0x417e30
push 0x41bb20
call fcn.00408935
mov esi, eax
add esp, 8
test esi, esi
jne 0x403609
push ebp
call fcn.0040959e
mov eax, dword [eax]
push eax
call fcn.0040954e
add esp, 4
push eax
push 0x41bb20
push str.FTP_ERR:_Error_opening__s_for_update:__s__Size_d_
push 0x41c060
call fcn.00408948
add esp, 0x14
jmp 0x4036aa
mov ecx, dword [0x42c4e0]
push 0
push ecx
push esi
call fcn.00408890
add esp, 0xc
test eax, eax
je 0x403648
push 0x41bb20
push str.FTP_ERR:_Error_seeking_within__s_for_update.
push 0x41c060
call fcn.00408948
add esp, 0xc
push esi
call fcn.0040860d
add esp, 4
push ebx
call fcn.00403320
add esp, 4
push esi
push ebp
push 1
push 0x41bc40
call fcn.00408440
add esp, 0x10
cmp eax, ebp
je 0x403686
push 0x41bb20
push str.FTP_ERR:_Error_writing_to__s_for_update.
push 0x41c060
call fcn.00408948
add esp, 0xc
push esi
call fcn.0040860d
add esp, 4
push ebx
call fcn.00403320
add esp, 4
push esi
call fcn.0040860d
add esp, 4
test eax, eax
je 0x4036b3
push 0x41bb20
push str.FTP_ERR:_Error_closing__s_after_update.
push 0x41c060
call fcn.00408948
add esp, 0xc
push ebx
call fcn.00403320
add esp, 4
mov eax, dword [0x42c4e0]
add eax, ebp
push eax
push 2
push 0xbd0
push ebx
mov dword [0x42c4e0], eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dl, byte [esp + 0x1c]
and dl, 0x20
cmp dl, 0x20
jne 0x4037d1
mov eax, dword [0x42c2d0]
test eax, eax
je 0x403770
push 0x417080
push str.novaftp.log
call fcn.00408935
mov esi, eax
add esp, 8
test esi, esi
je 0x40374a
push str.ftp_server_data_connection_closed_n
push 0x42c2e0
call fcn.00408948
mov edi, 0x42c2e0
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 0x42c2e0
call fcn.00408440
mov edx, eax
mov edi, 0x42c2e0
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
je 0x403754
mov dword [0x42c2d0], 0
push esi
call fcn.0040860d
add esp, 4
test eax, eax
je 0x40376b
mov dword [0x42c2d0], 0
call fcn.00401600
mov eax, dword [esp + 0x1c]
shr eax, 0x10
test ax, ax
je 0x403798
and eax, 0xffff
push eax
call fcn.004018b0
add esp, 4
push ebx
call fcn.00403320
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 0x4037c2
push ebx
call fcn.00403380
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