Function at 0x1400f7cb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400f7d10
mov rdx, qword [rdi + 0x50]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x1400f7d10
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
movzx eax, byte [rdx]
jmp 0x1400f7f52
cmp qword [rdi + 0x80], 0
jne 0x1400f7d24
mov eax, 0xffffffff
jmp 0x1400f7f52
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400f7d51
mov rdx, qword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov rcx, qword [rdi + 0x80]
cmp qword [rdi + 0x68], 0
jne 0x1400f7d8b
mov r9, rcx
mov edx, 1
mov r8d, edx
lea rcx, [rbp + 0x28]
call fcn.140289ea8
cmp rax, 1
movzx ebx, byte [rbp + 0x28]
je 0x1400f7f50
mov ebx, 0xffffffff
jmp 0x1400f7f50
xor eax, eax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], select
mov byte [rbp + 0x2f], al
call fcn.140284824
cmp eax, 0xffffffff
mov edx, eax
je 0x1400f7f14
mov rcx, qword [rbp + 0x3f]
mov r8, qword [rbp + 0x47]
cmp rcx, r8
jae 0x1400f7ddc
lea rax, [rcx + 1]
mov qword [rbp + 0x3f], rax
lea rax, [rbp + 0x2f]
cmp r8, 0x10
cmovae rax, qword [rbp + 0x2f]
mov byte [rax + rcx], dl
mov byte [rax + rcx + 1], 0
jmp 0x1400f7df0
movzx r9d, dl
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp + 0x2f]
call fcn.14005e4b0
mov r10, qword [rdi + 0x68]
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae rdx, qword [rbp + 0x2f]
mov r9, qword [rbp + 0x3f]
add r9, rdx
lea r8, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae r8, qword [rbp + 0x2f]
mov rax, qword [r10]
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x27]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x17]
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + 0x74]
mov rcx, r10
mov rax, qword [rax + 0x30]
call qword [case.0x1400ac8a1.0]
test eax, eax
je 0x1400f7e58
sub eax, 1
jne 0x1400f7eaf
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x1f], rax
lea rax, [rbp + 0x2f]
jne 0x1400f7ec7
cmp qword [rbp + 0x47], 0x10
cmovae rax, qword [rbp + 0x2f]
mov r10, qword [rbp + 0x17]
sub r10, rax
mov r8, qword [rbp + 0x3f]
cmp r8, r10
cmovb r10, r8
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae rcx, qword [rbp + 0x2f]
sub r8, r10
mov qword [rbp + 0x3f], r8
inc r8
lea rdx, [rcx + r10]
call fcn.14026bb50
mov rcx, qword [rdi + 0x80]
jmp 0x1400f7da0
cmp eax, 2
jne 0x1400f7f14
lea rax, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae rax, qword [rbp + 0x2f]
movsx ebx, byte [rax]
jmp 0x1400f7f19
cmp qword [rbp + 0x47], 0x10
cmovae rax, qword [rbp + 0x2f]
mov rbx, qword [rbp + 0x3f]
mov rcx, qword [rbp + 0x17]
sub rbx, rcx
add rbx, rax
test rbx, rbx
jle 0x1400f7f0e
nop dword [rax]
nop dword [rax + rax]
dec rbx
movsx ecx, byte [rbx + rcx]
mov rdx, qword [rdi + 0x80]
call fcn.140284f04
test rbx, rbx
jle 0x1400f7f0e
mov rcx, qword [rbp + 0x17]
jmp 0x1400f7ef0
movzx ebx, byte [rbp + 0x27]
jmp 0x1400f7f19
mov ebx, 0xffffffff
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x1400f7f50
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f7f4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400f7f73
call fcn.140269844
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140269300
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140277ff8
int3