Function at 0x1401944e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push r12
push r15
sub rsp, 0x58
xor ebp, ebp
mov r12, r9
mov esi, ebp
mov qword [rsp + 0x40], rbp
cmp byte [0x140211581], sil
mov r10, r8
mov r11, rdx
mov r15, rcx
jne 0x140194523
cmp byte [0x140211255], sil
je 0x140194523
mov eax, ebp
add rsp, 0x58
pop r15
pop r12
pop rsi
pop rbp
ret
mov r9, qword [rcx + 0x10]
mov r8, rbp
mov qword [rsp + 0x90], rdi
mov rdi, rbp
test r9, r9
je 0x14019456b
mov rax, qword [rcx + 0x18]
add rax, 0x18
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x140194565
lea rdx, [rcx + r8]
cmp r10, rdx
jb 0x140194565
inc rdi
add rax, 0x20
mov r8, rdx
cmp rdi, r9
jb 0x140194542
jmp 0x14019456b
mov rsi, r10
sub rsi, r8
test r12, r12
je 0x1401947f1
mov qword [rsp + 0x80], rbx
movabs r8, 0x8000000000000000
mov qword [rsp + 0x98], r13
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x50], r14
mov r14, rdi
shl r14, 5
cmp rdi, qword [r15 + 0x10]
jae 0x140194757
mov rdx, qword [r15 + 0x18]
mov rcx, qword [rdx + r14 + 0x10]
add rcx, rsi
cmp rcx, r8
jae 0x140194748
mov rcx, qword [r11 + 0x30]
lea r8, [rsp + 0x40]
mov rdx, qword [rdx + r14 + 8]
mov rcx, qword [rcx + 0x1228]
call fcn.140012b40
test eax, eax
js 0x14019472d
mov rcx, qword [rsp + 0x40]
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov ebx, eax
test eax, eax
js 0x1401946dd
mov rcx, qword [r15 + 0x18]
xor r8d, r8d
mov rdx, qword [rcx + r14 + 0x10]
mov ecx, eax
add rdx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseeki64]
test rax, rax
js 0x1401946c2
mov rcx, qword [r15 + 0x18]
mov rdx, r13
mov rax, qword [rcx + r14 + 0x18]
mov ecx, ebx
sub rax, rsi
mov rsi, r12
cmp rax, r12
cmovb rsi, rax
mov r8d, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rcx, eax
test eax, eax
js 0x1401946a7
cmp rcx, rsi
jae 0x14019465d
mov r8, rsi
xor edx, edx
sub r8, rcx
add rcx, r13
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x40]
call fcn.140060c20
mov ecx, ebx
mov qword [rsp + 0x40], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov r11, qword [rsp + 0x88]
sub r12, rsi
add r13, rsi
or ebx, 0xffffffff
inc rdi
add r14, 0x20
mov rsi, rbp
movabs r8, 0x8000000000000000
test r12, r12
jne 0x1401945a2
jmp 0x1401947a7
lea rax, str.read_error_in_external_raw_data_file
mov r9d, 0x12f
mov qword [rsp + 0x38], rax
mov rax, qword [0x14020e208]
jmp 0x1401946f6
lea rax, str.unable_to_seek_in_external_raw_data_file
mov r9d, 0x126
mov qword [rsp + 0x38], rax
mov rax, qword [0x14020e200]
jmp 0x1401946f6
lea rax, str.unable_to_open_external_raw_data_file
mov r9d, 0x124
mov qword [rsp + 0x38], rax
mov rax, qword [0x14020e248]
mov qword [rsp + 0x30], rax
lea r8, str.H5D__efl_read
mov rax, qword [0x14020e1a0]
lea rdx, str.C:_srcosgeo4whdf5_srcH5Defl.c
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [0x14020e0d8]
mov qword [rsp + 0x20], rax
call fcn.140060100
or ebp, 0xffffffff
jmp 0x1401947a7
lea rax, str.cant_build_external_file_name
mov r9d, 0x122
mov qword [rsp + 0x38], rax
mov rax, qword [0x14020e3f8]
jmp 0x140194770
lea rax, str.external_file_address_overflowed
mov r9d, 0x120
jmp 0x140194764
lea rax, str.read_past_logical_end_of_file
mov r9d, 0x11e
mov qword [rsp + 0x38], rax
mov rax, qword [0x14020e220]
mov qword [rsp + 0x30], rax
lea r8, str.H5D__efl_read
mov rax, qword [0x14020e1a0]
lea rdx, str.C:_srcosgeo4whdf5_srcH5Defl.c
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [0x14020e0d8]
mov qword [rsp + 0x20], rax
call fcn.140060100
or ebp, 0xffffffff
or ebx, ebp
mov rcx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov r13, qword [rsp + 0x98]
test rcx, rcx
je 0x1401947c8
call fcn.140060c20
mov qword [rsp + 0x40], rax
test ebx, ebx
js 0x1401947d4
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov rbx, qword [rsp + 0x80]
mov eax, ebp
mov rdi, qword [rsp + 0x90]
add rsp, 0x58
pop r15
pop r12
pop rsi
pop rbp
ret
mov eax, ebp
jmp 0x1401947de