Function at 0x14000d6f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rdx
xor r13d, r13d
mov qword [rsp + 0x30], r13
cmp qword [rcx + 0x18], 8
jb 0x14000d73c
mov rcx, qword [rcx]
lea r8, [0x1400f7350]
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1400bd3f8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x14000d774
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
call fcn.14000ecc0
mov rax, qword [rsi]
mov qword [rsi + 8], rax
xor al, al
jmp 0x14000dcd3
xor r8d, r8d
lea edx, [r8 + 0x18]
call fcn.1400bdcd8
mov dword [rsp + 0x3c], r13d
mov r9, qword [rsp + 0x30]
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x3c]
call fcn.1400bd7f8
mov edx, 0x14
lea r8d, [rdx - 0x13]
mov rcx, qword [rsp + 0x30]
call fcn.1400bdcd8
mov r12d, r13d
cmp dword [rsp + 0x3c], r13d
jle 0x14000dcc7
mov r14d, 0x1d0
or rdi, 0xffffffffffffffff
lea r15, [0x14016e800]
mov word [rsp + 0x28], r13w
mov r9, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x28]
call fcn.1400bd7f8
mov word [rsp + 0x44], r13w
mov r9, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x44]
call fcn.1400bd7f8
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
mov word [rsp + 0x24], r13w
mov r9, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x24]
call fcn.1400bd7f8
movsx eax, word [rsp + 0x24]
cdq
sub eax, edx
sar eax, 1
mov word [rsp + 0x24], ax
mov ebx, r13d
cmp r13w, ax
jge 0x14000d935
nop dword [rax + rax]
mov word [rsp + 0x20], r13w
mov r9, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x20]
call fcn.1400bd7f8
movzx eax, word [rsp + 0x20]
cmp ax, r14w
ja 0x14000dc4a
movsx rdx, ax
shl rdx, 5
add rdx, r15
mov r9, rdi
xor r8d, r8d
lea rcx, [rsp + 0x68]
call fcn.14000bb90
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r13
mov word [rbp - 0x20], r13w
mov r8d, 1
lea rdx, [0x1400f7358]
lea rcx, [rbp - 0x20]
call fcn.140006900
nop
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x68]
call fcn.14000bb90
nop
cmp qword [rbp - 8], 8
jb 0x14000d8f5
mov rcx, qword [rbp - 0x20]
call fcn.1400bd20c
inc ebx
movsx eax, word [rsp + 0x24]
cmp ebx, eax
jl 0x14000d860
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14000d935
lea rcx, [rax - 1]
cmp rax, rcx
jb 0x14000dc3d
mov qword [rsp + 0x78], rcx
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
mov word [rax + rcx*2], r13w
mov r15d, r13d
cmp r13w, word [rsp + 0x28]
jge 0x14000dc1c
nop dword [rax]
nop dword [rax + rax]
mov word [rsp + 0x20], r13w
mov r9, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x20]
call fcn.1400bd7f8
movsx rdi, word [rsp + 0x20]
shr rdi, 1
movsx eax, di
inc eax
movsxd rbx, eax
mov eax, 2
mul rbx
mov r9, 0xffffffffffffffff
cmovo rax, r9
mov rcx, rax
call fcn.1400bbc88
mov r14, rax
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
call fcn.1400c2130
movsx r8, di
mov r9, qword [rsp + 0x30]
mov edx, 2
mov rcx, r14
call fcn.1400bd7f8
mov word [rsp + 0x38], r13w
mov r9, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x38]
call fcn.1400bd7f8
mov word [rsp + 0x40], r13w
mov r9, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x40]
call fcn.1400bd7f8
mov dword [rsp + 0x48], r13d
mov r9, qword [rsp + 0x30]
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x48]
call fcn.1400bd7f8
inc r12d
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r13
mov word [rbp - 0x70], r13w
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140006b90
nop
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r13
mov word [rbp - 0x50], r13w
cmp word [r14], 0
jne 0x14000da64
mov r8, r13
jmp 0x14000da7b
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [r14 + r8*2], 0
jne 0x14000da70
mov rdx, r14
lea rcx, [rbp - 0x50]
call fcn.140006900
movsx eax, word [rsp + 0x38]
mov dword [rbp - 0x30], eax
mov r8, qword [rsi + 8]
lea rax, [rbp - 0x70]
cmp rax, r8
jae 0x14000db59
mov rax, qword [rsi]
lea rcx, [rbp - 0x70]
cmp rax, rcx
ja 0x14000db59
lea rcx, [rbp - 0x70]
sub rcx, rax
movabs rax, 0xe38e38e38e38e39
imul rcx
mov rbx, rdx
sar rbx, 2
mov rax, rbx
shr rax, 0x3f
add rbx, rax
cmp r8, qword [rsi + 0x10]
jne 0x14000dae3
mov rcx, rsi
call fcn.14000ed40
lea rcx, [rbx + rbx*8]
mov rax, qword [rsi]
lea rdi, [rax + rcx*8]
mov rbx, qword [rsi + 8]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x14000db4e
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140006b90
nop
lea rcx, [rbx + 0x20]
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r13
mov word [rcx], r13w
lea rdx, [rdi + 0x20]
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.140006b90
mov eax, dword [rdi + 0x40]
mov dword [rbx + 0x40], eax
add qword [rsi + 8], 0x48
or rdi, 0xffffffffffffffff
jmp 0x14000dbcb
cmp r8, qword [rsi + 0x10]
jne 0x14000db67
mov rcx, rsi
call fcn.14000ed40
mov rbx, qword [rsi + 8]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x14000dbc6
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.140006b90
nop
lea rcx, [rbx + 0x20]
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r13
mov word [rcx], r13w
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x50]
call fcn.140006b90
mov eax, dword [rbp - 0x30]
mov dword [rbx + 0x40], eax
add qword [rsi + 8], 0x48
mov rcx, r14
call fcn.1400bd2dc
nop
cmp qword [rbp - 0x38], 8
jb 0x14000dbe4
mov rcx, qword [rbp - 0x50]
call fcn.1400bd20c
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r13
mov word [rbp - 0x50], r13w
cmp qword [rbp - 0x58], 8
jb 0x14000dc05
mov rcx, qword [rbp - 0x70]
call fcn.1400bd20c
inc r15d
movsx eax, word [rsp + 0x28]
cmp r15d, eax
jl 0x14000d950
mov r14d, 0x1d0
cmp qword [rbp - 0x80], 8
jb 0x14000dc2d
mov rcx, qword [rsp + 0x68]
call fcn.1400bd20c
cmp r12d, dword [rsp + 0x3c]
jge 0x14000dcc7
jmp 0x14000d7c8
lea rcx, str.invalid_string_position
call fcn.1400bbc50
int3
mov r14, qword [rsi + 8]
mov rdi, qword [rsi]
cmp rdi, r14
je 0x14000dcab
lea rbx, [rdi + 0x38]
nop word [rax + rax]
cmp qword [rbx], 8
jb 0x14000dc6f
mov rcx, qword [rbx - 0x18]
call fcn.1400bd20c
mov qword [rbx], 7
mov qword [rbx - 8], r13
mov word [rbx - 0x18], r13w
cmp qword [rbx - 0x20], 8
jb 0x14000dc8e
mov rcx, qword [rdi]
call fcn.1400bd20c
mov qword [rbx - 0x20], 7
mov qword [rbx - 0x28], r13
mov word [rdi], r13w
add rdi, 0x48
add rbx, 0x48
cmp rdi, r14
jne 0x14000dc60
mov rax, qword [rsi]
mov qword [rsi + 8], rax
cmp qword [rbp - 0x80], 8
jb 0x14000dcc3
mov rcx, qword [rsp + 0x68]
call fcn.1400bd20c
xor al, al
jmp 0x14000dcd3
mov rcx, qword [rsp + 0x30]
call fcn.1400bddc8
mov al, 1
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400bcae0
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret