Function at 0x1400b2b40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x3a8
mov dword [rsp + 0x30], 0
xor eax, eax
cmp eax, 1
je 0x1400b2b95
mov rcx, qword [rsp + 0x3b0]
call fcn.1400b3ee0
movzx eax, al
test eax, eax
je 0x1400b2b83
mov dword [rsp + 0x3c], 1
jmp 0x1400b2b8b
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x40], eax
jmp 0x1400b2b9d
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
jne 0x1400b2ba9
jmp 0x1400b2c38
lea rcx, [rsp + 0x38]
call fcn.140004910
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x20], 4
mov r9d, 0x6d
lea r8, [0x140185da0]
lea rdx, [0x140185e60]
lea rcx, [rsp + 0xa0]
call fcn.1400b5f40
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x68]
call fcn.140004910
lea rdx, str.Check_failed:__IsSocketHandle_file_
mov rcx, rax
call fcn.140003dd0
lea rdx, [0x14018583c]
mov rcx, rax
call fcn.140003dd0
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call fcn.140004830
nop
mov eax, dword [rsp + 0x30]
and eax, 1
test eax, eax
je 0x1400b2c55
and dword [rsp + 0x30], 0xfffffffe
lea rcx, [rsp + 0xa0]
call fcn.1400b60e0
lea rdx, [0x140185830]
lea rcx, [rsp + 0x3c0]
call fcn.140007690
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
xor eax, eax
cmp eax, 1
je 0x1400b2e06
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400b2ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400b2cc0
xor eax, eax
jmp 0x1400b2e06
mov rax, 0xffffffffffffffff
jmp 0x1400b2e06
mov dword [rsp + 0x4c], 0xffffffff
lea r8, str.bytes_read___static_cast_DWORD___1_
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x34]
call fcn.1400b41b0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400b2d55
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x7e
lea r8, [0x140185ed0]
lea rdx, [0x140185fb0]
lea rcx, [rsp + 0x1a0]
call fcn.1400b5fe0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.140004910
nop
lea rcx, [rsp + 0x1a0]
call fcn.1400b60e0
xor eax, eax
cmp eax, 1
je 0x1400b2de1
lea r8, str.bytes_read___read_size
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x34]
call fcn.140070bf0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400b2de1
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x7f
lea r8, [0x140186040]
lea rdx, str.__int64___cdecl_crashpad::ReadFile_void__void__unsigned___int64_
lea rcx, [rsp + 0x2a0]
call fcn.1400b5fe0
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.140004910
nop
lea rcx, [rsp + 0x2a0]
call fcn.1400b60e0
cmp dword [rsp + 0x34], 0
jne 0x1400b2dfb
mov rcx, qword [rsp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x1400b2e01
mov eax, dword [rsp + 0x34]
jmp 0x1400b2e06
jmp 0x1400b2c6f
add rsp, 0x3a8
ret