Function at 0x1400381e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rsi, r9
mov rdi, r8
mov r14d, edx
mov rbx, rcx
test byte [rbp + 0x38], 1
jne 0x140038470
cmp dword [rcx + 0x30], 1
jne 0x140038470
mov rax, qword [rcx]
call qword [rax + 0x20]
test al, al
je 0x140038470
test rsi, rsi
je 0x140038470
mov r9, rdi
mov r8d, r14d
lea rdx, str._02x._016llx.json
lea rcx, [rbp - 0x60]
call fcn.140031820
xor edi, edi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], dil
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x140038270
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x20]
call fcn.140001ad0
nop
lea rdx, [rbx + 0x10]
lea r8, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.140041610
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x1400382d4
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400382cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038495
call fcn.140116b70
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], 0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
lea rdx, [0x14014cfb0]
call fcn.140123cbc
mov rbx, rax
test rax, rax
jne 0x14003836a
call fcn.14001bb80
cmp eax, 2
jg 0x140038426
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae r8, qword [rbp - 0x40]
lea rdx, str.Failed_to_open_file:__s_n
lea ecx, [rbx + 2]
call fcn.14001c200
test al, al
jne 0x140038426
lea rbx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rbx, qword [rbp - 0x40]
mov ecx, 2
call fcn.140121190
mov r8, rbx
lea rdx, str.Fossilize_ERROR:_Failed_to_open_file:__s_n
mov rcx, rax
call fcn.1400020d0
xor bl, bl
jmp 0x140038434
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call fcn.140124288
mov rcx, rbx
test eax, eax
jns 0x1400383e3
call fcn.140123b9c
call fcn.14001bb80
cmp eax, 2
jg 0x140038426
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae r8, qword [rbp - 0x40]
lea rdx, str.Failed_to_seek_in_file:__s_n
mov ecx, 2
call fcn.14001c200
test al, al
jne 0x140038426
lea rbx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rbx, qword [rbp - 0x40]
mov ecx, 2
call fcn.140121190
mov r8, rbx
lea rdx, str.Fossilize_ERROR:_Failed_to_seek_in_file:__s_n
mov rcx, rax
call fcn.1400020d0
xor bl, bl
jmp 0x140038434
call fcn.1401247e0
movsxd rdi, eax
mov rcx, rbx
call fcn.140124abc
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140038401
cmp qword [rsi], rdi
jb 0x14003841e
mov qword [rsi], rdi
test rcx, rcx
je 0x14003842a
mov r9, rbx
mov r8, rdi
mov edx, 1
call fcn.140123fb0
cmp rax, rdi
je 0x14003842a
mov rcx, rbx
call fcn.140123b9c
xor bl, bl
jmp 0x140038434
mov rcx, rbx
call fcn.140123b9c
mov bl, 1
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x14003846b
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038466
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003848f
call fcn.140116b70
movzx eax, bl
jmp 0x140038472
xor al, al
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14011d1bc
nop
call fcn.14011d1bc
nop
int3