Function at 0x1000080e4
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x10000e110]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r15d, r15d
mov r12, rcx
mov r14d, edx
xor eax, eax
lea rcx, [r11 - 0x5c]
lea r8d, [r15 + 0x10]
xor edx, edx
mov esi, r15d
mov dword [r11 - 0x70], r15d
mov dword [r11 - 0x74], r15d
mov dword [r11 - 0x68], r15d
mov word [r11 - 0x48], r15w
mov qword [r11 - 0x46], rax
mov dword [r11 - 0x60], r15d
call sub.msvcrt.dll_memset
mov ebp, r15d
cmp r12, r15
jne 0x10000816e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r15d
jne 0x100008419
lea ecx, [r15 + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100008419
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, r15
je 0x100008419
cmp rax, 0xf
je 0x1000081a0
cmp rax, 3
je 0x1000081a0
cmp rax, 0xffffffffffffffff
je 0x1000081a0
mov edi, 1
mov ebp, edi
jmp 0x1000081c7
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edi, 1
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp eax, r15d
je 0x100008419
xor eax, eax
movsxd r13, ebp
mov rbp, r12
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], ax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x38]
mov r8d, edi
mov rcx, rbx
cmp r13, rdi
jne 0x10000824d
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r15d
je 0x100008419
cmp dword [rsp + 0x38], r15d
je 0x1000083b4
mov al, byte [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x38], 0xa
mov byte [rsp + 0x60], al
call fcn.100007fc8
movzx r11d, word [rsp + 0x48]
mov word [rsp + 0x3c], r11w
jmp 0x100008267
lea rdx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
cmp eax, r15d
je 0x10000840c
mov r11w, word [rsp + 0x3c]
cmp r11w, 0xd
je 0x1000083b4
mov eax, 8
cmp r11w, ax
jne 0x100008351
cmp esi, r15d
je 0x1000081e7
lea r8, [0x100001670]
lea edx, [rax + 2]
lea rcx, [rsp + 0x48]
mov r9d, eax
call fcn.1000017e8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov r8d, edi
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor r9d, r9d
lea r8, [0x100001670]
lea edx, [r9 + 0xa]
lea rcx, [rsp + 0x48]
call fcn.1000017e8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov r8d, edi
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov r9d, 8
lea r8, [0x100001670]
lea edx, [r9 + 2]
lea rcx, [rsp + 0x48]
call fcn.1000017e8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov r8d, edi
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
dec esi
sub rbp, 2
jmp 0x1000081e7
lea eax, [r14 - 1]
cmp esi, eax
jne 0x10000836d
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [0x100001678]
jmp 0x100008399
mov eax, 0xa
cmp r11w, ax
je 0x1000081e7
mov word [rbp], r11w
mov ecx, 0xfffffff5
add esi, edi
add rbp, 2
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [0x100001628]
lea r9, [rsp + 0x34]
mov r8d, edi
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1000081e7
mov edx, dword [rsp + 0x40]
mov eax, esi
mov rcx, rbx
mov word [r12 + rax*2], r15w
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rdx, [0x10000167c]
lea rcx, [rsp + 0x48]
mov r8d, 0xa
call fcn.1000077f8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov r8d, 2
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, edi
jmp 0x10000841b
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.10000c0f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret