Function at 0x140038380
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 0x140038610
cmp dword [rcx + 0x30], 1
jne 0x140038610
mov rax, qword [rcx]
call qword [rax + 0x20]
test al, al
je 0x140038610
test rsi, rsi
je 0x140038610
mov r9, rdi
mov r8d, r14d
lea rdx, str._02x._016llx.json
lea rcx, [rbp - 0x60]
call fcn.1400319c0
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 0x140038410
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.1400417b0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140038474
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003846f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038635
call fcn.140116d50
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, [0x14014dfb0]
call fcn.140123fac
mov rbx, rax
test rax, rax
jne 0x14003850a
call fcn.14001bd20
cmp eax, 2
jg 0x1400385c6
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.14001c3a0
test al, al
jne 0x1400385c6
lea rbx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rbx, qword [rbp - 0x40]
mov ecx, 2
call fcn.140121458
mov r8, rbx
lea rdx, str.Fossilize_ERROR:_Failed_to_open_file:__s_n
mov rcx, rax
call fcn.1400020d0
xor bl, bl
jmp 0x1400385d4
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call fcn.140124548
mov rcx, rbx
test eax, eax
jns 0x140038583
call fcn.140123e8c
call fcn.14001bd20
cmp eax, 2
jg 0x1400385c6
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.14001c3a0
test al, al
jne 0x1400385c6
lea rbx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rbx, qword [rbp - 0x40]
mov ecx, 2
call fcn.140121458
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 0x1400385d4
call fcn.140124aa0
movsxd rdi, eax
mov rcx, rbx
call fcn.140124d7c
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x1400385a1
cmp qword [rsi], rdi
jb 0x1400385be
mov qword [rsi], rdi
test rcx, rcx
je 0x1400385ca
mov r9, rbx
mov r8, rdi
mov edx, 1
call fcn.140124270
cmp rax, rdi
je 0x1400385ca
mov rcx, rbx
call fcn.140123e8c
xor bl, bl
jmp 0x1400385d4
mov rcx, rbx
call fcn.140123e8c
mov bl, 1
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x14003860b
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038606
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003862f
call fcn.140116d50
movzx eax, bl
jmp 0x140038612
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.14011d39c
nop
call fcn.14011d39c
nop
int3