Function at 0x1400055fb
Capabilities:
Read file on windows

Disassembly:
jmp 0x14016c0c0
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 0x14016c0fd
call fcn.14000478c
mov dword [rax], 0
call fcn.140002f45
mov dword [rax], 9
mov eax, 0xffffffff
jmp 0x14016c404
cmp dword [rsp + 0x60], 0
jl 0x14016c11a
mov eax, dword [0x140201abc]
cmp dword [rsp + 0x60], eax
jae 0x14016c11a
mov dword [rsp + 0x30], 1
jmp 0x14016c122
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14016c16b
lea rax, str.fh___0___unsigned_fh____unsigned__nhandle
mov qword [rsp + 0x28], rax
lea rax, [0x1401b3950]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x17c
lea rdx, [0x1401d6090]
mov ecx, 2
call fcn.140001a2d
cmp eax, 1
jne 0x14016c16b
int3
cmp dword [rsp + 0x34], 0
jne 0x14016c1bb
call fcn.14000478c
mov dword [rax], 0
call fcn.140002f45
mov dword [rax], 9
mov qword [rsp + 0x20], 0
mov r9d, 0x17c
lea r8, [0x1401d6090]
lea rdx, str._read
lea rcx, str.fh___0___unsigned_fh____unsigned__nhandle
call fcn.140005a0b
mov eax, 0xffffffff
jmp 0x14016c404
mov eax, dword [rsp + 0x60]
sar eax, 6
cdqe
lea rcx, [0x1402015f0]
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 0x14016c1f3
mov dword [rsp + 0x38], 1
jmp 0x14016c1fb
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14016c244
lea rax, str._osfile_fh___FOPEN
mov qword [rsp + 0x28], rax
lea rax, [0x1401b3950]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x17d
lea rdx, [0x1401d6090]
mov ecx, 2
call fcn.140001a2d
cmp eax, 1
jne 0x14016c244
int3
cmp dword [rsp + 0x3c], 0
jne 0x14016c294
call fcn.14000478c
mov dword [rax], 0
call fcn.140002f45
mov dword [rax], 9
mov qword [rsp + 0x20], 0
mov r9d, 0x17d
lea r8, [0x1401d6090]
lea rdx, str._read
lea rcx, str._osfile_fh___FOPEN
call fcn.140005a0b
mov eax, 0xffffffff
jmp 0x14016c404
cmp dword [rsp + 0x70], 0x7fffffff
ja 0x14016c2a8
mov dword [rsp + 0x40], 1
jmp 0x14016c2b0
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14016c2f9
lea rax, str.buffer_size___INT_MAX
mov qword [rsp + 0x28], rax
lea rax, [0x1401b3950]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x17e
lea rdx, [0x1401d6090]
mov ecx, 2
call fcn.140001a2d
cmp eax, 1
jne 0x14016c2f9
int3
cmp dword [rsp + 0x44], 0
jne 0x14016c349
call fcn.14000478c
mov dword [rax], 0
call fcn.140002f45
mov dword [rax], socket
mov qword [rsp + 0x20], 0
mov r9d, 0x17e
lea r8, [0x1401d6090]
lea rdx, str._read
lea rcx, str.buffer_size___INT_MAX
call fcn.140005a0b
mov eax, 0xffffffff
jmp 0x14016c404
mov ecx, dword [rsp + 0x60]
call fcn.14000128f
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x60]
sar eax, 6
cdqe
lea rcx, [0x1402015f0]
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 0x14016c3e0
call fcn.140002f45
mov dword [rax], 9
call fcn.14000478c
mov dword [rax], 0
xor eax, eax
test eax, eax
jne 0x14016c3de
lea rax, str.__Invalid_file_descriptor._File_possibly_closed_by_a_different_thread__0_
mov qword [rsp + 0x28], rax
lea rax, [0x1401b3950]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x188
lea rdx, [0x1401d6090]
mov ecx, 2
call fcn.140001a2d
cmp eax, 1
jne 0x14016c3de
int3
jmp 0x14016c3f7
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x60]
call fcn.14000287e
mov dword [rsp + 0x48], eax
mov ecx, dword [rsp + 0x60]
call fcn.140005907
mov eax, dword [rsp + 0x48]
add rsp, 0x58
ret