Function at 0x464ba3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x108]
push 0x104
push edi
push eax
mov dword [ebp - 0x10c], edi
call fcn.004e4da0
mov esi, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [0x682f34]
mov dword [ebp - 0x110], ebx
cmp esi, 0x8000000
je 0x464c02
test esi, esi
je 0x464c02
push esi
push str.:7:SetDefaultFtpMode__ld__FAILED:_The_given_mode_is_invalid__must_be_either_INTERNET_FLAG_PASSIVE_or_INTERNET_FLAG_ACTIVE_
call fcn.004255b9
pop ecx
jmp 0x464e06
push str.FtpMode.dat
push edi
push edi
mov dword [0x682f34], esi
call fcn.0047ced0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x108]
push 0x50d2a0
push eax
call fcn.00404f28
add esp, 0x10
mov dword [ebp - 0x114], edi
push 0x6c9
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
lea eax, [ebp - 0x108]
push 0x50b578
push eax
call fcn.0042d2de
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x464cf0
lea eax, [ebp - 0x108]
push eax
call fcn.0042916f
pop ecx
test eax, eax
je 0x464c8b
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x114]
inc eax
mov dword [ebp - 0x114], eax
cmp eax, 5
jl 0x464c31
test edi, edi
jne 0x464cf0
xor ebx, ebx
push 0x6de
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Network.c
lea eax, [ebp - 0x108]
push 0x50a348
push eax
call fcn.0042d2de
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x464d26
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
jl 0x464c8d
lea eax, [ebp - 0x108]
push eax
call fcn.0042916f
push eax
lea eax, [ebp - 0x108]
push eax
push eax
push esi
push str.:7:SetDefaultFtpMode__ld__FAILED:_fopen___s____wb___FAILED:_DoesFileExist___s___returns__ld.
call fcn.004255b9
mov eax, dword [ebp - 0x110]
add esp, 0x18
jmp 0x464e09
push edi
push 1
lea eax, [ebp - 0x10c]
push 4
push eax
call fcn.004e8bc6
add esp, 0x10
cmp eax, 1
jae 0x464d2c
lea eax, [ebp - 0x108]
push eax
push str.:7:SetDefaultFtpMode___FAILED:_fread___s___FAILED___
call fcn.004255b9
pop ecx
xor eax, eax
pop ecx
mov dword [ebp - 0x10c], eax
jmp 0x464d32
mov ebx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
cmp eax, 0xfffffffd
jl 0x464d3c
cmp eax, 3
jle 0x464d59
push eax
lea eax, [ebp - 0x108]
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.004255b9
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x10c], eax
test esi, esi
jne 0x464d6d
add eax, 1
mov dword [ebp - 0x10c], eax
jne 0x464d89
xor eax, eax
inc eax
jmp 0x464d83
cmp esi, 0x8000000
jne 0x464d89
sub eax, 1
mov dword [ebp - 0x10c], eax
jne 0x464d89
or eax, 0xffffffff
mov dword [ebp - 0x10c], eax
cmp eax, 3
jle 0x464d9a
mov dword [ebp - 0x10c], 3
jmp 0x464da9
cmp eax, 0xfffffffd
jge 0x464da9
mov dword [ebp - 0x10c], 0xfffffffd
push 0
push 0
push edi
call fcn.004e8fdc
add esp, 0xc
test eax, eax
je 0x464dcd
lea eax, [ebp - 0x108]
push eax
push str.:6:SetDefaultFtpMode___FAILED:_fseek___s___0__SEEK_SET__FAILED___
call fcn.004255b9
pop ecx
pop ecx
push edi
push 1
lea eax, [ebp - 0x10c]
push 4
push eax
call fcn.004e9927
add esp, 0x10
cmp eax, 1
jae 0x464e00
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
push str.:8:SetDefaultFtpMode___FAILED:_fwrite__d____s___FAILED___
call fcn.004255b9
add esp, 0xc
push edi
call fcn.0042d153
mov eax, ebx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret