Function at 0x1400372e0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x148
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x90], rcx
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x140], rcx
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x130], 0
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x140037399
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x138], 0
mov dword [rsp + 0x134], 0
mov dword [rsp + 0x130], 0
mov qword [rax], 0
mov dword [rsp + 0x12c], 0
mov dword [rsp + 0x128], 0
mov rax, qword [rsp + 0x128]
add rsp, 0x148
ret
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x120], rax
mov dword [rsp + 0x11c], 0
mov rcx, qword [rsp + 0x120]
lea rdx, [rsp + 0x11c]
call sub.KERNEL32.dll_GetConsoleMode
mov ecx, eax
mov rax, qword [rsp + 0x88]
mov dword [rsp + 0x118], ecx
mov rax, qword [rax + 8]
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x110]
mov eax, 0x40000000
cmp rcx, 0x40000000
cmovl rax, rcx
mov qword [rsp + 0x108], rax
cmp dword [rsp + 0x118], 0
je 0x14003759a
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x68], rcx
mov r9, qword [rsp + 0x138]
mov qword [rsp + 0x58], r9
mov rcx, qword [rax + 8]
mov qword [rsp + 0x50], rcx
mov rax, rsp
mov qword [rax + 0x28], rcx
mov qword [rax + 0x20], rcx
lea rcx, str.E:_Odin_core_os_file_windows.odin
mov edx, 0xa7
mov dword [rsp + 0x64], edx
mov r8d, 0x2e
call fcn.140029800
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov edx, dword [rsp + 0x64]
mov r9, qword [rsp + 0x68]
mov rcx, qword [rcx]
add rcx, r8
sub rax, r8
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x100]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.E:_Odin_core_os_file_windows.odin
mov r8d, 0x3b
call fcn.140029410
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov r9, qword [rsp + 0x78]
mov rdx, qword [rsp + 0xf8]
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe0], 0
lea rdx, [rsp + 0xe8]
lea r8, [rsp + 0xe0]
call fcn.140036d40
mov qword [rsp + 0xd8], rax
mov eax, dword [rsp + 0xd8]
mov ecx, dword [rsp + 0xdc]
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0x138], rdx
mov dword [rsp + 0x134], ecx
mov dword [rsp + 0x130], eax
cmp dword [rsp + 0x134], 0
setne al
and al, 1
cmp al, 0
je 0x140037595
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x138]
mov edx, dword [rsp + 0x130]
mov r8d, dword [rsp + 0x134]
mov dword [rsp + 0x134], r8d
mov dword [rsp + 0x130], edx
mov qword [rax], rcx
mov rax, qword [rsp + 0x130]
add rsp, 0x148
ret
jmp 0x1400377c6
mov dword [rsp + 0xc4], 0
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov r9, qword [rsp + 0x138]
mov qword [rsp + 0x40], r9
mov rax, qword [rax + 8]
lea rcx, str.E:_Odin_core_os_file_windows.odin
mov edx, 0xae
mov r8d, 0x28
mov qword [rsp + 0x20], rax
call fcn.1400280b0
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add rdx, rax
mov rax, qword [rsp + 0x108]
mov r8d, eax
lea r9, [rsp + 0xc4]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_ReadFile
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x14003776f
cmp dword [rsp + 0xc4], 0
sete al
and al, 1
cmp al, 0
je 0x140037719
mov qword [rsp + 0xb8], 0
xor eax, eax
test al, 1
jne 0x140037662
jmp 0x14003767a
mov dword [rsp + 0xbc], 0
mov dword [rsp + 0xb8], 0
jmp 0x140037690
mov dword [rsp + 0xb8], 1
mov dword [rsp + 0xbc], 2
mov eax, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xbc]
mov qword [rsp + 0x138], 0
mov dword [rsp + 0x134], ecx
mov dword [rsp + 0x130], eax
mov qword [rsp + 0xb0], 0
xor eax, eax
test al, 1
jne 0x1400376cc
jmp 0x1400376e4
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0xb0], 0
jmp 0x1400376fa
mov dword [rsp + 0xb0], 1
mov dword [rsp + 0xb4], 2
mov rax, qword [rsp + 0x80]
mov qword [rax], 0
mov rax, qword [rsp + 0xb0]
add rsp, 0x148
ret
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0xc4]
mov qword [rsp + 0x138], rcx
mov dword [rsp + 0x134], 0
mov dword [rsp + 0x130], 0
mov qword [rax], rcx
mov dword [rsp + 0xac], 0
mov dword [rsp + 0xa8], 0
mov rax, qword [rsp + 0xa8]
add rsp, 0x148
ret
call fcn.1400368d0
mov rcx, rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xa0], rcx
mov ecx, dword [rsp + 0xa0]
mov edx, dword [rsp + 0xa4]
mov qword [rsp + 0x138], 0
mov dword [rsp + 0x134], edx
mov dword [rsp + 0x130], ecx
mov qword [rax], 0
mov rax, qword [rsp + 0xa0]
add rsp, 0x148
ret
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x138]
mov dword [rsp + 0x134], 0
mov dword [rsp + 0x130], 0
mov qword [rax], rcx
mov dword [rsp + 0x9c], 0
mov dword [rsp + 0x98], 0
mov rax, qword [rsp + 0x98]
add rsp, 0x148
ret