Function at 0x14008ee30
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x108
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x88], rcx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x100], rcx
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0xf0], 0
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x14008eebd
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0xf0], 0
mov qword [rax], 0
xor eax, eax
add rsp, 0x108
ret
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xe8], rax
mov dword [rsp + 0xe4], 0
mov rcx, qword [rsp + 0xe8]
lea rdx, [rsp + 0xe4]
call sub.KERNEL32.dll_GetConsoleMode
mov ecx, eax
mov rax, qword [rsp + 0x80]
mov dword [rsp + 0xe0], ecx
mov rax, qword [rax + 8]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
mov eax, 0x40000000
cmp rcx, 0x40000000
cmovl rax, rcx
mov qword [rsp + 0xd0], rax
cmp dword [rsp + 0xe0], 0
je 0x14008f090
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x60], rcx
mov r9, qword [rsp + 0xf8]
mov qword [rsp + 0x58], r9
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
lea rcx, str.D:_Dev_Odin_core_os_file_windows.odin
mov edx, 0xa7
mov r8d, 0x2e
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
call fcn.1400bcfe0
mov r8, qword [rsp + 0x80]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
mov rcx, rdx
add rcx, qword [r8]
sub rax, rdx
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
lea rcx, str.D:_Dev_Odin_core_os_file_windows.odin
mov edx, 0xa7
mov r8d, 0x3b
mov qword [rsp + 0x20], rax
call fcn.1400bcb10
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
mov rdx, qword [rsp + 0xc0]
sub rax, 0
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xa8], 0
lea rdx, [rsp + 0xb0]
lea r8, [rsp + 0xa8]
call fcn.14008e8e0
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0xf0], rax
cmp qword [rsp + 0xf0], 0
setne al
and al, 1
cmp al, 0
je 0x14008f08b
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0xf8]
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0xf0], rax
mov qword [rcx], rdx
add rsp, 0x108
ret
jmp 0x14008f1c9
mov dword [rsp + 0x94], 0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov r9, qword [rsp + 0xf8]
mov qword [rsp + 0x40], r9
mov rax, qword [rax + 8]
lea rcx, str.D:_Dev_Odin_core_os_file_windows.odin
mov edx, 0xae
mov r8d, 0x28
mov qword [rsp + 0x20], rax
call fcn.1400bb4c0
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add rdx, rax
mov rax, qword [rsp + 0xd0]
mov r8d, eax
lea r9, [rsp + 0x94]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_ReadFile
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
je 0x14008f19a
cmp dword [rsp + 0x94], 0
sete al
and al, 1
cmp al, 0
je 0x14008f16d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0xf0], 0x26
mov qword [rax], 0
mov eax, 0x26
add rsp, 0x108
ret
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x94]
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0xf0], 0
mov qword [rax], rcx
xor eax, eax
add rsp, 0x108
ret
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x78]
mov eax, eax
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0xf0], rax
mov qword [rcx], 0
add rsp, 0x108
ret
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0xf0], 0
mov qword [rax], rcx
xor eax, eax
add rsp, 0x108
ret