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

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rbp + 0x37], rax
cmp qword [rcx + 0x18], 0x10
movzx r14d, r9b
mov rsi, r8
jb 0x1400dc5d4
mov rcx, qword [rcx]
lea rdx, [0x14022e87c]
mov qword [rsp + 0xf8], rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x1400dc631
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r9d, 0x4b0
mov ecx, dword [rax]
lea rax, str.Open_the_version_file_error:_d
mov dword [rsp + 0x28], ecx
lea r8, str.DistributedDB::ChangeVersionFile
mov ecx, 3
mov qword [rsp + 0x20], rax
lea rdx, [0x1402bf768]
call fcn.1400cc1d0
mov eax, 0xfffffbed
jmp 0x1400dc835
xor edx, edx
mov qword [rbp - 0x49], 0x37f8c35a
lea rcx, [rbp - 0x3d]
mov dword [rbp - 0x41], 1
lea r8d, [rdx + 0x74]
call fcn.1401ec560
mov edx, 1
lea rcx, [rbp - 0x49]
mov r9, rdi
lea r8d, [rdx + 0x7f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 0x80
je 0x1400dc690
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r9d, 0x4b7
mov ecx, dword [rax]
lea rax, str.Read_file_error:_d
jmp 0x1400dc606
lea rcx, [rbp - 0x49]
call fcn.1400dc3e0
mov ebx, eax
test eax, eax
jne 0x1400dc82a
movzx eax, byte [rbp - 0x42]
mov byte [rbp - 0x59], al
movzx eax, byte [rbp - 0x43]
mov byte [rbp - 0x58], al
movzx eax, byte [rbp - 0x44]
mov byte [rbp - 0x57], al
movzx eax, byte [rbp - 0x45]
mov byte [rbp - 0x56], al
movzx eax, byte [rbp - 0x46]
mov byte [rbp - 0x55], al
movzx eax, byte [rbp - 0x47]
mov byte [rbp - 0x54], al
movzx eax, byte [rbp - 0x48]
mov byte [rbp - 0x53], al
movzx eax, byte [rbp - 0x49]
mov byte [rbp - 0x52], al
mov rax, qword [rbp - 0x59]
mov qword [rbp - 0x49], rax
movzx eax, byte [rbp - 0x3e]
mov byte [rbp - 0x59], al
movzx eax, byte [rbp - 0x3f]
mov byte [rbp - 0x58], al
movzx eax, byte [rbp - 0x40]
mov byte [rbp - 0x57], al
movzx eax, byte [rbp - 0x41]
mov byte [rbp - 0x56], al
mov eax, dword [rbp - 0x59]
mov dword [rbp - 0x41], eax
mov dword [rbp - 0x3d], 0x65
test r14b, r14b
je 0x1400dc730
lea edx, [rbx + 8]
lea rcx, [rbp - 0x39]
call qword [sym.imp.libcrypto_1_1_x64.dll_RAND_bytes]
lea r8, [rbp - 0x31]
mov rcx, rsi
lea rdx, [rbp - 0x39]
call fcn.14004a5e0
nop
movzx eax, byte [rbp - 0x42]
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x59], al
movzx eax, byte [rbp - 0x43]
mov byte [rbp - 0x58], al
movzx eax, byte [rbp - 0x44]
mov byte [rbp - 0x57], al
movzx eax, byte [rbp - 0x45]
mov byte [rbp - 0x56], al
movzx eax, byte [rbp - 0x46]
mov byte [rbp - 0x55], al
movzx eax, byte [rbp - 0x47]
mov byte [rbp - 0x54], al
movzx eax, byte [rbp - 0x48]
mov byte [rbp - 0x53], al
movzx eax, byte [rbp - 0x49]
mov byte [rbp - 0x52], al
mov rax, qword [rbp - 0x59]
mov qword [rbp - 0x49], rax
movzx eax, byte [rbp - 0x3e]
mov byte [rbp - 0x59], al
movzx eax, byte [rbp - 0x3f]
mov byte [rbp - 0x58], al
movzx eax, byte [rbp - 0x40]
mov byte [rbp - 0x57], al
movzx eax, byte [rbp - 0x41]
mov byte [rbp - 0x56], al
mov eax, dword [rbp - 0x59]
mov dword [rbp - 0x41], eax
movzx eax, byte [rbp - 0x3a]
mov byte [rbp - 0x59], al
movzx eax, byte [rbp - 0x3b]
mov byte [rbp - 0x58], al
movzx eax, byte [rbp - 0x3c]
mov byte [rbp - 0x57], al
movzx eax, byte [rbp - 0x3d]
mov byte [rbp - 0x56], al
mov eax, dword [rbp - 0x59]
mov dword [rbp - 0x3d], eax
call fcn.1400dc230
mov ebx, eax
test eax, eax
jne 0x1400dc82a
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
lea edx, [rbx + 1]
mov r9, rdi
lea rcx, [rbp - 0x49]
lea r8d, [rdx + 0x7f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 0x80
je 0x1400dc828
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r9d, 0x4cf
lea r8, str.DistributedDB::ChangeVersionFile
lea rdx, [0x1402bf768]
mov ecx, dword [rax]
lea rax, str.write_the_file_error:_d
mov dword [rsp + 0x28], ecx
lea ecx, [rbx + 3]
mov qword [rsp + 0x20], rax
call fcn.1400cc1d0
mov ebx, 0xfffffbed
jmp 0x1400dc82a
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, ebx
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401eb080
mov rsi, qword [rsp + 0x108]
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret