Function at 0x140001a80
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rsi
push r12
sub rsp, 0x288
mov rax, qword [0x1400161e8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [r11 - 0x18], rbx
xor r12d, r12d
mov qword [r11 - 0x28], rdi
mov rbx, rdx
mov qword [r11 - 0x30], r14
xor edx, edx
mov qword [r11 - 0x38], r15
mov r14, r8
lea esi, [r12 - 1]
mov rdi, rcx
call qword [sym.imp.hdf5.dll_Wopen_utf8]
mov r15d, eax
test eax, eax
jns 0x140001b39
mov qword [rsp + 0x40], rdi
lea rax, str.HDopen_failed_input_file___s_
mov qword [rsp + 0x38], rax
lea r8, str.copy_user_block
mov rax, qword [sym.imp.hdf5_tools.dll_H5E_tools_min_id_g]
lea rdx, str.C:cihdf5_1655187604574work_tools_srch5repackh5repack_copy.c
mov r9d, 0x554
mov rcx, qword [rax]
mov rax, qword [sym.imp.hdf5_tools.dll_H5E_tools_g]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rax]
mov rax, qword [sym.imp.hdf5_tools.dll_H5tools_ERR_CLS_g]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [sym.imp.hdf5_tools.dll_H5tools_ERR_STACK_g]
mov rcx, qword [rcx]
call qword [sym.imp.hdf5.dll_H5Epush2]
mov r12d, esi
jmp 0x140001caf
mov edx, 1
mov rcx, rbx
call qword [sym.imp.hdf5.dll_Wopen_utf8]
mov esi, eax
test eax, eax
jns 0x140001bba
mov qword [rsp + 0x40], rbx
lea rax, str.HDopen_failed_output_file___s_
mov qword [rsp + 0x38], rax
lea r8, str.copy_user_block
mov rax, qword [sym.imp.hdf5_tools.dll_H5E_tools_min_id_g]
lea rdx, str.C:cihdf5_1655187604574work_tools_srch5repackh5repack_copy.c
mov r9d, 0x556
mov rcx, qword [rax]
mov rax, qword [sym.imp.hdf5_tools.dll_H5E_tools_g]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rax]
mov rax, qword [sym.imp.hdf5_tools.dll_H5tools_ERR_CLS_g]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [sym.imp.hdf5_tools.dll_H5tools_ERR_STACK_g]
mov rcx, qword [rcx]
call qword [sym.imp.hdf5.dll_H5Epush2]
mov r12d, 0xffffffff
jmp 0x140001caf
test r14, r14
je 0x140001caf
mov qword [rsp + 0x278], rbp
nop dword [rax + rax]
lea rdx, [rsp + 0x50]
mov ecx, r15d
mov r8d, 0x200
cmp r14, 0x200
ja 0x140001bea
mov r8d, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rbp, eax
test rbp, rbp
js 0x140001c44
mov rbx, rbp
lea rdi, [rsp + 0x50]
jle 0x140001c3d
mov r8d, ebx
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
cdqe
cmp rax, 0xffffffffffffffff
jne 0x140001c32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140001c02
lea rax, str.HDwrite_failed
mov r9d, 0x571
jmp 0x140001c51
sub rbx, rax
add rdi, rax
test rbx, rbx
jg 0x140001c02
sub r14, rbp
jne 0x140001bd0
jmp 0x140001ca7
lea rax, str.HDread_failed_to_read_userblock
mov r9d, 0x564
mov qword [rsp + 0x38], rax
lea r8, str.copy_user_block
mov rax, qword [sym.imp.hdf5_tools.dll_H5E_tools_min_id_g]
lea rdx, str.C:cihdf5_1655187604574work_tools_srch5repackh5repack_copy.c
mov rcx, qword [rax]
mov rax, qword [sym.imp.hdf5_tools.dll_H5E_tools_g]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rax]
mov rax, qword [sym.imp.hdf5_tools.dll_H5tools_ERR_CLS_g]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [sym.imp.hdf5_tools.dll_H5tools_ERR_STACK_g]
mov rcx, qword [rcx]
call qword [sym.imp.hdf5.dll_H5Epush2]
mov r12d, 0xffffffff
mov rbp, qword [rsp + 0x278]
mov r14, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x280]
test r15d, r15d
js 0x140001cd5
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov r15, qword [rsp + 0x260]
test esi, esi
js 0x140001ce9
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov eax, r12d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000db90
add rsp, 0x288
pop r12
pop rsi
ret