Function at 0x10001011c
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 [0x100017110]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r14d, r14d
mov r12, rcx
xor eax, eax
lea rcx, [r11 - 0x5c]
lea r8d, [r14 + 0x10]
xor edx, edx
mov esi, r14d
mov dword [r11 - 0x70], r14d
mov dword [r11 - 0x74], r14d
mov dword [r11 - 0x68], r14d
mov word [r11 - 0x48], r14w
mov qword [r11 - 0x46], rax
mov dword [r11 - 0x60], r14d
call sub.msvcrt.dll_memset
mov ebp, r14d
cmp r12, r14
jne 0x1000101a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r14d
jne 0x100010445
lea ecx, [r14 + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100010445
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, r14
je 0x100010445
cmp rax, 0xf
je 0x1000101d5
cmp rax, 3
je 0x1000101d5
cmp rax, 0xffffffffffffffff
je 0x1000101d5
mov edi, 1
mov ebp, edi
jmp 0x1000101fc
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, r14d
je 0x100010445
xor eax, eax
movsxd r13, ebp
mov rbp, r12
lea r15d, [rax + 0xa]
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], r14
lea r9, [rsp + 0x38]
mov r8d, edi
mov rcx, rbx
cmp r13, rdi
jne 0x100010283
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r14d
je 0x100010445
cmp dword [rsp + 0x38], r14d
je 0x1000103e3
mov al, byte [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x38], r15d
mov byte [rsp + 0x60], al
call fcn.100010000
movzx r11d, word [rsp + 0x48]
mov word [rsp + 0x3c], r11w
jmp 0x10001029d
lea rdx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
cmp eax, r14d
je 0x100010438
mov r11w, word [rsp + 0x3c]
cmp r11w, 0xd
je 0x1000103e3
mov eax, 8
cmp r11w, ax
jne 0x100010385
cmp esi, r14d
je 0x100010220
lea r8, [0x100001c00]
lea rcx, [rsp + 0x48]
mov r9d, eax
mov rdx, r15
call fcn.100001db8
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], r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea r8, [0x100001c00]
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov rdx, r15
call fcn.100001db8
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], r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea r8, [0x100001c00]
lea rcx, [rsp + 0x48]
mov r9d, 8
mov rdx, r15
call fcn.100001db8
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], r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
dec esi
sub rbp, 2
jmp 0x100010220
cmp esi, 0xfd
jne 0x1000103a1
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [0x100001c08]
jmp 0x1000103c8
cmp r11w, r15w
je 0x100010220
mov word [rbp], r11w
mov ecx, 0xfffffff5
add esi, edi
add rbp, 2
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [0x1000015ac]
lea r9, [rsp + 0x34]
mov r8d, edi
mov rcx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x100010220
mov edx, dword [rsp + 0x40]
mov eax, esi
mov rcx, rbx
mov word [r12 + rax*2], r14w
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rdx, [0x100001c0c]
lea rcx, [rsp + 0x48]
mov r8d, r15d
call fcn.10000f884
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], r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, edi
jmp 0x100010447
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.100014d50
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