Function at 0x140061b10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x14011e7d8]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor esi, esi
mov qword [rbp - 0x31], rdx
mov r15, rcx
mov dword [rsp + 0x28], esi
mov r8, rcx
mov qword [rsp + 0x20], rsi
xor edx, edx
lea rbx, [0x1400f87a8]
lea r9d, [rsi - 1]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r14, eax
test eax, eax
je 0x140061ba2
mov rcx, r14
add rcx, rcx
call fcn.14005b120
lea r9d, [rsi - 1]
mov dword [rsp + 0x28], r14d
mov r8, r15
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140061bb5
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
xor eax, eax
jmp 0x140062af1
test rdi, rdi
je 0x140062d98
mov ecx, 6
call fcn.14005b120
mov r14, rax
mov rdx, rax
nop
movsx ecx, byte [rbx]
lea rbx, [rbx + 1]
mov word [rdx], cx
lea rdx, [rdx + 2]
movzx ecx, byte [rbx - 1]
test cl, cl
jne 0x140061bd0
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov rcx, rdi
mov qword [rbp - 0x41], rax
mov r13, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r13, r13
je 0x140062d98
mov edx, 1
lea rcx, [rbp - 0x4d]
mov r9, r13
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8d, esi
mov rdx, rsi
mov rbx, rax
lea rax, [0x140000000]
nop word [rax + rax]
movzx ecx, byte [rdx + rax + 0xf890c]
cmp byte [rbp + rdx - 0x4d], cl
jne 0x140062d4e
inc r8d
inc rdx
cmp r8d, 4
jb 0x140061c40
mov edx, 0x48
lea ecx, [rdx - 0x47]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
jne 0x140061cde
vmovsd xmm2, qword [0x1400f8d18]
vmovq r8, xmm2
lea rdx, str.ggml_calloc
lea rcx, str._s:_failed_to_allocate__6.2f_MB_n
call fcn.140034840
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea ecx, [rdi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x10d
lea r8, str.F:prog_llmllama.cppggml.c
mov rcx, rax
lea rdx, str.GGML_ASSERT:__s:_d:__s_n
lea rax, str.false
mov qword [rsp + 0x20], rax
call fcn.140032e30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov r8d, 4
lea rdx, [rbp - 0x4d]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov edx, 1
mov qword [rdi + 0x18], rsi
mov r9, r13
mov qword [rdi + 0x20], rsi
lea rcx, [rdi + 4]
mov qword [rdi + 0x40], rsi
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea r14, [rax + rbx]
mov qword [rbp - 0x59], r14
cmp rax, 4
jne 0x140061d6b
lea rcx, [rdi + 8]
mov r9, r13
lea edx, [rax - 3]
lea r8d, [rax + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea rbx, [rax + r14]
mov qword [rbp - 0x59], rbx
mov r14, rbx
cmp rax, 8
jne 0x140061d6b
lea rcx, [rdi + 0x10]
mov r9, r13
lea edx, [rax - 7]
mov r8, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea r14, [rax + rbx]
mov qword [rbp - 0x59], r14
cmp rax, 8
jne 0x140061d6b
mov al, 1
jmp 0x140061d6d
xor al, al
cmp dword [rdi + 4], 1
mov qword [rsp + 0x110], r12
jne 0x140061e2d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.gguf_init_from_file
lea rdx, str._s:_GGUFv1_is_no_longer_supported._please_use_a_more_up_to_date_version_n
call fcn.140032e30
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140061de3
mov r14, rsi
cmp qword [rdi + 0x10], rsi
jbe 0x140061ddd
mov rbx, rsi
nop
mov rcx, qword [rdi + 0x18]
add rcx, rbx
call fcn.140060fb0
inc r14
add rbx, 0x30
cmp r14, qword [rdi + 0x10]
jb 0x140061dc0
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140062d3e
cmp qword [rdi + 8], rsi
jbe 0x140062d38
mov rbx, rsi
nop dword [rax]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + rbx + 8]
test rax, rax
je 0x140061e1b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
inc rsi
add rbx, 0x58
cmp rsi, qword [rdi + 8]
jb 0x140061e00
jmp 0x140062d38
test al, al
je 0x140062c8d
movabs rax, 0x51eb851eb851ea
cmp qword [rdi + 8], rax
ja 0x140062c8d
mov rbx, qword [rdi + 0x10]
movabs rax, 0x2aaaaaaaaaaaaaa
mov qword [rbp - 0x11], rbx
cmp rbx, rax
jae 0x140062c8d
mov edx, 0x30
mov qword [rdi + 0x10], rsi
mov rcx, rbx
call fcn.140034fc0
mov qword [rdi + 0x18], rax
mov qword [rbp - 0x39], rsi
test rbx, rbx
je 0x140062163
mov r12, rsi
mov qword [rbp - 0x49], rsi
nop dword [rax]
mov r15, qword [rdi + 0x18]
lea r8, [rbp - 0x59]
add r15, r12
mov rcx, r13
mov rdx, r15
call fcn.140060ce0
test al, al
je 0x140061ed5
mov edx, 1
lea rcx, [r15 + 0x10]
mov r9, r13
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r14, qword [rbp - 0x59]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 4
jne 0x140061ed9
mov dl, 1
jmp 0x140061edb
mov r14, qword [rbp - 0x59]
xor dl, dl
movsxd rax, dword [r15 + 0x10]
cmp eax, 0xc
ja case.default.0x140061efa
lea r8, [0x140000000]
mov ecx, dword [r8 + rax*4 + 0x62da0]
add rcx, r8
jmp rcx
test dl, dl
je 0x140061f2a
mov edx, 1
lea rcx, [r15 + 0x18]
mov r8d, edx
mov r9, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 1
jne 0x140061f2a
movzx ebx, al
jmp 0x14006213a
xor bl, bl
jmp 0x14006213a
test dl, dl
je 0x140061f2a
mov edx, 1
lea rcx, [r15 + 0x18]
mov r9, r13
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 2
jne 0x140061f2a
mov bl, 1
jmp 0x14006213a
test dl, dl
je 0x140061f2a
mov edx, 1
lea rcx, [r15 + 0x18]
mov r9, r13
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 4
jne 0x140061f2a
mov bl, 1
jmp 0x14006213a
test dl, dl
je 0x140061f2a
mov edx, 1
lea rcx, [r15 + 0x18]
mov r9, r13
lea r8d, [rdx + 7]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 8
jne 0x140061f2a
mov bl, 1
jmp 0x14006213a
test dl, dl
je 0x140061f2a
lea rdx, [r15 + 0x18]
mov rcx, r13
lea r8, [rbp - 0x59]
call fcn.140060ce0
mov r14, qword [rbp - 0x59]
test al, al
je 0x140061f2a
mov bl, 1
jmp 0x14006213a
test dl, dl
je 0x140062036
mov edx, 1
lea rcx, [r15 + 0x18]
mov r9, r13
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 4
jne 0x140062036
lea rcx, [r15 + 0x20]
mov r9, r13
lea edx, [rax - 3]
lea r8d, [rax + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 8
jne 0x140062036
mov bl, 1
jmp 0x140062038
xor bl, bl
movsxd rcx, dword [r15 + 0x18]
cmp ecx, 0xc
ja case.0x140062057.9
lea r8, [0x140000000]
mov edx, dword [r8 + rcx*4 + 0x62dd4]
add rdx, r8
jmp rdx
call fcn.140063080
mov r12, qword [r15 + 0x20]
mov rcx, rax
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp r12, rax
jae 0x14006220c
mov ecx, dword [r15 + 0x18]
call fcn.140063080
mov rdx, rax
mov rcx, r12
call fcn.140034fc0
mov qword [r15 + 0x28], rax
test bl, bl
je 0x1400620cc
mov ecx, dword [r15 + 0x18]
call fcn.140063080
mov rcx, qword [r15 + 0x28]
mov rbx, rax
imul rbx, qword [r15 + 0x20]
mov r9, r13
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, rbx
jne 0x1400620cc
mov bl, 1
jmp 0x140062136
xor bl, bl
jmp 0x140062136
mov r12, qword [r15 + 0x20]
movabs rax, 0xfffffffffffffff
cmp r12, rax
jae 0x14006236d
mov edx, 0x10
mov rcx, r12
call fcn.140034fc0
mov r12, rsi
mov qword [r15 + 0x28], rax
cmp qword [r15 + 0x20], rsi
jbe 0x140062136
mov r14, rsi
test bl, bl
je 0x140062123
mov rdx, qword [r15 + 0x28]
lea r8, [rbp - 0x59]
add rdx, r14
mov rcx, r13
call fcn.140060ce0
test al, al
je 0x140062123
mov bl, 1
jmp 0x140062125
xor bl, bl
inc r12
add r14, 0x10
cmp r12, qword [r15 + 0x20]
jb 0x140062104
mov r14, qword [rbp - 0x59]
mov r12, qword [rbp - 0x49]
test bl, bl
je 0x1400622bd
mov rax, qword [rbp - 0x39]
add r12, 0x30
inc qword [rdi + 0x10]
inc rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x49], r12
cmp rax, qword [rbp - 0x11]
jb 0x140061e90
mov rcx, qword [rdi + 8]
mov edx, 0x58
call fcn.140034fc0
mov r12, rsi
mov qword [rdi + 0x20], rax
mov qword [rbp - 0x49], rsi
cmp qword [rdi + 8], rsi
jbe 0x1400625fb
mov rcx, rsi
mov qword [rbp - 0x39], rcx
nop dword [rax]
mov r15, qword [rdi + 0x20]
lea r8, [rbp - 0x59]
add r15, rcx
mov rcx, r13
mov rdx, r15
mov qword [r15 + 0x18], 1
mov qword [r15 + 0x20], 1
mov qword [r15 + 0x28], 1
mov qword [r15 + 0x30], 1
call fcn.140060ce0
test al, al
je 0x1400624b9
mov edx, 1
lea rcx, [r15 + 0x10]
mov r9, r13
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r14, qword [rbp - 0x59]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 4
jne 0x1400624bd
mov ecx, dword [r15 + 0x10]
cmp ecx, eax
ja 0x1400624c1
mov al, 1
jmp 0x1400624c3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r12
lea r8, str.gguf_init_from_file
mov rcx, rax
lea rdx, str._s:_array_size_is_too_large___llu__n
call fcn.140032e30
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140062273
mov r14, rsi
cmp qword [rdi + 0x10], rsi
jbe 0x14006226d
mov rbx, rsi
nop
mov rcx, qword [rdi + 0x18]
add rcx, rbx
call fcn.140060fb0
inc r14
add rbx, 0x30
cmp r14, qword [rdi + 0x10]
jb 0x140062250
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140062d3e
cmp qword [rdi + 8], rsi
jbe 0x140062d38
mov rbx, rsi
nop dword [rax]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + rbx + 8]
test rax, rax
je 0x1400622ab
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
inc rsi
add rbx, 0x58
cmp rsi, qword [rdi + 8]
jb 0x140062290
jmp 0x140062d38
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.gguf_init_from_file
lea rdx, str._s:_failed_to_read_key_value_pairs_n
call fcn.140032e30
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140062323
mov r14, rsi
cmp qword [rdi + 0x10], rsi
jbe 0x14006231d
mov rbx, rsi
nop dword [rax]
mov rcx, qword [rdi + 0x18]
add rcx, rbx
call fcn.140060fb0
inc r14
add rbx, 0x30
cmp r14, qword [rdi + 0x10]
jb 0x140062300
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140062d3e
cmp qword [rdi + 8], rsi
jbe 0x140062d38
mov rbx, rsi
nop dword [rax]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + rbx + 8]
test rax, rax
je 0x14006235b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
inc rsi
add rbx, 0x58
cmp rsi, qword [rdi + 8]
jb 0x140062340
jmp 0x140062d38
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r12
lea r8, str.gguf_init_from_file
mov rcx, rax
lea rdx, str._s:_array_size_is_too_large___llu__n
call fcn.140032e30
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400623d3
mov r14, rsi
cmp qword [rdi + 0x10], rsi
jbe 0x1400623cd
mov rbx, rsi
nop
mov rcx, qword [rdi + 0x18]
add rcx, rbx
call fcn.140060fb0
inc r14
add rbx, 0x30
cmp r14, qword [rdi + 0x10]
jb 0x1400623b0
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140062d3e
cmp qword [rdi + 8], rsi
jbe 0x140062d38
mov rbx, rsi
nop dword [rax]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + rbx + 8]
test rax, rax
je 0x14006240b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
inc rsi
add rbx, 0x58
cmp rsi, qword [rdi + 8]
jb 0x1400623f0
jmp 0x140062d38
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x5280
lea r8, str.F:prog_llmllama.cppggml.c
mov rcx, rax
lea rdx, str.GGML_ASSERT:__s:_d:__s_n
lea rax, str.false___invalid_type_
mov qword [rsp + 0x20], rax
call fcn.140032e30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x5283
lea r8, str.F:prog_llmllama.cppggml.c
mov rcx, rax
lea rdx, str.GGML_ASSERT:__s:_d:__s_n
lea rax, str.false___invalid_type_
mov qword [rsp + 0x20], rax
call fcn.140032e30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov r14, qword [rbp - 0x59]
mov ecx, dword [r15 + 0x10]
xor al, al
mov ebx, esi
test ecx, ecx
je 0x14006250b
nop dword [rax]
test al, al
je 0x140062501
mov edx, 1
mov eax, ebx
add rax, 3
mov r9, r13
lea r8d, [rdx + 7]
lea rcx, [r15 + rax*8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 8
jne 0x140062501
mov al, 1
jmp 0x140062503
xor al, al
inc ebx
cmp ebx, dword [r15 + 0x10]
jb 0x1400624d0
test al, al
je 0x140062557
mov edx, 1
lea rcx, [r15 + 0x38]
mov r9, r13
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 4
jne 0x140062557
lea rcx, [r15 + 0x40]
mov r9, r13
lea edx, [rax - 3]
lea r8d, [rax + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov qword [rbp - 0x59], r14
cmp rax, 8
jne 0x140062557
mov bl, 1
jmp 0x140062559
xor bl, bl
mov rcx, r15
mov byte [rbp - 0x51], bl
call fcn.140062e10
test r12, r12
je 0x1400625d6
mov rbx, rsi
mov r13, r12
nop
mov r12, qword [r15 + 8]
mov rax, qword [rdi + 0x20]
mov rcx, r12
mov r8, qword [rbx + rax + 8]
sub r8, r12
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140062596
inc rcx
test eax, eax
jne 0x140062583
test edx, edx
jne 0x1400625c0
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r12
lea r8, str.gguf_init_from_file
mov rcx, rax
lea rdx, str._s:_duplicated_tensor_name__s_n
call fcn.140032e30
mov byte [rbp - 0x51], sil
add rbx, 0x58
sub r13, 1
jne 0x140062570
movzx ebx, byte [rbp - 0x51]
mov r13, qword [rbp - 0x41]
mov r12, qword [rbp - 0x49]
test bl, bl
je 0x140062692
mov rcx, qword [rbp - 0x39]
inc r12
add rcx, 0x58
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x39], rcx
cmp r12, qword [rdi + 8]
jb 0x140062190
lea rdx, str.general.alignment
mov qword [rdi + 0x28], 0x20
mov rcx, rdi
call fcn.140060b80
cmp eax, 0xffffffff
je 0x140062745
test eax, eax
js 0x140062862
cmp eax, dword [rdi + 0x10]
jge 0x140062862
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x18]
add rcx, rcx
cmp dword [rax + rcx*8 + 0x10], 4
je 0x14006273d
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x53c8
lea r8, str.F:prog_llmllama.cppggml.c
mov rcx, rax
lea rdx, str.GGML_ASSERT:__s:_d:__s_n
lea rax, str.ctx__kv_key_id_.type__GGUF_TYPE_UINT32
mov qword [rsp + 0x20], rax
call fcn.140032e30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.gguf_init_from_file
lea rdx, str._s:_failed_to_read_tensor_info_n
call fcn.140032e30
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400626f4
mov r14, rsi
cmp qword [rdi + 0x10], rsi
jbe 0x1400626ee
mov rbx, rsi
mov rcx, qword [rdi + 0x18]
add rcx, rbx
call fcn.140060fb0
inc r14
add rbx, 0x30
cmp r14, qword [rdi + 0x10]
jb 0x1400626d1
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140062d3e
cmp qword [rdi + 8], rsi
jbe 0x140062d38
mov rbx, rsi
nop
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + rbx + 8]
test rax, rax
je 0x14006272b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
inc rsi
add rbx, 0x58
cmp rsi, qword [rdi + 8]
jb 0x140062710
jmp 0x140062d38
mov eax, dword [rax + rcx*8 + 0x18]
mov qword [rdi + 0x28], rax
mov rcx, qword [rdi + 0x28]
xor edx, edx
mov rax, r14
div rcx
test rdx, rdx
je 0x14006276b
sub rcx, rdx
xor r8d, r8d
add r14, rcx
mov rcx, r13
mov edx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r10, qword [rdi + 8]
mov r9, rsi
mov qword [rdi + 0x30], r14
mov rax, rsi
mov qword [rdi + 0x38], rsi
test r10, r10
je 0x140062805
mov r15, qword [rdi + 0x20]
lea rbx, [0x140000000]
mov r14, qword [r15 + 0x30]
imul r14, qword [r15 + 0x28]
movsxd r12, dword [r15 + 0x38]
imul r14, qword [r15 + 0x20]
lea rcx, [r12 + r12*4]
imul r14, qword [r15 + 0x18]
add rcx, rcx
mov rax, r14
cqo
movsxd r13, dword [rbx + rcx*8 + 0xf5668]
idiv r13
mov r11, r13
test rdx, rdx
jne 0x1400628b0
imul r14, qword [rbx + rcx*8 + 0xf5670]
mov r8, qword [rdi + 0x28]
inc r9
mov rax, r14
add r15, 0x58
div r11
lea rcx, [r8 - 1]
add rcx, rax
lea rax, [r8 - 1]
andn rdx, rax, rcx
mov rax, qword [rdi + 0x38]
add rax, rdx
mov qword [rdi + 0x38], rax
cmp r9, r10
jb 0x140062791
mov rcx, qword [rbp - 0x31]
mov rbx, qword [rcx + 8]
test rbx, rbx
je 0x140062adc
movzx r12d, byte [rcx]
mov byte [rbp - 0x19], r12b
vmovsd xmm1, qword [rbp - 0x19]
imul rcx, r10, 0x190
mov qword [rbp - 0x21], rsi
vmovsd qword [rbp + 7], xmm1
test r12b, r12b
je 0x14006298d
mov qword [rbp - 0x29], rcx
lea rcx, [rbp - 9]
vmovups xmm0, xmmword [rbp - 0x29]
vmovups xmmword [rbp - 9], xmm0
call fcn.14005a7f0
mov r13, rax
mov qword [rbx], rax
mov qword [rbp - 0x49], rsi
jmp 0x140062a1c
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x53c7
lea r8, str.F:prog_llmllama.cppggml.c
mov rcx, rax
lea rdx, str.GGML_ASSERT:__s:_d:__s_n
lea rax, str.key_id___0__key_id___gguf_get_n_kv_ctx_
mov qword [rsp + 0x20], rax
call fcn.140032e30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
lea rax, [r12 + r12*4]
mov ecx, 2
add rax, rax
mov rbx, qword [rbx + rax*8 + 0xf5660]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [r15 + 8]
lea r8, str.gguf_init_from_file
mov dword [rsp + 0x38], r13d
lea rdx, str._s:_tensor__s_of_type__d___s__number_of_elements___lld__is_not_a_multiple_of_block_size___d__n
mov qword [rsp + 0x30], r14
mov rcx, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r12d
call fcn.140032e30
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140062943
mov r14, rsi
cmp qword [rdi + 0x10], rsi
jbe 0x14006293d
mov rbx, rsi
nop word [rax + rax]
mov rcx, qword [rdi + 0x18]
add rcx, rbx
call fcn.140060fb0
inc r14
add rbx, 0x30
cmp r14, qword [rdi + 0x10]
jb 0x140062920
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140062d3e
cmp qword [rdi + 8], rsi
jbe 0x140062d38
mov rbx, rsi
nop dword [rax]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + rbx + 8]
test rax, rax
je 0x14006297b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
inc rsi
add rbx, 0x58
cmp rsi, qword [rdi + 8]
jb 0x140062960
jmp 0x140062d38
add rcx, 0x190
add rax, rcx
lea rcx, [rbp - 9]
mov qword [rbp - 0x29], rax
vmovups xmm0, xmmword [rbp - 0x29]
vmovups xmmword [rbp - 9], xmm0
call fcn.14005a7f0
mov r13, rax
mov qword [rbx], rax
mov rax, qword [rdi + 0x38]
lea r9, [rbp - 0x31]
mov edx, 0x18
mov qword [rsp + 0x28], rsi
mov rcx, r13
mov qword [rbp - 0x31], rax
mov qword [rsp + 0x20], rsi
lea r8d, [rdx - 0x17]
call fcn.14005bde0
mov qword [rbp - 0x49], rax
mov r14, rax
test rax, rax
je 0x140062bcd
mov rbx, qword [rdi + 0x38]
mov edx, 1
mov r9, qword [rbp - 0x41]
mov r8, rbx
mov rcx, qword [rax + 0x118]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
jne 0x140062bcd
mov rax, qword [r14 + 0x118]
mov qword [rdi + 0x40], rax
mov byte [r13 + 0x11], 1
mov r15, rsi
cmp qword [rdi + 8], rsi
jbe 0x140062ad8
mov rbx, rsi
mov rcx, qword [rdi + 0x20]
lea r9, [rbp - 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov rax, qword [rbx + rcx + 0x18]
mov r8d, dword [rbx + rcx + 0x10]
mov edx, dword [rbx + rcx + 0x38]
mov qword [rbp - 9], rax
mov rax, qword [rbx + rcx + 0x20]
mov qword [rbp - 1], rax
mov rax, qword [rbx + rcx + 0x28]
mov qword [rbp + 7], rax
mov rax, qword [rbx + rcx + 0x30]
mov rcx, r13
mov qword [rbp + 0xf], rax
call fcn.14005bde0
mov r14, rax
test rax, rax
je 0x140062b0f
mov rdx, qword [rdi + 0x20]
lea rcx, [rax + 0x120]
mov r8d, 0x3f
mov rdx, qword [rbx + rdx + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [r14 + 0x15f], sil
test r12b, r12b
jne 0x140062ac7
mov rcx, qword [rdi + 0x20]
mov rax, qword [rbp - 0x49]
mov rdx, qword [rbx + rcx + 0x40]
add rdx, qword [rax + 0x118]
mov qword [r14 + 0x118], rdx
inc r15
add rbx, 0x58
cmp r15, qword [rdi + 8]
jb 0x140062a31
mov byte [r13 + 0x11], r12b
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, rdi
mov r12, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400eafe0
add rsp, 0xc0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.gguf_init_from_file
lea rdx, str._s:_failed_to_read_the_tensor_data_n
call fcn.140032e30
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r13
call fcn.140058ab0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140062b83
mov r14, rsi
cmp qword [rdi + 0x10], rsi
jbe 0x140062b7d
mov rbx, rsi
nop word [rax + rax]
mov rcx, qword [rdi + 0x18]
add rcx, rbx
call fcn.140060fb0
inc r14
add rbx, 0x30
cmp r14, qword [rdi + 0x10]
jb 0x140062b60
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140062d3e
cmp qword [rdi + 8], rsi
jbe 0x140062d38
mov rbx, rsi
nop dword [rax]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + rbx + 8]
test rax, rax
je 0x140062bbb
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
inc rsi
add rbx, 0x58
cmp rsi, qword [rdi + 8]
jb 0x140062ba0
jmp 0x140062d38
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.gguf_init_from_file
lea rdx, str._s:_failed_to_read_tensor_data_n
call fcn.140032e30
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r13
call fcn.140058ab0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140062c43
mov r14, rsi
cmp qword [rdi + 0x10], rsi
jbe 0x140062c3d
mov rbx, rsi
nop word [rax + rax]
mov rcx, qword [rdi + 0x18]
add rcx, rbx
call fcn.140060fb0
inc r14
add rbx, 0x30
cmp r14, qword [rdi + 0x10]
jb 0x140062c20
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140062d3e
cmp qword [rdi + 8], rsi
jbe 0x140062d38
mov rbx, rsi
nop dword [rax]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + rbx + 8]
test rax, rax
je 0x140062c7b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
inc rsi
add rbx, 0x58
cmp rsi, qword [rdi + 8]
jb 0x140062c60
jmp 0x140062d38
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.gguf_init_from_file
lea rdx, str._s:_failed_to_read_header_n
call fcn.140032e30
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140062cf3
mov r14, rsi
cmp qword [rdi + 0x10], rsi
jbe 0x140062ced
mov rbx, rsi
nop dword [rax]
mov rcx, qword [rdi + 0x18]
add rcx, rbx
call fcn.140060fb0
inc r14
add rbx, 0x30
cmp r14, qword [rdi + 0x10]
jb 0x140062cd0
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140062d3e
cmp qword [rdi + 8], rsi
jbe 0x140062d38
mov rbx, rsi
nop word [rax + rax]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + rbx + 8]
test rax, rax
je 0x140062d2b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x20]
inc rsi
add rbx, 0x58
cmp rsi, qword [rdi + 8]
jb 0x140062d10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140062ae9
movsx ebx, byte [rbp - 0x4a]
mov ecx, 2
movsx edi, byte [rbp - 0x4b]
movsx esi, byte [rbp - 0x4c]
movsx r14d, byte [rbp - 0x4d]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x30], ebx
lea r8, str.gguf_init_from_file
mov rcx, rax
mov dword [rsp + 0x28], edi
mov r9d, r14d
mov dword [rsp + 0x20], esi
lea rdx, str._s:_invalid_magic_characters__c_c_c_c_n
call fcn.140032e30
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x140062af1