Function at 0x1400039f0
Capabilities:
Read file on windows

Disassembly:
push r15
mov eax, 0x1068
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14018d730
sub rsp, rax
mov rdi, qword [0x14041fc80]
movabs r13, 0x7fffffffffffffff
mov rax, qword [rdi]
mov qword [rsp + 0x1058], rax
xor eax, eax
lea r12, [rsp + 0x40]
mov byte [rsp + 0x40], 0
mov r14, rcx
mov qword [rsp + 0x30], r12
lea r15, [rsp + 0x30]
lea rbp, [rsp + 0x50]
mov rdi, qword [fcn.140197860]
mov qword [rsp + 0x38], 0
nop dword [rax + rax]
xor ecx, ecx
call rdi
mov rcx, rax
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140003ac2
xor ecx, ecx
call rdi
mov r9, rax
mov r8d, 0x1000
mov edx, 1
mov rcx, rbp
call sub.msvcrt.dll_fread
mov rdx, qword [rsp + 0x38]
mov rbx, rax
mov rax, r13
sub rax, rdx
cmp rax, rbx
jb 0x140003c74
mov rcx, qword [rsp + 0x30]
lea rsi, [rbx + rdx]
cmp rcx, r12
je 0x140003b70
mov rax, qword [rsp + 0x40]
cmp rax, rsi
jb 0x140003b58
test rbx, rbx
jne 0x140003b20
mov byte [rcx + rsi], 0
xor ecx, ecx
call rdi
mov rcx, rax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140003cc1
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
test rsi, rsi
je 0x140003b12
xor ebx, ebx
lea rbp, [0x1402b451a]
movsx edx, byte [rdi + rbx]
mov r8d, 6
mov rcx, rbp
call sub.msvcrt.dll_memchr
test rax, rax
je 0x140003ba0
add rbx, 1
cmp rsi, rbx
jne 0x140003aee
lea rax, [r14 + 0x10]
xor esi, esi
mov qword [r14], rax
jmp 0x140003c19
add rcx, rdx
cmp rbx, 1
je 0x140003b80
mov r8, rbx
mov rdx, rbp
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
mov byte [rax + rsi], 0
cmp rbx, 0xfff
ja 0x140003a58
jmp 0x140003ac2
mov qword [rsp + 0x20], rbx
mov r9, rbp
xor r8d, r8d
mov rcx, r15
call fcn.140274950
jmp 0x140003b34
mov eax, 0xf
jmp 0x140003ab0
movzx eax, byte [rsp + 0x50]
mov byte [rcx], al
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
mov byte [rax + rsi], 0
jmp 0x140003ac2
lea r12, [rsi - 1]
movsx edx, byte [rdi + r12]
mov r8d, 6
mov rcx, rbp
call sub.msvcrt.dll_memchr
test rax, rax
je 0x140003bc2
sub r12, 1
jae 0x140003ba4
sub r12, rbx
lea rax, [r12 + 1]
cmp rsi, rbx
jb 0x140003c91
sub rsi, rbx
lea rcx, [r14 + 0x10]
cmp rsi, rax
mov qword [r14], rcx
cmova rsi, rax
add rdi, rbx
cmp rsi, 0xf
jbe 0x140003c57
test rsi, rsi
js 0x140003c85
mov rcx, rsi
add rcx, 1
js 0x140003c6f
call fcn.1402aa8b0
mov qword [r14], rax
mov rcx, rax
mov qword [r14 + 0x10], rsi
mov r8, rsi
mov rdx, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [r14]
mov qword [r14 + 8], rsi
mov rcx, r15
mov byte [rax + rsi], 0
call fcn.140271720
mov rdi, qword [0x14041fc80]
mov rax, qword [rsp + 0x1058]
sub rax, qword [rdi]
jne 0x140003c80
mov rax, r14
add rsp, 0x1068
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp rsi, 1
jne 0x140003c66
movzx eax, byte [rdi]
mov byte [r14 + 0x10], al
jmp 0x140003c19
test rsi, rsi
jne 0x140003c0e
xor esi, esi
jmp 0x140003c19
call fcn.1402af390
lea rcx, [0x1402b44f1]
call fcn.1402af580
call fcn.14018c640
lea rcx, [0x1402b404a]
call fcn.1402af580
mov r9, rsi
mov r8, rbx
lea rdx, [0x1402b4521]
lea rcx, [0x1402b4540]
call fcn.14029b910
endbr64
mov rbx, rax
mov rcx, r15
call fcn.140271720
mov rcx, rbx
call fcn.14018db80
mov ecx, 0x10
call fcn.1402aaa10
lea rdx, str.error_reading_stdin
mov rcx, rax
mov rsi, rax
call fcn.140255890
lea r8, [fcn.140255a50]
lea rdx, [0x140422a20]
mov rcx, rsi
call fcn.1402ab090
endbr64
mov rcx, rsi
mov rbx, rax
call fcn.1402aad30
jmp 0x140003cb1