Function at 0x14008e88c
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x30]
mov rax, qword [0x140301ed0]
xor rax, rbp
mov qword [rbp + 0x48], rax
xor r14d, r14d
mov dword [rsp + 0x20], 1
and dword [rbp + 8], r14d
mov r12, r8
mov r15, rdx
lea r8, str..exe
or rdi, 0xffffffffffffffff
mov rbx, rcx
lea r9d, [r14 + 4]
mov rdx, rdi
call fcn.1400a7edc
test eax, eax
jne 0x14008e968
lea rsi, [0x1403303a0]
mov r9, rbx
mov rcx, rsi
lea r8, [0x1402d3bac]
mov edx, 0x118
call fcn.140001138
mov r9, rbx
lea r8, [0x1402d3bb0]
mov edx, 0x1000
lea rcx, [0x14030f3a0]
mov edi, eax
call fcn.140001138
lea rax, [0x14030c3a0]
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [0x14030f3a0]
xor edx, edx
mov ecx, 0xfde9
call qword [0x140208320]
lea r8, [0x1402670cc]
lea rdx, [0x14030c3a0]
lea rcx, [rbp]
call fcn.1401e07f0
jmp 0x14008e9b6
lea r8, [0x140266d34]
mov rdx, rdi
mov rcx, rbx
call fcn.1400a8018
lea rsi, [0x1403303a0]
mov edx, 0x118
lea r8, [0x1402663dc]
mov rcx, rsi
test eax, eax
jle 0x14008e99f
cdqe
lea r9, [rbx + 1]
add r9, rax
jmp 0x14008e9a2
mov r9, rbx
call fcn.140001138
mov edi, eax
add eax, 0xfffffffc
movsxd rcx, eax
sub edi, 3
mov byte [rcx + rsi], 0x5f
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.140004774
test eax, eax
jne 0x14008e9f4
movsxd r11, edi
lea edx, [rax + 0x30]
lea rcx, [rbp + 0x10]
lea r8, [r11 + rsi]
call fcn.14009d384
lea rcx, [r11 + 0x10]
mov edx, 5
add rcx, rsi
lea r8, str..exe
mov r9d, edx
call section..text
lea rax, [0x14030c3a0]
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [0x140208320]
lea r8, [0x1402670cc]
lea rdx, [0x14030c3a0]
lea rcx, [rbp]
call fcn.1401e07f0
cmp qword [rbp], r14
je 0x14008ec96
mov edx, 0x11
movsxd r8, edi
lea rcx, [0x14030ad90]
add r8, rsi
mov qword [0x14030adf8], rcx
lea r9d, [rdx - 1]
call section..text
mov rcx, qword [rbp]
xor r8d, r8d
xor edx, edx
call fcn.1401e115c
mov r9, qword [rbp]
lea rbx, [0x14030f3a0]
mov esi, 2
mov rcx, rbx
mov r8d, esi
lea edi, [rsi - 1]
mov edx, edi
call fcn.1401e35a8
movzx ecx, word [0x14030f3a0]
call qword [0x1402089b0]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x14008ec8d
mov rcx, qword [rbp]
lea edx, [rsi + 0x3a]
xor r8d, r8d
call fcn.1401e115c
mov r9, qword [rbp]
lea r8d, [rsi + 2]
mov edx, edi
mov rcx, rbx
call fcn.1401e35a8
mov edx, dword [0x14030f3a0]
xor r8d, r8d
mov rcx, qword [rbp]
call fcn.1401e115c
mov r9, qword [rbp]
lea r8d, [rsi + 0x16]
mov edx, edi
mov rcx, rbx
call fcn.1401e35a8
cmp dword [0x14030f3a0], 0x4550
jne 0x14008ec8d
movzx edx, word [0x14030f3b4]
lea rax, [rdx + 0x38]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14008eb1b
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401d9db0
sub rsp, rcx
mov r9d, edi
mov r8d, 8
lea rcx, [rsp + 0x30]
call fcn.14009f390
mov rbx, rax
add rax, 8
mov r8, qword [rbx - 0x18]
mov qword [rbx], rax
cmp r8, 4
jae 0x14008eb5f
mov rcx, qword [rbp]
call fcn.1401e0da0
jmp 0x14008eca0
mov r9, qword [rbp]
mov rdx, rdi
mov rcx, rbx
call fcn.1401e35a8
movzx eax, word [rbx]
cmp eax, 0x10b
je 0x14008eb9f
cmp eax, 0x20b
jne 0x14008eb51
cmp qword [rbx - 0x18], 0x94
jb 0x14008eb51
mov edx, dword [rbx + 0x90]
mov rcx, qword [rbp]
test edx, edx
je 0x14008ebb1
add edx, 0xfffffff0
xor r8d, r8d
jmp 0x14008ebb9
cmp qword [rbx - 0x18], 0x84
jb 0x14008eb51
mov edx, dword [rbx + 0x80]
jmp 0x14008eb8f
mov edx, 0xfffffff0
mov r8d, esi
call fcn.1401e115c
mov r9, qword [rbp]
lea rcx, [0x14030f3a0]
mov r8d, 0x10
mov rdx, rdi
call fcn.1401e35a8
lea r8, [0x1403103a0]
mov edx, 0x20
lea rcx, [0x140302b20]
call fcn.14009d48c
mov rax, qword [0x14030f3a0]
cmp rax, qword [0x1403103a0]
jne 0x14008ec8d
mov rax, qword [0x14030f3a8]
cmp rax, qword [0x1403103a8]
jne 0x14008ec8d
mov rcx, qword [rbp]
mov r8d, edi
mov edx, 0xffffffec
call fcn.1401e115c
mov r9, qword [rbp]
lea rcx, [rbp + 8]
mov r8d, 4
mov rdx, rdi
call fcn.1401e35a8
mov ecx, dword [rbp + 8]
call qword [0x1402089b8]
mov rcx, qword [rbp]
mov edx, 0xfffffffc
sub edx, eax
mov dword [rbp + 8], eax
mov r8d, edi
call fcn.1401e115c
mov eax, dword [rbp + 8]
xor r9d, r9d
inc eax
xor r8d, r8d
movsxd rcx, eax
xor edx, edx
call fcn.14009f674
movsxd r8, dword [rbp + 8]
mov rdx, rdi
mov r9, qword [rbp]
mov rcx, rax
mov r14, rax
call fcn.1401e35a8
movsxd rcx, dword [rbp + 8]
mov byte [rcx + r14], 0
mov rcx, qword [rbp]
call fcn.1401e0da0
mov eax, dword [rbp + 8]
mov qword [r15], r14
mov dword [r12], eax
mov rcx, qword [rbp + 0x48]
xor rcx, rbp
call fcn.1401d9840
lea rsp, [rbp + 0x50]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret