Function at 0x46bbb4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 0x103
lea eax, [ebp - 0x10f]
push edi
push eax
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x110], 0
call fcn.005306b0
mov eax, dword [ebp + 8]
mov esi, dword [0x6ed8cc]
add esp, 0xc
cmp eax, 0x8000000
mov dword [ebp - 0x120], esi
je 0x46bc1c
cmp eax, edi
je 0x46bc1c
push eax
push str.:7:SetDefaultFtpMode__ld__FAILED:_The_given_mode_is_invalid__must_be_either_INTERNET_FLAG_PASSIVE_or_INTERNET_FLAG_ACTIVE_
call fcn.0042b70b
pop ecx
pop ecx
mov eax, esi
jmp 0x46be4a
push str.FtpMode.dat
push edi
push edi
mov dword [0x6ed8cc], eax
call fcn.00493154
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x110]
push 0x553c34
push eax
call fcn.00531b2f
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
mov dword [ebp - 0x118], edi
mov ebx, 0x96
push 0x6c2
push str..Network.c
mov edx, 0x552f58
lea ecx, [ebp - 0x110]
call fcn.00434df1
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x11c], eax
jne 0x46bd05
lea edi, [ebp - 0x110]
call fcn.00432263
test eax, eax
je 0x46bca0
push ebx
call esi
inc dword [ebp - 0x118]
cmp dword [ebp - 0x118], 5
jl 0x46bc55
and dword [ebp - 0x118], 0
xor edi, edi
cmp dword [ebp - 0x11c], edi
jne 0x46bd11
push 0x6d7
push str..Network.c
mov edx, 0x551d60
lea ecx, [ebp - 0x110]
call fcn.00434df1
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x11c], eax
jne 0x46bd11
push ebx
call esi
inc edi
cmp edi, 5
jl 0x46bcb1
lea edi, [ebp - 0x110]
call fcn.00432263
push eax
mov eax, edi
push eax
push eax
push dword [ebp + 8]
push str.:7:SetDefaultFtpMode__ld__FAILED:_fopen___s____wb___FAILED:_DoesFileExist___s___returns__ld.
call fcn.0042b70b
add esp, 0x14
jmp 0x46be44
mov dword [ebp - 0x118], 1
jmp 0x46bca7
cmp dword [ebp - 0x118], 0
je 0x46bd52
push dword [ebp - 0x11c]
lea eax, [ebp - 0x114]
push 1
push 4
push eax
call fcn.00530e93
add esp, 0x10
cmp eax, 1
jae 0x46bd52
lea eax, [ebp - 0x110]
push eax
push str.:7:SetDefaultFtpMode___FAILED:_fread___s___FAILED___
call fcn.0042b70b
and dword [ebp - 0x114], 0
pop ecx
pop ecx
push 3
pop esi
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 0x114], edi
jl 0x46bd68
cmp dword [ebp - 0x114], esi
jle 0x46bd89
push dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push eax
push str.:8:SetDefaultFtpMode___encountered_a_problem:_The_memory_file___s__is_invalid:_The_memory_value_must_be__3___2___1__1__2__or_3_but_it_was_found_to_be__ld_
call fcn.0042b70b
add esp, 0xc
and dword [ebp - 0x114], 0
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x46bda4
inc dword [ebp - 0x114]
jne 0x46bdbc
mov dword [ebp - 0x114], 1
jmp 0x46bdbc
cmp dword [ebp + 8], 0x8000000
jne 0x46bdbc
dec dword [ebp - 0x114]
jne 0x46bdbc
or dword [ebp - 0x114], 0xffffffff
cmp dword [ebp - 0x114], esi
jle 0x46bdcc
mov dword [ebp - 0x114], esi
jmp 0x46bdda
cmp dword [ebp - 0x114], edi
jge 0x46bdda
mov dword [ebp - 0x114], edi
push eax
push eax
push dword [ebp - 0x11c]
call fcn.00532310
add esp, 0xc
test eax, eax
je 0x46be01
lea eax, [ebp - 0x110]
push eax
push str.:6:SetDefaultFtpMode___FAILED:_fseek___s___0__SEEK_SET__FAILED___
call fcn.0042b70b
pop ecx
pop ecx
push dword [ebp - 0x11c]
lea eax, [ebp - 0x114]
push 1
push 4
push eax
call fcn.00531aad
add esp, 0x10
cmp eax, 1
jae 0x46be39
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x114]
push str.:8:SetDefaultFtpMode___FAILED:_fwrite__d____s___FAILED___
call fcn.0042b70b
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
call fcn.00435239
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret