Function at 0x1400249f4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c9118]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rdx
xor r12d, r12d
mov dword [rsp + 0x34], r12d
mov rcx, rdx
call fcn.140009b88
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], r12d
mov rdi, qword [rsi + 0x10]
lea r15, [rsi + 8]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x28]
mov rbx, rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024c54
mov ebx, dword [rsp + 0x30]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x28]
cmp rbx, rax
jae 0x140024bc8
mov rax, qword [rsi + 0x10]
mov byte [rbx + rax], r12b
mov rbx, qword [rsi + 0x10]
mov qword [rbp - 0x69], 0xf
mov qword [rbp - 0x71], r12
mov byte [rsp + 0x48], r12b
cmp byte [rbx], r12b
jne 0x140024ace
mov eax, r12d
jmp 0x140024ad6
mov rcx, rbx
call fcn.1400653e0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140004720
nop
lea rdx, [rsp + 0x48]
cmp byte [rsi + 0x20], r12b
je 0x140024b16
xor r8d, r8d
lea rcx, [rbp - 0x61]
call fcn.14000c470
nop
mov rdx, rax
mov rcx, r14
call fcn.14000a948
nop
lea rcx, [rbp - 0x61]
call fcn.14000a3b0
jmp 0x140024b1e
mov rcx, r14
call fcn.14000a964
lea rdx, [0x1400a54e0]
lea rcx, [rbp - 0x61]
call fcn.140009b04
nop
lea r8, [rbp - 0x61]
lea rdx, [0x1400ccdf8]
mov rcx, r14
call fcn.14000dc20
nop
lea rcx, [rbp - 0x61]
call fcn.14000a3b0
lea rdx, str..._nsConsole.cpp
lea rcx, [rbp - 0x61]
call fcn.140009aa8
mov rcx, rax
lea rdi, [rsi + 0x28]
mov rsi, qword [rdi]
mov rax, qword [rax]
call qword [rax + 0x1e8]
mov rbx, rax
mov rcx, r14
call fcn.14000aed0
mov r8, rax
mov dword [rsp + 0x20], 0x53
mov r9, rbx
lea rdx, str.InputLine_s___s:_d_
mov rcx, rdi
call qword [rsi + 0x148]
nop
lea rcx, [rbp - 0x61]
call fcn.14000a3b0
nop
mov rdx, qword [rbp - 0x69]
cmp rdx, 0x10
jb 0x140024bc0
inc rdx
mov r8d, 1
mov rcx, qword [rsp + 0x48]
call fcn.140002da0
mov rax, r14
jmp 0x140024d05
mov qword [rbp - 0x69], 7
mov qword [rbp - 0x71], r12
mov word [rsp + 0x48], r12w
lea rcx, str.StdInBuffer_too_small
call fcn.140065008
mov r8, rax
lea rdx, str.StdInBuffer_too_small
lea rcx, [rsp + 0x48]
call fcn.1400045d0
nop
mov qword [rbp - 0x49], 0xf
mov qword [rbp - 0x51], r12
mov byte [rbp - 0x61], r12b
lea rcx, str..._nsConsole.cpp
call fcn.1400653e0
mov r8, rax
lea rdx, str..._nsConsole.cpp
lea rcx, [rbp - 0x61]
call fcn.140004720
nop
lea r9, [rsp + 0x48]
mov r8d, 0x57
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.140022af8
lea rdx, [0x1400c6818]
lea rcx, [rbp - 0x39]
call fcn.14005b684
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rbp - 0x69], 7
mov qword [rbp - 0x71], r12
mov word [rsp + 0x48], r12w
cmp word [0x1400a54e0], r12w
jne 0x140024c7d
mov rax, r12
jmp 0x140024c89
lea rcx, [0x1400a54e0]
call fcn.140065008
mov r8, rax
lea rdx, [0x1400a54e0]
lea rcx, [rsp + 0x48]
call fcn.1400045d0
nop
mov qword [rbp - 0x49], 0xf
mov qword [rbp - 0x51], r12
mov byte [rbp - 0x61], r12b
lea rcx, str..._nsConsole.cpp
call fcn.1400653e0
mov r8, rax
lea rdx, str..._nsConsole.cpp
lea rcx, [rbp - 0x61]
call fcn.140004720
nop
mov ecx, ebx
call fcn.140023b78
mov edx, eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x5d
lea r8, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp - 0x39]
call fcn.14005b684
nop
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140058200
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret