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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rbp + 0x40], rax
movzx edi, dl
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], r14b
add rcx, 0xa8
lea rdx, [rbp - 0x20]
call fcn.1401063c0
mov ebx, eax
test eax, eax
jne 0x1400dcd97
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rbp + 0x10], xmm0
mov byte [rbp], al
mov dword [rsp + 0x30], 1
mov rbx, qword [rbp - 0x10]
lea rdx, [rbx + 1]
lea rcx, [rbp]
call fcn.14002ff60
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
mov r8, rbx
lea rcx, [rbp]
call fcn.14001eac0
lea r8d, [r14 + 1]
lea rdx, [0x140217908]
lea rcx, [rbp]
call fcn.14001eac0
lea rdx, [0x1402bf728]
cmp qword [0x1402bf740], 0x10
cmovae rdx, qword [0x1402bf728]
mov r8, qword [0x1402bf738]
lea rcx, [rbp]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], r14b
mov dword [rsp + 0x30], 3
lea r8d, [r14 + 8]
lea rdx, str._version
lea rcx, [rbp + 0x20]
call fcn.14001eac0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], r14b
lea rcx, [rbp + 0x20]
call fcn.14001cb10
nop
lea rcx, [rbp]
call fcn.14001cb10
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
lea rcx, [rbp - 0x40]
test eax, eax
jns 0x1400dcb89
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
lea rdx, [0x14022e688]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x1400dca21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [rax]
mov dword [rsp + 0x28], edx
mov r9d, 0x488
lea r8, str.DistributedDB::CreateNewVersionFile
jmp 0x1400dcbdd
mov qword [rsp + 0x40], 0x37f8c35a
mov dword [rsp + 0x48], 1
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1401ec560
mov dword [rsp + 0x4c], 0x65
mov edx, 8
lea rcx, [rsp + 0x50]
call qword [sym.imp.libcrypto_1_1_x64.dll_RAND_bytes]
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
movzx eax, byte [rsp + 0x47]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x46]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x45]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x33], al
movzx eax, byte [rsp + 0x43]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x42]
mov byte [rsp + 0x35], al
movzx eax, byte [rsp + 0x41]
mov byte [rsp + 0x36], al
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x37], al
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movzx eax, byte [rsp + 0x4b]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x4a]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x49]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x33], al
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
movzx eax, byte [rsp + 0x4f]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x4e]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x4d]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x33], al
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x40]
call fcn.1400dc230
mov ebx, eax
test eax, eax
jne 0x1400dcd83
mov r9, rdi
lea edx, [rax + 1]
lea r8d, [rdx + 0x7f]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 0x80
je 0x1400dcb81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
lea rax, str.Write_version_file_head_error:_d
mov r9d, 0x49d
lea r8, str.DistributedDB::CreateNewVersionFile
jmp 0x1400dcc60
mov ebx, r14d
jmp 0x1400dcd6d
test dil, dil
je 0x1400dcba5
lea r8, [rsi + 0x498]
movzx r9d, dil
call fcn.1400dc5a0
mov ebx, eax
jmp 0x1400dcd8d
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
lea rdx, [0x14022e87c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x1400dcc04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x28], ecx
mov r9d, 0x4de
lea r8, str.DistributedDB::GetVersionAndTag
lea rax, str.Open_the_version_file_error:_d
mov qword [rsp + 0x20], rax
lea rdx, [0x1402bf768]
mov ecx, 3
call fcn.1400cc1d0
mov ebx, 0xfffffbed
jmp 0x1400dcd8d
mov qword [rsp + 0x40], 0x37f8c35a
mov dword [rsp + 0x48], 1
xor edx, edx
lea r8d, [rdx + 0x74]
lea rcx, [rsp + 0x4c]
call fcn.1401ec560
mov r9, rdi
mov edx, 1
lea r8d, [rdx + 0x7f]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 0x80
je 0x1400dcc84
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
lea rax, str.read_the_file_error:_d
mov r9d, 0x4e5
lea r8, str.DistributedDB::GetVersionAndTag
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea rdx, [0x1402bf768]
mov ecx, 3
call fcn.1400cc1d0
mov ebx, 0xfffffbed
jmp 0x1400dcd83
lea rcx, [rsp + 0x40]
call fcn.1400dc3e0
mov ebx, eax
test eax, eax
je 0x1400dccc3
lea rax, str.Check_the_file_block_error
mov qword [rsp + 0x20], rax
mov r9d, 0x4eb
lea r8, str.DistributedDB::GetVersionAndTag
lea rdx, [0x1402bf768]
mov ecx, 3
call fcn.1400cc1d0
jmp 0x1400dcd83
movzx eax, byte [rsp + 0x47]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x46]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x45]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x33], al
movzx eax, byte [rsp + 0x43]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x42]
mov byte [rsp + 0x35], al
movzx eax, byte [rsp + 0x41]
mov byte [rsp + 0x36], al
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x37], al
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movzx eax, byte [rsp + 0x4b]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x4a]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x49]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x33], al
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
movzx eax, byte [rsp + 0x4f]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x4e]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x4d]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x33], al
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x4c], eax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x498]
call fcn.14004a5e0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
lea rcx, [rbp - 0x40]
call fcn.14001cb10
nop
lea rcx, [rbp - 0x20]
call fcn.14001cb10
mov eax, ebx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1401eb080
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret