Function at 0x140005310
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov r10d, dword [r9 + 4]
xor sil, sil
add r10d, edx
mov r13d, edx
xor r14d, r14d
mov byte [rsp + 0x88], sil
mov rdi, r9
mov rbp, r8
mov r12, rcx
cmp r10d, dword [r9]
jb 0x14000535f
mov edx, r13d
mov rcx, r9
call fcn.140004ce0
test eax, eax
jns 0x14000535f
lea eax, [r14 - 1]
jmp 0x140005640
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x90], r15
cmp dword [rdi + 4], r14d
jbe 0x1400055cd
xor r15d, r15d
test r13d, r13d
je 0x14000562a
mov r10d, dword [rdi + 4]
xor ebx, ebx
test r10d, r10d
je 0x1400053dd
mov r11, qword [rdi + 8]
mov esi, r15d
shl rsi, 8
add rsi, r12
nop
mov r9d, ebx
mov rax, rsi
imul r8, r9, 0x458
add r8, r11
sub r8, rsi
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400053c6
inc rax
test ecx, ecx
jne 0x1400053b3
test edx, edx
je 0x140005470
inc ebx
cmp ebx, r10d
jb 0x1400053a0
movzx esi, byte [rsp + 0x88]
test sil, sil
jne 0x14000549e
mov rdx, qword [rdi + 8]
lea eax, [r10 + r14]
imul r10, rax, 0x458
mov ecx, r15d
inc r14d
shl rcx, 8
add rcx, r12
add rdx, r10
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140005410
mov rcx, qword [rdi + 8]
mov eax, dword [rbp + 0x344]
mov dword [rcx + r10 + 0x344], eax
cmp dword [rbp + 0x344], 2
jne 0x14000550d
mov edx, dword [rbp + 0x448]
mov rcx, qword [rdi + 8]
cmp edx, 0xfffffffe
jne 0x14000551e
mov dword [rcx + r10 + 0x344], 1
mov rax, qword [rdi + 8]
mov dword [rax + r10 + 0x448], edx
jmp 0x14000550d
imul rax, r9, 0x458
cmp dword [rax + r11 + 0x448], 0
jg 0x14000555f
mov r8, rbp
mov edx, ebx
mov rcx, rdi
call fcn.140004f20
mov sil, 1
mov byte [rsp + 0x88], sil
mov r10, qword [rdi + 8]
mov eax, ebx
imul r9, rax, 0x458
mov r8d, r15d
shl r8, 8
add r9, r10
add r8, r12
sub r9, r8
mov rax, r8
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1400054d3
inc rax
test ecx, ecx
jne 0x1400054c0
test edx, edx
je 0x14000550d
mov edx, dword [rdi + 4]
add edx, r14d
inc r14d
mov eax, edx
imul rcx, rax, 0x458
add rcx, r10
nop dword [rax]
movzx eax, byte [r8]
lea r8, [r8 + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400054f0
mov r8, rbp
mov rcx, rdi
call fcn.140004f20
inc r15d
cmp r15d, r13d
jb 0x140005385
jmp 0x14000562a
xor r8d, r8d
mov dword [rcx + r10 + 0x448], edx
cmp dword [rbp + 0x448], r8d
jle 0x14000550d
mov r9, rbp
lea rdx, [r10 + 0x348]
sub r9, r10
nop
mov rax, qword [rdx + r9]
lea rdx, [rdx + 8]
mov rcx, qword [rdi + 8]
inc r8d
mov qword [rdx + rcx - 8], rax
cmp r8d, dword [rbp + 0x448]
jl 0x140005540
jmp 0x14000550d
mov rcx, qword [sym.imp.hdf5_tools.dll_H5tools_ERR_STACK_g]
lea rax, str.chunk_information_already_inserted_for___s__n
mov qword [rsp + 0x40], rsi
lea r8, str.options_add_layout
mov qword [rsp + 0x38], rax
mov r9d, 0xc1
mov rax, qword [sym.imp.hdf5_tools.dll_H5E_tools_min_id_g]
mov rcx, qword [rcx]
mov rdx, qword [rax]
mov rax, qword [sym.imp.hdf5_tools.dll_H5E_tools_g]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rax]
mov rax, qword [sym.imp.hdf5_tools.dll_H5tools_ERR_CLS_g]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rax]
mov qword [rsp + 0x20], rdx
lea rdx, str.C:cihdf5_1655187604574work_tools_srch5repackh5repack_opttable.c
call qword [sym.imp.hdf5.dll_H5Epush2]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test r13d, r13d
je 0x14000562a
mov rbx, r13
nop word [rax + rax]
mov edx, dword [rdi + 4]
mov r8, r12
add edx, r14d
inc r14d
mov eax, edx
imul rcx, rax, 0x458
add rcx, qword [rdi + 8]
nop dword [rax]
movzx eax, byte [r8]
lea r8, [r8 + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140005600
mov r8, rbp
mov rcx, rdi
call fcn.140004f20
add r12, 0x100
sub rbx, 1
jne 0x1400055e0
add dword [rdi + 4], r14d
mov rbx, qword [rsp + 0x80]
xor eax, eax
mov r15, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret