Function at 0x1400a77a0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp], rax
mov r15, r8
mov r14, rcx
xor r12d, r12d
mov edi, r12d
mov r9, rdx
mov r8, rcx
lea rdx, [0x140333e80]
lea rcx, [rbp - 0x28]
call fcn.14004bce0
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x58]
call fcn.1400ae2f0
nop
cmp qword [rax + 0x18], 8
jb 0x1400a780f
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x14031da90]
lea rcx, [rbp - 0x78]
call fcn.14004bce0
cmp qword [rax + 0x18], 8
jb 0x1400a782c
mov rax, qword [rax]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100081
lea r8d, [r9 + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x1400a7873
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.14004e100
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r12
mov word [rbp - 0x78], r12w
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x1400a789e
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.14004e100
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r12
mov word [rbp - 0x58], r12w
cmp rsi, 0xffffffffffffffff
je 0x1400a7be5
mov dword [rbp - 0x30], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x30]
mov r8d, 8
lea rdx, [rbp - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a7bdb
cmp dword [rbp - 0x30], 8
jne 0x1400a7bdb
movzx r8d, byte [rbp - 5]
movzx edx, byte [rbp - 6]
movzx ecx, byte [rbp - 7]
mov rax, qword [rbp - 8]
cmp al, 0xc3
jne 0x1400a797a
cmp cl, 0xca
jne 0x1400a797a
cmp dl, 3
jne 0x1400a797a
cmp r8b, 0xc1
jne 0x1400a797a
mov rcx, r15
call fcn.140052250
mov rbx, rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x40]
call fcn.14004e170
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x40]
lea rcx, [0x140458068]
call fcn.140056330
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
lea rcx, [0x140458068]
call fcn.1400563b0
nop
jmp 0x1400a7a2b
cmp al, 0x30
jne 0x1400a7bdb
cmp cl, 0x5c
jne 0x1400a7bdb
cmp dl, 0x72
jne 0x1400a7bdb
cmp r8b, 0xa7
jne 0x1400a7bdb
cmp byte [rbp - 4], 0x1b
jne 0x1400a7bdb
cmp byte [rbp - 3], 0x6d
jne 0x1400a7bdb
cmp byte [rbp - 2], 0xfb
jne 0x1400a7bdb
cmp byte [rbp - 1], 0xfc
jne 0x1400a7bdb
mov rcx, r15
call fcn.140052250
mov rbx, rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x40]
call fcn.14004e170
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x40]
lea rcx, [0x140458058]
call fcn.140056330
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
lea rcx, [0x140458058]
call fcn.1400563b0
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1400a7a48
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14004e100
mov edi, 1
mov r8, r14
lea rdx, str._sIndexedDB
lea rcx, [rsp + 0x68]
call fcn.14004bce0
mov rbx, rax
lea rax, [rbp - 0x28]
cmp rax, rbx
je 0x1400a7aa5
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400a7a87
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.14004e100
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r12
mov word [rbp - 0x28], r12w
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14004dce0
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x1400a7ac1
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.14004e100
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r8, qword [rbp - 0x28]
lea rdx, [0x14031da90]
lea rcx, [rsp + 0x68]
call fcn.14004bce0
cmp qword [rax + 0x18], 8
jb 0x1400a7aea
mov rax, qword [rax]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100081
lea r8d, [r9 + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x1400a7b33
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.14004e100
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r12
mov word [rsp + 0x68], r12w
cmp rbx, 0xffffffffffffffff
je 0x1400a7bdb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.140052250
mov rbx, rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x40]
call fcn.14004e170
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x40]
lea rcx, [0x140458068]
call fcn.140056330
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
lea rcx, [0x140458068]
call fcn.1400563b0
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1400a7bdb
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14004e100
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400a7bff
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.14004e100
mov eax, edi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret