Function at 0x140005461
Capabilities:
Read file on windows

Disassembly:
jmp 0x14015c160
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
movsxd rax, dword [rsp + 0x60]
cmp rax, 0xfffffffffffffffe
jne 0x14015c19d
call fcn.1400045fc
mov dword [rax], 0
call fcn.140002e73
mov dword [rax], 9
mov eax, 0xffffffff
jmp 0x14015c4a4
cmp dword [rsp + 0x60], 0
jl 0x14015c1ba
mov eax, dword [0x1401fb1cc]
cmp dword [rsp + 0x60], eax
jae 0x14015c1ba
mov dword [rsp + 0x30], 1
jmp 0x14015c1c2
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14015c20b
lea rax, str.fh___0___unsigned_fh____unsigned__nhandle
mov qword [rsp + 0x28], rax
lea rax, [0x1401aebe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x17c
lea rdx, [0x1401cfdc0]
mov ecx, 2
call fcn.1400019c9
cmp eax, 1
jne 0x14015c20b
int3
cmp dword [rsp + 0x34], 0
jne 0x14015c25b
call fcn.1400045fc
mov dword [rax], 0
call fcn.140002e73
mov dword [rax], 9
mov qword [rsp + 0x20], 0
mov r9d, 0x17c
lea r8, [0x1401cfdc0]
lea rdx, str._read
lea rcx, str.fh___0___unsigned_fh____unsigned__nhandle
call fcn.140005858
mov eax, 0xffffffff
jmp 0x14015c4a4
mov eax, dword [rsp + 0x60]
sar eax, 6
cdqe
lea rcx, [0x1401fad00]
mov edx, dword [rsp + 0x60]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
and eax, 1
test eax, eax
je 0x14015c293
mov dword [rsp + 0x38], 1
jmp 0x14015c29b
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14015c2e4
lea rax, str._osfile_fh___FOPEN
mov qword [rsp + 0x28], rax
lea rax, [0x1401aebe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x17d
lea rdx, [0x1401cfdc0]
mov ecx, 2
call fcn.1400019c9
cmp eax, 1
jne 0x14015c2e4
int3
cmp dword [rsp + 0x3c], 0
jne 0x14015c334
call fcn.1400045fc
mov dword [rax], 0
call fcn.140002e73
mov dword [rax], 9
mov qword [rsp + 0x20], 0
mov r9d, 0x17d
lea r8, [0x1401cfdc0]
lea rdx, str._read
lea rcx, str._osfile_fh___FOPEN
call fcn.140005858
mov eax, 0xffffffff
jmp 0x14015c4a4
cmp dword [rsp + 0x70], 0x7fffffff
ja 0x14015c348
mov dword [rsp + 0x40], 1
jmp 0x14015c350
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14015c399
lea rax, str.buffer_size___INT_MAX
mov qword [rsp + 0x28], rax
lea rax, [0x1401aebe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x17e
lea rdx, [0x1401cfdc0]
mov ecx, 2
call fcn.1400019c9
cmp eax, 1
jne 0x14015c399
int3
cmp dword [rsp + 0x44], 0
jne 0x14015c3e9
call fcn.1400045fc
mov dword [rax], 0
call fcn.140002e73
mov dword [rax], 0x16
mov qword [rsp + 0x20], 0
mov r9d, 0x17e
lea r8, [0x1401cfdc0]
lea rdx, str._read
lea rcx, str.buffer_size___INT_MAX
call fcn.140005858
mov eax, 0xffffffff
jmp 0x14015c4a4
mov ecx, dword [rsp + 0x60]
call fcn.140001276
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x60]
sar eax, 6
cdqe
lea rcx, [0x1401fad00]
mov edx, dword [rsp + 0x60]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
and eax, 1
test eax, eax
jne 0x14015c480
call fcn.140002e73
mov dword [rax], 9
call fcn.1400045fc
mov dword [rax], 0
xor eax, eax
test eax, eax
jne 0x14015c47e
lea rax, str.__Invalid_file_descriptor._File_possibly_closed_by_a_different_thread__0_
mov qword [rsp + 0x28], rax
lea rax, [0x1401aebe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x188
lea rdx, [0x1401cfdc0]
mov ecx, 2
call fcn.1400019c9
cmp eax, 1
jne 0x14015c47e
int3
jmp 0x14015c497
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x60]
call fcn.1400027c5
mov dword [rsp + 0x48], eax
mov ecx, dword [rsp + 0x60]
call fcn.140005759
mov eax, dword [rsp + 0x48]
add rsp, 0x58
ret