Function at 0x14000edf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400cfce8]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r15, rdx
mov dl, 1
call fcn.14000cf30
mov qword [0x1400d16e0], rax
cmp rax, 0xffffffffffffffff
je 0x14000f13a
xor r12d, r12d
mov r14d, r12d
cmp byte [0x1400d16d9], r12b
jne 0x14000f0db
movabs r13, 0x7fffffffffffffff
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x14000f13a
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], recv
mov byte [rsp + 0x60], 0
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne sil
test eax, eax
je 0x14000ef47
mov eax, dword [rsp + 0x30]
cmp rax, 0x401
jae 0x14000f234
mov byte [rbp + rax - 0x80], 0
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000eee0
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x14000ef2e
lea rax, [rcx + rbx]
mov qword [rsp + 0x70], rax
lea rdi, [rsp + 0x60]
cmp rdx, 0x10
cmovae rdi, qword [rsp + 0x60]
add rdi, rcx
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x14000ef47
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x80]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140009630
test sil, sil
je 0x14000f170
mov eax, dword [rsp + 0x30]
cmp eax, 0x400
jne 0x14000ef67
mov rax, qword [0x1400d16e0]
jmp 0x14000ee90
test eax, eax
jne 0x14000efc3
test r14d, r14d
jne 0x14000efa9
lea rdx, [0x1400097c0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, str.MEGAcmdServer.exe_is_probably_down._Executing_anything_will_try_to_respawn_or_reconnect_to_it
call fcn.140008c90
mov r14d, 0x1d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000f08a
sub r14d, 1
je 0x14000f0e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000f08a
test r15, r15
je 0x14000f08a
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov rdi, qword [rsp + 0x70]
lea rsi, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rsi, qword [rsp + 0x60]
cmp rdi, 0x10
jae 0x14000f00a
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x50], recv
jmp 0x14000f07c
mov rbx, rdi
or rbx, 0xf
cmp rbx, r13
cmova rbx, r13
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14000f054
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000f22e
mov rcx, rax
call fcn.140055554
mov rcx, rax
test rax, rax
je 0x14000f169
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000f063
test rcx, rcx
je 0x14000f060
call fcn.140055554
jmp 0x14000f063
mov rax, r12
mov qword [rsp + 0x38], rax
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x38]
call r15
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000f0c7
inc rdx
mov rcx, qword [rsp + 0x60]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000f0c2
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f227
call fcn.140055590
mov rax, qword [0x1400d16e0]
cmp byte [0x1400d16d9], 0
je 0x14000ee60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000f13f
mov byte [0x1400d1571], 1
mov rcx, qword [0x1400d16e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000f13a
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f135
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f227
call fcn.140055590
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140055ba0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x6d
jne 0x14000f1a2
cmp byte [0x1400d16d9], 0
jne 0x14000f1d9
cmp byte [0x1400d1572], 0
jne 0x14000f1d9
lea rdx, str.ERROR_reading_output__state_change_:_The_sever_problably_exited.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
jmp 0x14000f1c9
lea rdx, str.ERROR_reading_output__state_change_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x1400d16e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000f13a
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f135
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f135
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14000a220
int3
call fcn.1400558f8
int3