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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov r8, qword [rcx + 8]
mov rbx, rcx
mov rcx, qword [r8 + 0x2b8]
mov rax, qword [r8 + 0x2c0]
cmp rcx, rax
je 0x14003778b
cmp dword [rbx + 0x2c0], 1
jne 0x140037bae
sub rax, rcx
sar rax, 3
cmp rax, 1
ja 0x140037bae
mov ecx, dword [rbx + 0x2c0]
xor esi, esi
test ecx, ecx
je 0x14003788e
sub ecx, 1
je 0x14003783e
sub ecx, 1
je 0x140037bae
sub ecx, 1
je 0x140037827
cmp ecx, 1
jne 0x1400378d1
lea rcx, [rbx + 0x20]
mov qword [rbx + 0x18], rsi
cmp qword [rcx + 0x18], 0x10
jb 0x1400377de
mov rcx, qword [rcx]
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], esi
mov edx, 0x8721
mov qword [rsp + 0x20], rax
mov r9d, 0x180
mov r8d, 0x40
call fcn.140125864
mov ecx, dword [rbp + 0x67]
test eax, eax
mov edx, 0xffffffff
cmovne ecx, edx
test ecx, ecx
js 0x1400378d1
lea rdx, [0x14014cfb8]
call fcn.14012614c
jmp 0x1400378cd
cmp qword [rbx + 0x38], 0x10
lea rcx, [rbx + 0x20]
jb 0x1400378c1
mov rcx, qword [rcx]
jmp 0x1400378c1
mov qword [rbx + 0x18], rsi
mov ecx, 0x20
mov rax, qword [r8 + 0x2c0]
mov edx, 0x10
cmp qword [r8 + 0x2b8], rax
cmove edx, ecx
lea rcx, [rbx + 0x20]
bts edx, 0xf
cmp qword [rcx + 0x18], 0x10
jb 0x14003786f
mov rcx, qword [rcx]
mov r8d, 0x100
call fcn.140034e20
test eax, eax
js 0x1400378d1
lea rdx, [0x14014cfb0]
mov ecx, eax
call fcn.14012614c
jmp 0x1400378cd
cmp qword [rbx + 0x38], 0x10
lea rdi, [rbx + 0x20]
mov rcx, rdi
jb 0x14003789f
mov rcx, qword [rdi]
lea rdx, [0x1401511c8]
call fcn.140123cbc
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400378d1
cmp qword [rdi + 0x18], 0x10
jb 0x1400378be
mov rdi, qword [rdi]
mov rcx, rdi
lea rdx, [0x14014cfb8]
call fcn.140123cbc
mov qword [rbx + 0x18], rax
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140037bae
mov rax, qword [rbx + 8]
mov rdx, qword [rax + 0x2b8]
cmp rdx, qword [rax + 0x2c0]
je 0x140037907
mov rax, qword [rdx]
mov qword [rbx + 0x10], rax
mov al, 1
mov byte [rbx + 0x2d8], 1
jmp 0x140037bb0
mov edx, dword [rbx + 0x2c0]
lea eax, [rdx - 3]
cmp eax, 1
jbe 0x140037bf2
cmp edx, 1
jne 0x140037930
lea r9d, [rdx + 0x37]
xor r8d, r8d
xor edx, edx
call fcn.140126274
mov rcx, qword [rbx + 0x18]
xor edx, edx
lea r8d, [rdx + 2]
call fcn.140124288
mov rcx, qword [rbx + 0x18]
call fcn.1401247e0
mov rcx, qword [rbx + 0x18]
movsxd r14, eax
call fcn.140124abc
test r14, r14
je 0x140037bd1
movzx eax, byte [0x140201b58]
test al, al
jne 0x140037bd1
mov r9, qword [rbx + 0x18]
lea rcx, [rbp - 0x31]
mov edx, 1
lea r8d, [rdx + 0xf]
call fcn.140123fb0
cmp rax, 0x10
jne 0x140037bae
lea r8d, [rax - 1]
lea rdx, [0x140150a40]
lea rcx, [rbp - 0x31]
call fcn.140118a40
test eax, eax
jne 0x140037bae
movzx eax, byte [rbp - 0x22]
sub eax, 5
cmp eax, 1
ja 0x140037bae
mov edi, 0x10
mov r15, r14
cmp rdi, r14
jae 0x140037b8d
nop word [rax + rax]
movzx eax, byte [0x140201b58]
test al, al
jne 0x140037bae
mov dword [rbp - 0x79], esi
mov r15, rdi
lea rsi, [rdi + 0x38]
cmp rsi, r14
ja 0x140037b55
mov r9, qword [rbx + 0x18]
lea rcx, [rbp - 0x69]
mov edx, 1
lea r8d, [rdx + 0x37]
call fcn.140123fb0
cmp rax, 0x38
jne 0x140037bae
movzx r12d, byte [rbp - 0x3e]
mov rdi, rsi
movzx eax, byte [rbp - 0x3f]
movzx ecx, byte [rbp - 0x3a]
shl ecx, 8
shl r12d, 8
or r12d, eax
movzx eax, byte [rbp - 0x40]
shl r12d, 8
or r12d, eax
movzx eax, byte [rbp - 0x41]
shl r12d, 8
or r12d, eax
movzx eax, byte [rbp - 0x3b]
or ecx, eax
mov dword [rbp - 0x79], r12d
movzx eax, byte [rbp - 0x3c]
shl ecx, 8
or ecx, eax
lea r13, [r12 + rsi]
movzx eax, byte [rbp - 0x3d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp - 0x37]
mov dword [rbp - 0x75], ecx
movzx ecx, byte [rbp - 0x36]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp - 0x38]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp - 0x39]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp - 0x33]
mov dword [rbp - 0x71], ecx
movzx ecx, byte [rbp - 0x32]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp - 0x34]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp - 0x35]
shl ecx, 8
or ecx, eax
mov dword [rbp - 0x6d], ecx
cmp r13, r14
ja 0x140037b55
movups xmm0, xmmword [rbp - 0x61]
xor edx, edx
lea rcx, [rbp - 0x21]
movups xmm1, xmmword [rbp - 0x51]
mov byte [rbp - 0x11], 0
mov byte [rbp + 7], 0
lea r8d, [rdx + 0x10]
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 9], xmm1
call fcn.140121018
mov esi, eax
cmp eax, 0xa
jae 0x140037b2c
xor edx, edx
lea rcx, [rbp - 9]
lea r8d, [rdx + 0x10]
call fcn.140121044
movups xmm0, xmmword [rbp - 0x79]
mov r8, rax
mov qword [rbp + 0x67], rax
mov edx, esi
mov qword [rbp + 0xf], rdi
mov rcx, rbx
movups xmmword [rbp + 0x17], xmm0
call fcn.140039090
test al, al
je 0x140037b2c
lea rcx, [rsi + 1]
shl rcx, 6
lea r9, [rbp + 0xf]
add rcx, rbx
lea r8, [rbp + 0x67]
lea rdx, [rbp + 0x27]
call fcn.140032a50
mov rcx, qword [rbx + 0x18]
mov r8d, 1
mov edx, r12d
call fcn.140124288
test eax, eax
js 0x140037bae
mov rdi, r13
mov esi, 0
cmp r13, r14
jb 0x1400379d0
jmp 0x140037b8d
call fcn.14001bb80
cmp eax, 1
jg 0x140037b8d
lea rdx, str.Detected_sliced_file._Dropping_entries_from_here._n
mov ecx, 1
call fcn.14001c200
test al, al
jne 0x140037b8d
mov ecx, 2
call fcn.140121190
lea rdx, str.Fossilize_WARN:_Detected_sliced_file._Dropping_entries_from_here._n
mov rcx, rax
call fcn.1400020d0
cmp dword [rbx + 0x2c0], 0
jne 0x140037c10
cmp rdi, r14
je 0x140037c10
mov rcx, qword [rbx + 0x18]
xor r8d, r8d
mov edx, r15d
call fcn.140124288
test eax, eax
jns 0x140037c10
xor al, al
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r9, qword [rbx + 0x18]
lea rcx, [0x140150a40]
mov edx, 1
lea r8d, [rdx + 0xf]
call fcn.140124a38
cmp rax, 0x10
je 0x140037c10
jmp 0x140037bae
mov edx, 1
mov r9, rcx
lea rcx, [0x140150a40]
lea r8d, [rdx + 0xf]
call fcn.140124a38
cmp rax, 0x10
jne 0x140037bae
mov byte [rbx + 0x2d8], 1
mov al, 1
jmp 0x140037bb0