Function at 0x140004219
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400bd380
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 0x1400bd3bd
call fcn.140003800
mov dword [rax], 0
call fcn.14000272a
mov dword [rax], 9
mov eax, 0xffffffff
jmp 0x1400bd6c4
cmp dword [rsp + 0x60], 0
jl 0x1400bd3da
mov eax, dword [0x140184d0c]
cmp dword [rsp + 0x60], eax
jae 0x1400bd3da
mov dword [rsp + 0x30], 1
jmp 0x1400bd3e2
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1400bd42b
lea rax, str.fh___0___unsigned_fh____unsigned__nhandle
mov qword [rsp + 0x28], rax
lea rax, [0x140140d68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x17c
lea rdx, [0x140151090]
mov ecx, 2
call fcn.1400016f9
cmp eax, 1
jne 0x1400bd42b
int3
cmp dword [rsp + 0x34], 0
jne 0x1400bd47b
call fcn.140003800
mov dword [rax], 0
call fcn.14000272a
mov dword [rax], 9
mov qword [rsp + 0x20], 0
mov r9d, 0x17c
lea r8, [0x140151090]
lea rdx, str._read
lea rcx, str.fh___0___unsigned_fh____unsigned__nhandle
call fcn.140004534
mov eax, 0xffffffff
jmp 0x1400bd6c4
mov eax, dword [rsp + 0x60]
sar eax, 6
cdqe
lea rcx, [0x140184840]
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 0x1400bd4b3
mov dword [rsp + 0x38], 1
jmp 0x1400bd4bb
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x1400bd504
lea rax, str._osfile_fh___FOPEN
mov qword [rsp + 0x28], rax
lea rax, [0x140140d68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x17d
lea rdx, [0x140151090]
mov ecx, 2
call fcn.1400016f9
cmp eax, 1
jne 0x1400bd504
int3
cmp dword [rsp + 0x3c], 0
jne 0x1400bd554
call fcn.140003800
mov dword [rax], 0
call fcn.14000272a
mov dword [rax], 9
mov qword [rsp + 0x20], 0
mov r9d, 0x17d
lea r8, [0x140151090]
lea rdx, str._read
lea rcx, str._osfile_fh___FOPEN
call fcn.140004534
mov eax, 0xffffffff
jmp 0x1400bd6c4
cmp dword [rsp + 0x70], 0x7fffffff
ja 0x1400bd568
mov dword [rsp + 0x40], 1
jmp 0x1400bd570
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400bd5b9
lea rax, str.buffer_size___INT_MAX
mov qword [rsp + 0x28], rax
lea rax, [0x140140d68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x17e
lea rdx, [0x140151090]
mov ecx, 2
call fcn.1400016f9
cmp eax, 1
jne 0x1400bd5b9
int3
cmp dword [rsp + 0x44], 0
jne 0x1400bd609
call fcn.140003800
mov dword [rax], 0
call fcn.14000272a
mov dword [rax], 0x16
mov qword [rsp + 0x20], 0
mov r9d, 0x17e
lea r8, [0x140151090]
lea rdx, str._read
lea rcx, str.buffer_size___INT_MAX
call fcn.140004534
mov eax, 0xffffffff
jmp 0x1400bd6c4
mov ecx, dword [rsp + 0x60]
call fcn.1400011fe
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x60]
sar eax, 6
cdqe
lea rcx, [0x140184840]
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 0x1400bd6a0
call fcn.14000272a
mov dword [rax], 9
call fcn.140003800
mov dword [rax], 0
xor eax, eax
test eax, eax
jne 0x1400bd69e
lea rax, str.__Invalid_file_descriptor._File_possibly_closed_by_a_different_thread__0_
mov qword [rsp + 0x28], rax
lea rax, [0x140140d68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x188
lea rdx, [0x140151090]
mov ecx, 2
call fcn.1400016f9
cmp eax, 1
jne 0x1400bd69e
int3
jmp 0x1400bd6b7
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x60]
call fcn.14000220c
mov dword [rsp + 0x48], eax
mov ecx, dword [rsp + 0x60]
call fcn.140004453
mov eax, dword [rsp + 0x48]
add rsp, 0x58
ret