Function at 0x140024c90
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 [0x1400ca118]
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 0x140024ef0
mov ebx, dword [rsp + 0x30]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x28]
cmp rbx, rax
jae 0x140024e64
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 0x140024d6a
mov eax, r12d
jmp 0x140024d72
mov rcx, rbx
call fcn.1400657f0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140004720
nop
lea rdx, [rsp + 0x48]
cmp byte [rsi + 0x20], r12b
je 0x140024db2
xor r8d, r8d
lea rcx, [rbp - 0x61]
call fcn.14000c484
nop
mov rdx, rax
mov rcx, r14
call fcn.14000a95c
nop
lea rcx, [rbp - 0x61]
call fcn.14000a3b0
jmp 0x140024dba
mov rcx, r14
call fcn.14000a978
lea rdx, [0x1400a6650]
lea rcx, [rbp - 0x61]
call fcn.140009b04
nop
lea r8, [rbp - 0x61]
lea rdx, [0x1400cddf8]
mov rcx, r14
call fcn.14000dbdc
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.14000adb8
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 0x140024e5c
inc rdx
mov r8d, 1
mov rcx, qword [rsp + 0x48]
call fcn.140002da0
mov rax, r14
jmp 0x140024fa1
mov qword [rbp - 0x69], 7
mov qword [rbp - 0x71], r12
mov word [rsp + 0x48], r12w
lea rcx, str.StdInBuffer_too_small
call fcn.140065418
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.1400657f0
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.140022d7c
lea rdx, [0x1400c7ac0]
lea rcx, [rbp - 0x39]
call fcn.14005ba94
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 [0x1400a6650], r12w
jne 0x140024f19
mov rax, r12
jmp 0x140024f25
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
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.1400657f0
mov r8, rax
lea rdx, str..._nsConsole.cpp
lea rcx, [rbp - 0x61]
call fcn.140004720
nop
mov ecx, ebx
call fcn.140023e14
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.1400230c8
lea rdx, [0x1400c7a90]
lea rcx, [rbp - 0x39]
call fcn.14005ba94
nop
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140058630
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