Function at 0x14007d000
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
lea r14, [rdx + 0x10]
lea rdx, [0x1402aa1e2]
push r13
push r12
push rdi
push rsi
push rbx
mov rbx, rcx
mov rcx, r14
and rsp, 0xfffffffffffffff0
add rsp, 0xffffffffffffff80
call sub.msvcrt.dll_fopen
test rax, rax
je 0x14007d2f5
lea rcx, [rsp + 0x50]
mov r9, rax
mov edx, 1
mov r13, rax
mov r8d, 0x25
mov byte [rsp + 0x74], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 0
call sub.msvcrt.dll_fread
cmp rax, 0x25
jne 0x14007d24c
movabs rax, 0xfa340bef153eba48
cmp qword [rsp + 0x50], rax
jne 0x14007d286
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x14007d2c0
mov qword [rsp + 0x48], 0
xor esi, esi
lea rdi, [rsp + 0x48]
jmp 0x14007d0c3
add esi, 1
mov r9, r13
mov r8d, 8
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fread
mov r12, rax
test rax, rax
je 0x14007d160
mov rcx, r13
call sub.msvcrt.dll_feof
test eax, eax
jne 0x14007d160
mov r15, qword [rsp + 0x48]
cmp r12, 8
jne 0x14007d1b0
test r15, r15
je 0x14007d1b0
mov rcx, r15
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x14007d327
mov r8, r15
mov r9, r13
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov r8, qword [rsp + 0x48]
cmp r8, rax
jne 0x14007d210
mov rdx, r12
mov rcx, rbx
call qword [rbx + 0xb0]
sub eax, 1
cmp eax, 1
ja 0x14007d0c0
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x14007d0c0
lea rax, str.Loaded_all__lu_atoms_in_cell__s
mov qword [rsp + 0x30], r14
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov r9d, 1
xor r12d, r12d
lea r8, str.dap_chain_cell
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov rcx, r13
call sub.msvcrt.dll_fclose
lea rsp, [rbp - 0x38]
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, str.Corrupted_element_size__zu__chain__s_is_damaged
mov qword [rsp + 0x30], r14
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r15
mov r9d, 7
lea r8, str.dap_chain_cell
mov r12d, 0xfffffffc
mov qword [rsp + 0x20], rax
call fcn.14005aec0
lea rax, str.Couldnt_load_all_atoms___lu_only
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, str.dap_chain_cell
call fcn.14005aec0
jmp 0x14007d18e
mov qword [rsp + 0x28], rax
lea rax, str.Read_only__lu_of__zu_bytes__stop_cell_loading
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], r8
mov r9d, 7
lea r8, str.dap_chain_cell
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov rcx, r12
mov r12d, 0xfffffffa
call sub.msvcrt.dll_free
jmp 0x14007d1e2
lea rax, str.Cant_read_chain_header___s_
mov qword [rsp + 0x28], r14
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_chain_cell
mov r12d, 0xfffffffe
call fcn.14005aec0
mov rcx, r13
call sub.msvcrt.dll_fclose
jmp 0x14007d196
lea rax, str.Wrong_signature_in_chain___s___possible_file_corrupt
mov qword [rsp + 0x28], r14
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_chain_cell
mov r12d, 0xfffffffd
call fcn.14005aec0
mov rcx, r13
call sub.msvcrt.dll_fclose
jmp 0x14007d196
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov r12d, 0xfffffffd
lea rax, str.Too_low_chain_version__backup_files
lea r8, str.dap_chain_cell
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov rcx, r13
call sub.msvcrt.dll_fclose
jmp 0x14007d196
lea rax, str.Cant_read_chain___s_
mov qword [rsp + 0x28], r14
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, str.dap_chain_cell
mov r12d, 0xffffffff
call fcn.14005aec0
jmp 0x14007d196
lea rax, [0x1402aa1ca]
mov r9d, 8
lea r8, str.dap_chain_cell
mov edx, 0xe8
mov qword [rsp + 0x20], rax
lea rcx, str.dap_chain_cell_load
mov r12d, 0xfffffffb
call fcn.14005aec0
jmp 0x14007d1e2