Function at 0x1400e9838
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], 0xfffffffffffffffe
mov qword [rbp + 0xe8], rdx
mov qword [rbp + 0xf0], rcx
xorps xmm0, xmm0
lea r13, [rbp + 0xa0]
movaps xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
lea rsi, [rbp - 0x18]
mov r15, rbp
lea rdi, [rbp - 0x58]
mov dword [rbp + 0xfc], 0x400
mov edx, 0x400
mov rcx, rsi
mov r8, r15
call fcn.1400438f2
mov ebx, dword [rbp + 0xfc]
mov rcx, rsi
call fcn.140043d72
mov rdx, qword [rax]
mov qword [rsp + 0x20], 0
mov rcx, qword [rbp + 0xe8]
mov r8d, ebx
lea r9, [rbp + 0xfc]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
mov edx, dword [rbp + 0xfc]
test edx, edx
setne bl
xor bl, cl
or edx, eax
sete r12b
or r12b, bl
cmp r12b, 1
jne 0x1400e999d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1400e9b1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
call fcn.1400e0e71
mov rbx, rdi
mov rcx, rdi
call fcn.140049776
lea rdi, [rbp + 0x60]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
lea rdx, [0x14014d6ca]
mov r8d, eax
mov r9, r14
call fcn.14004788a
mov rcx, rdi
lea rdi, [rbp + 0x40]
mov rdx, rdi
call fcn.1400495ba
mov rcx, r15
mov rdx, rdi
call fcn.140047e1c
mov rdi, rbx
mov rcx, qword [rbp + 0xf0]
mov rdx, r15
call fcn.1400e9e43
mov rcx, r15
call fcn.14003bda0
lea rcx, [rbp + 0x40]
call fcn.140004672
lea rcx, [rbp + 0x60]
call fcn.14003bda0
mov rcx, rdi
call fcn.14003bda0
jmp 0x1400e9b1c
mov rcx, rsi
mov rdx, r15
call fcn.1400b326a
mov r8d, dword [rbp + 0xfc]
mov rcx, r15
lea rdx, [rbp + 0xb8]
call fcn.1400e50b0
mov rcx, rsi
lea rdx, [rbp + 0xc0]
call fcn.1400b326a
mov rcx, r13
lea rdx, [rbp + 0x60]
call fcn.1400b32d0
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xb8]
mov qword [rsp + 0x20], rax
mov rcx, r13
mov rdx, rdi
call fcn.1400b307a
mov rcx, r13
call fcn.140001a90
cmp rax, 0x20
jb 0x1400e9b1c
mov rcx, r13
call fcn.140001a90
test al, 1
jne 0x1400e9a48
mov rcx, r15
mov rdx, r13
call fcn.1400e0a04
mov rcx, qword [rbp + 0xf0]
mov rdx, r15
call fcn.1400e9e43
mov rcx, r15
call fcn.14003bda0
mov rcx, r13
call fcn.1400b3336
jmp 0x1400e9b1c
mov rcx, r13
mov rdx, rdi
call fcn.1400b32d0
mov r8d, 1
mov rcx, rdi
lea rdx, [rbp + 0xc8]
call fcn.1400e9f02
mov rcx, r13
lea rdx, [rbp + 0xd0]
call fcn.1400b326a
mov rdx, qword [rbp + 0xd0]
mov r8, qword [rbp + 0xc8]
lea rcx, [rbp + 0x60]
lea r9, [rbp + 0x40]
call fcn.1400ea022
mov rcx, r15
lea rdx, [rbp + 0x60]
call fcn.1400e0a04
mov rcx, qword [rbp + 0xf0]
mov rdx, r15
call fcn.1400e9e43
mov rcx, r15
call fcn.14003bda0
lea rbx, [rbp + 0x60]
mov rcx, rbx
call fcn.140001cd0
mov rcx, r13
lea rdx, [rbp + 0xd8]
call fcn.1400b32d0
mov rcx, r13
mov rdx, rbx
call fcn.1400b32d0
mov r8d, 1
mov rcx, rbx
lea rdx, [rbp + 0xe0]
call fcn.1400e9f02
mov rdx, qword [rbp + 0xe0]
mov r8, qword [rbp + 0xd8]
mov rcx, r15
mov r9, rdi
call fcn.1400ea022
mov rcx, r13
mov rdx, r15
call fcn.14004239c
mov rcx, r15
call fcn.140001cd0
mov rcx, rsi
call fcn.140001cd0
test r12b, r12b
je 0x1400e988e
mov rcx, rbp
lea rdx, [rbp + 0xa0]
call fcn.1400e0a04
mov rdx, rbp
mov rcx, qword [rbp + 0xf0]
call fcn.1400e9e43
mov rcx, rbp
call fcn.14003bda0
lea rcx, [rbp + 0xa0]
call fcn.140001cd0
nop
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret