Function at 0x1400a46a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov r15, qword [rcx + 8]
mov qword [rsp + 0x40], rdx
mov rbx, rcx
mov esi, r9d
mov dword [rsp + 0x68], r8d
mov dword [rsp + 0x74], r9d
test byte [rcx + 1], 0x20
jne 0x1400a4960
cmp byte [rcx], 2
ja 0x1400a4930
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1400a4a28
test esi, esi
jne 0x1400a4770
test byte [rsp + 0x68], 2
jne 0x1400a4a90
mov rdi, qword [rsp + 0x40]
movzx edx, word [rdi + 0x20]
test dx, dx
je 0x1400a5180
movq xmm0, rax
mov word [rsp + 0x9c], dx
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0x80]
movhps xmm0, qword [rdi + 0x18]
mov rcx, rbx
mov byte [rsp + 0x9e], 0
mov byte [rsp + 0xa2], 0
movups xmmword [rsp + 0x80], xmm0
call sym.sqlite3BtreeIndexMoveto
mov dword [rsp + 0x70], eax
mov r10d, eax
test r10d, r10d
jne 0x1400a4915
mov r8d, dword [rsp + 0x74]
test r8d, r8d
je 0x1400a4a90
nop dword [rax]
mov rbp, qword [rbx + 0x88]
mov eax, dword [rbp + 0x14]
test eax, eax
js 0x1400a49c0
mov rax, qword [r15 + 8]
mov rdi, qword [rax + 0x88]
mov qword [rsp + 0x48], rdi
test byte [rsp + 0x68], 0x80
je 0x1400a4c30
mov r12d, dword [rax + 0x90]
mov dword [rsp + 0x70], 0
cmp r12d, 3
jg 0x1400a47c5
mov rax, qword [rsp + 0x48]
mov r12d, 4
mov byte [rax + 3], 0
mov rax, qword [r15 + 8]
cmp byte [rax + 0x21], 0
je 0x1400a4808
movzx eax, word [rbp + 0xe]
cmp eax, r12d
jge 0x1400a4808
mov rsi, qword [rsp + 0x48]
lea r8, [rsp + 0x80]
mov rcx, rbp
mov rdx, rsi
call qword [rbp + pe_nt_image_headers64]
movzx eax, word [rsp + 0x94]
cmp dword [rsp + 0x90], eax
jne 0x1400a5260
nop word [rax + rax]
movzx esi, word [rbx + 0x56]
mov ecx, dword [rsp + 0x74]
xor edx, edx
mov word [rbx + 0x46], dx
mov eax, esi
test ecx, ecx
jne 0x1400a4a00
cmp si, word [rbp + 0x18]
jae 0x1400a4c00
mov rcx, qword [rbp + 0x70]
call sym.sqlite3PagerWrite
mov dword [rsp + 0x70], eax
mov r10d, eax
test eax, eax
jne 0x1400a4915
mov rdx, qword [rbp + 0x60]
lea eax, [rsi + rsi]
cdqe
movzx edi, word [rdx + rax]
rol di, 8
and di, word [rbp + 0x1a]
movzx edi, di
add rdi, qword [rbp + 0x50]
cmp byte [rbp + 8], 0
jne 0x1400a486d
mov eax, dword [rdi]
mov rdx, qword [rsp + 0x48]
mov dword [rdx], eax
mov dword [rsp + 0x38], r10d
lea r8, [rsp + 0x80]
mov rdx, rdi
mov rcx, rbp
call qword [rbp + pe_nt_image_headers64]
movzx eax, word [rsp + 0x94]
mov r10d, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x90]
mov r8d, eax
cmp eax, r9d
jne 0x1400a5208
movzx r8d, word [rsp + 0x96]
and byte [rbx + 1], 0xfb
mov dword [rsp + 0x70], 0
cmp r8d, r12d
je 0x1400a5303
lea r9, [rsp + 0x70]
mov edx, esi
mov rcx, rbp
call sym.dropCell.part.0
mov r10d, dword [rsp + 0x70]
test r10d, r10d
jne 0x1400a4915
lea eax, [r12 + 1]
cmp eax, dword [rbp + 0x14]
jl 0x1400a4cb0
movzx eax, byte [rbp + 0xc]
mov rdi, qword [rsp + 0x48]
xor r10d, r10d
lea edx, [rax + 1]
mov byte [rbp + 0xc], dl
mov qword [rbp + rax*8 + 0x28], rdi
mov word [rbp + rax*2 + 0x1c], si
mov dword [rsp + 0x70], r10d
test dl, dl
jne 0x1400a4b40
mov eax, r10d
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call sym.moveToRoot
mov dword [rsp + 0x70], eax
mov r10d, eax
test eax, 0xffffffef
jne 0x1400a4915
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x1400a46ef
jmp 0x1400a4a28
mov rax, qword [r15 + 8]
mov edx, dword [rcx + 0x50]
mov r8, rbx
mov rcx, qword [rax + 0x10]
call sym.saveAllCursors.isra.0
mov dword [rsp + 0x70], eax
mov r10d, eax
test eax, eax
jne 0x1400a4915
test esi, esi
je 0x1400a4b08
cmp byte [rbx + 0x54], 0
js 0x1400a54c4
cmp byte [rbx], 2
ja 0x1400a4930
cmp qword [rbx + 0x80], 0
jne 0x1400a4770
cmp byte [r15 + 0x13], 0
jne 0x1400a5128
test byte [rbx + 1], 2
jne 0x1400a4a39
jmp 0x1400a4770
cmp byte [rbx], 1
jbe 0x1400a4ae8
lea rax, [0x14015efa4]
mov r9d, 0x136b4
lea r8, str.database_corruption
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call sym.sqlite3_log
mov r10d, 0xb
jmp 0x1400a4915
jns 0x1400a48de
cmp word [rbp + 0x18], 0
je 0x1400a48de
add eax, 1
and byte [rbx + 1], 0xfd
mov word [rbx + 0x56], ax
movzx esi, ax
jmp 0x1400a48de
cmp byte [r15 + 0x13], 0
jne 0x1400a5128
test byte [rbx + 1], 2
je 0x1400a4a4c
mov rax, qword [rsp + 0x40]
mov rdi, qword [rbx + 0x30]
cmp qword [rax + 8], rdi
je 0x1400a5340
test esi, esi
jne 0x1400a4770
mov r8d, dword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
lea r9, [rsp + 0x74]
mov rcx, rbx
mov rdx, qword [rax + 8]
shr r8d, 3
and r8d, 1
call sym.sqlite3BtreeTableMoveto
mov dword [rsp + 0x70], eax
mov r10d, eax
test eax, eax
je 0x1400a4770
jmp 0x1400a4915
mov rcx, rbx
call sym.getCellInfo
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
cmp qword [rbx + 0x30], rax
jne 0x1400a4770
mov rsi, qword [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0xa4], eax
mov dword [rsp + 0xa8], 0
mov rdx, qword [rsi]
mov qword [rsp + 0x90], rdx
lea rdx, [rsp + 0x80]
call sym.btreeOverwriteCell
mov r10d, eax
jmp 0x1400a4915
mov rcx, rbp
call sym.btreeComputeFreeSpace
mov dword [rsp + 0x70], eax
mov r10d, eax
test eax, eax
je 0x1400a4782
jmp 0x1400a4915
cmp byte [rbx], 2
ja 0x1400a4930
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x1400a46f3
cmp byte [r15 + 0x13], 0
jne 0x1400a5128
test byte [rbx + 1], 2
jne 0x1400a4a39
jmp 0x1400a4a54
and byte [rbx + 1], 0xfd
mov rcx, rbx
call sym.balance
mov dword [rsp + 0x70], eax
mov r10d, eax
mov rax, qword [rbx + 0x88]
mov byte [rax + 0xc], 0
mov byte [rbx], 1
test byte [rsp + 0x68], 2
je 0x1400a4915
test r10d, r10d
jne 0x1400a4915
cmp byte [rbx + 0x54], 0
js 0x1400a4bb1
je 0x1400a4ba4
xor esi, esi
nop
mov rax, qword [rbx + rsi*8 + 0x90]
add rsi, 1
mov rcx, qword [rax + 0x70]
call sym.sqlite3PagerUnrefNotNull
movsx eax, byte [rbx + 0x54]
cmp eax, esi
jg 0x1400a4b80
mov rax, qword [rbx + 0x88]
mov rcx, qword [rax + 0x70]
call sym.sqlite3PagerUnrefNotNull
mov byte [rbx + 0x54], 0xff
cmp qword [rbx + 0x80], 0
je 0x1400a4be7
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi + 8]
call sym.sqlite3Malloc
mov r10d, 7
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1400a4bea
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
mov rcx, rax
call sym.memcpy
xor r10d, r10d
mov rax, qword [rsp + 0x40]
mov byte [rbx], 3
mov rax, qword [rax + 8]
mov qword [rbx + 0x48], rax
jmp 0x1400a4915
lea rax, [0x14015efa4]
mov r9d, 0x136de
lea r8, str.database_corruption
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call sym.sqlite3_log
jmp 0x1400a49f3
movzx r12d, byte [rbp + 0xa]
mov rdi, qword [rsp + 0x48]
cmp byte [rbp + 1], 0
mov rax, qword [rsp + 0x40]
lea rcx, [rdi + r12]
je 0x1400a4e18
mov edi, dword [rax + 0x24]
mov esi, dword [rax + 0x28]
mov rax, qword [rax + 0x10]
add esi, edi
mov qword [rsp + 0x38], rax
cmp esi, 0x7f
ja 0x1400a53c0
mov byte [rcx], sil
mov r13d, 1
mov rax, qword [rsp + 0x40]
add r13d, r12d
movsxd rcx, r13d
mov rdx, qword [rax + 8]
mov rax, qword [rsp + 0x48]
add rcx, rax
cmp rdx, 0x7f
jbe 0x1400a5380
cmp rdx, 0x3fff
jbe 0x1400a52e6
call sym.putVarint64
mov r12d, eax
add r12d, r13d
jmp 0x1400a4e3a
mov rcx, qword [rbp + 0x70]
call sym.sqlite3PagerWrite
mov r10d, eax
test eax, eax
jne 0x1400a4e08
mov r13, qword [rbp + 0x50]
movzx r15d, byte [rbp + 9]
mov dword [rsp + 0x80], 0
movzx edx, word [rbp + 0x18]
movzx eax, word [rbp + 0x12]
lea r11, [r13 + r15 + 5]
movzx edi, word [r11]
lea r9d, [rax + rdx*2]
rol di, 8
movzx edi, di
cmp r9d, edi
jle 0x1400a52a0
test edi, edi
jne 0x1400a5456
mov rax, qword [rbp + 0x48]
cmp dword [rax + 0x38], 0x10000
jne 0x1400a5456
mov edi, 0x10000
cmp byte [r13 + r15 + 2], 0
jne 0x1400a53e0
cmp byte [r13 + r15 + 1], 0
jne 0x1400a53e0
lea eax, [r12 + r9 + 2]
lea rcx, [r13 + r15 + 6]
cmp edi, eax
jl 0x1400a546d
mov eax, edi
sub eax, r12d
mov edx, eax
mov edi, eax
sar edx, 8
mov byte [r11], dl
mov r15d, edx
mov byte [rcx], al
lea edx, [r12 + 2]
cdqe
movsxd r8, r12d
mov dword [rsp + 0x38], r10d
movzx edx, dx
lea rcx, [r13 + rax]
lea r12d, [rsi + rsi]
sub dword [rbp + 0x14], edx
mov rdx, qword [rsp + 0x48]
movsxd r12, r12d
call sym.memcpy
movzx r8d, word [rbp + 0x18]
add r12, qword [rbp + 0x60]
mov rdx, r12
lea rcx, [r12 + 2]
sub r8d, esi
add r8d, r8d
movsxd r8, r8d
call sym.memmove
mov byte [r12], r15b
mov r10d, dword [rsp + 0x38]
mov byte [r12 + 1], dil
movzx eax, byte [rbp + 9]
add word [rbp + 0x18], 1
lea rdx, [r13 + rax + 4]
add byte [rdx], 1
jne 0x1400a4dce
movzx eax, byte [rbp + 9]
add byte [r13 + rax + 3], 1
mov rax, qword [rbp + 0x48]
cmp byte [rax + 0x21], 0
je 0x1400a4e08
mov r8, qword [rsp + 0x48]
lea r9, [rsp + 0x80]
mov rdx, rbp
mov rcx, rbp
mov dword [rsp + 0x80], 0
call sym.ptrmapPutOvflPtr
mov r10d, dword [rsp + 0x80]
nop dword [rax + rax]
movzx edx, byte [rbp + 0xc]
jmp 0x1400a4908
mov rdi, qword [rax + 8]
mov rax, qword [rax]
mov esi, edi
mov qword [rsp + 0x38], rax
cmp edi, 0x7f
ja 0x1400a5390
mov byte [rcx], dil
mov eax, 1
add r12d, eax
mov rax, qword [rsp + 0x48]
movzx r10d, word [rbp + 0xe]
movsxd rcx, r12d
add rcx, rax
cmp r10d, esi
jge 0x1400a51c0
mov r13, qword [rbp + 0x48]
movzx r8d, word [rbp + 0x10]
mov eax, esi
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x7c], 0
mov edx, dword [r13 + 0x38]
sub eax, r8d
lea r11d, [rdx - 4]
xor edx, edx
div r11d
lea r14d, [rdx + r8]
mov rdx, qword [rsp + 0x48]
cmp r10d, r14d
cmovl r14d, r8d
lea eax, [r12 + r14]
xor r12d, r12d
mov dword [rsp + 0x6c], eax
cdqe
add rax, rdx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x58], rax
nop word [rax + rax]
cmp r14d, esi
mov r15d, esi
cmovle r15d, r14d
cmp r15d, edi
jle 0x1400a4f86
test edi, edi
jle 0x1400a4fa0
mov rdx, qword [rsp + 0x38]
movsxd r8, edi
mov r15d, edi
call sym.memcpy
mov rcx, rax
sub esi, r15d
test esi, esi
jle 0x1400a50f8
movsxd rax, r15d
sub edi, r15d
add qword [rsp + 0x38], rax
sub r14d, r15d
jne 0x1400a4f70
mov r14d, dword [rsp + 0x7c]
mov qword [rsp + 0x80], 0
cmp byte [r13 + 0x21], 0
mov r9d, r14d
jne 0x1400a5010
mov dword [rsp + 0x20], 0
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x80]
mov rcx, r13
call sym.allocateBtreePage
cmp byte [r13 + 0x21], 0
mov dword [rsp + 0x78], eax
mov r10d, eax
je 0x1400a4fb8
test eax, eax
je 0x1400a5090
test r12, r12
je 0x1400a4915
mov rcx, qword [r12 + 0x70]
mov dword [rsp + 0x38], r10d
call sym.sqlite3PagerUnrefNotNull
mov r10d, dword [rsp + 0x38]
jmp 0x1400a4915
add rcx, rax
mov r15d, esi
cmp r14d, esi
cmovle r15d, r14d
cmp r15d, edi
jg 0x1400a4ec3
mov rdx, qword [rsp + 0x38]
movsxd r8, r15d
call sym.memcpy
mov rcx, rax
jmp 0x1400a4ede
movsxd r8, r15d
xor edx, edx
call sym.memset
mov rcx, rax
jmp 0x1400a4ede
test eax, eax
jne 0x1400a4f4b
mov r15d, dword [rsp + 0x7c]
mov rax, qword [rsp + 0x50]
bswap r15d
mov dword [rax], r15d
test r12, r12
je 0x1400a4fdb
mov rcx, qword [r12 + 0x70]
call sym.sqlite3PagerUnrefNotNull
mov r12, qword [rsp + 0x80]
mov rax, qword [r12 + 0x50]
mov dword [rax], 0
mov qword [rsp + 0x50], rax
mov rax, qword [r12 + 0x50]
lea rcx, [rax + 4]
mov eax, dword [r13 + 0x38]
lea r14d, [rax - 4]
jmp 0x1400a4eb0
mov r15d, dword [0x14014ee70]
mov r11d, dword [r13 + 0x34]
mov r10d, r14d
jmp 0x1400a5023
mov r10d, r9d
lea r9d, [r10 + 1]
xor r8d, r8d
cmp r9d, 1
jbe 0x1400a506b
mov r8d, dword [r13 + 0x38]
mov eax, 0xcccccccd
lea ecx, [r10 - 1]
xor edx, edx
imul r8, rax
mov eax, ecx
shr r8, 0x22
add r8d, 1
div r8d
mov eax, r15d
sub ecx, edx
xor edx, edx
div r11d
lea r8d, [rcx + 2]
add ecx, 3
add eax, 1
cmp r8d, eax
cmove r8d, ecx
cmp r9d, r8d
je 0x1400a5020
mov eax, r15d
xor edx, edx
div r11d
cmp r10d, eax
je 0x1400a5020
mov dword [rsp + 0x7c], r9d
jmp 0x1400a4f18
lea rax, [rsp + 0x78]
mov r15d, dword [rsp + 0x7c]
mov r9d, r14d
mov rcx, r13
mov qword [rsp + 0x20], rax
cmp r14d, 1
mov r8d, 3
sbb r8d, 0xffffffff
mov edx, r15d
call sym.ptrmapPut
mov r10d, dword [rsp + 0x78]
test r10d, r10d
je 0x1400a4fc1
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x1400a4f4b
mov rcx, qword [rax + 0x70]
mov dword [rsp + 0x38], r10d
call sym.sqlite3PagerUnrefNotNull
mov r10d, dword [rsp + 0x38]
jmp 0x1400a4f4b
mov r15, qword [rsp + 0x60]
test r12, r12
je 0x1400a510c
mov rcx, qword [r12 + 0x70]
call sym.sqlite3PagerUnrefNotNull
mov r12d, dword [rsp + 0x6c]
mov dword [rsp + 0x70], 0
add r12d, 4
jmp 0x1400a4808
mov rax, qword [rsp + 0x40]
mov edx, dword [rbx + 0x50]
mov rcx, qword [rax + 8]
mov rax, qword [r15 + 8]
mov byte [r15 + 0x13], 0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400a515d
jmp 0x1400a4a33
mov rax, qword [rax + 0x28]
test rax, rax
je 0x1400a4a33
test byte [rax + 1], 0x10
je 0x1400a5150
mov byte [r15 + 0x13], 1
cmp edx, dword [rax + 0x50]
jne 0x1400a5150
cmp rcx, qword [rax + 0x30]
jne 0x1400a5150
mov byte [rax], 1
jmp 0x1400a5150
mov rsi, qword [rsp + 0x40]
mov r9d, dword [rsp + 0x68]
lea rax, [rsp + 0x74]
mov rcx, rbx
mov rdx, qword [rsi]
mov qword [rsp + 0x20], rax
shr r9d, 3
mov r8, qword [rsi + 8]
and r9d, 1
call sym.btreeMoveto
mov dword [rsp + 0x70], eax
mov r10d, eax
jmp 0x1400a4755
add r12d, esi
cmp r12d, 3
jg 0x1400a51d6
movsxd rax, esi
mov r12d, 4
mov byte [rcx + rax], 0
mov rdx, qword [rsp + 0x38]
movsxd r13, edi
sub esi, edi
mov r8, r13
call sym.memcpy
movsxd r8, esi
xor edx, edx
mov rcx, rax
add rcx, r13
call sym.memset
mov dword [rsp + 0x70], 0
jmp 0x1400a4808
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x48]
mov word [rsp + 0x20], r8w
mov r8, rdi
movzx eax, word [rsp + 0x96]
mov dword [rsp + 0x38], r10d
mov word [rsp + 0x28], ax
call sym.clearCellOverflow.isra.0
and byte [rbx + 1], 0xfb
mov r10d, dword [rsp + 0x38]
movzx r8d, word [rsp + 0x96]
mov dword [rsp + 0x70], eax
cmp r8d, r12d
je 0x1400a5328
mov r10d, eax
test eax, eax
jne 0x1400a4915
jmp 0x1400a48c5
movsxd rax, r12d
mov r9d, dword [rbp + 4]
mov rcx, qword [r15 + 8]
mov r8d, 3
mov edx, dword [rsi + rax - 4]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
bswap edx
call sym.ptrmapPut
mov r10d, dword [rsp + 0x70]
test r10d, r10d
je 0x1400a4808
jmp 0x1400a4915
mov rax, qword [rbp + 0x48]
cmp edi, dword [rax + 0x38]
jle 0x1400a4d1b
lea rax, [0x14015efa4]
mov r9d, 0x1190c
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.database_corruption
mov ecx, 0xb
call sym.sqlite3_log
movzx edx, byte [rbp + 0xc]
mov r10d, 0xb
jmp 0x1400a4908
mov rax, rdx
and edx, 0x7f
mov r12d, 2
shr rax, 7
mov byte [rcx + 1], dl
or eax, 0xffffff80
mov byte [rcx], al
jmp 0x1400a4ca6
xor eax, eax
mov rdx, qword [r15 + 8]
cmp byte [rdx + 0x21], 0
je 0x1400a54f3
movzx edx, word [rbp + 0x10]
cmp edx, r12d
jg 0x1400a54f3
mov r8d, r12d
jmp 0x1400a524f
movzx edx, word [rsp + 0x94]
cmp edx, dword [rsp + 0x90]
jne 0x1400a524f
jmp 0x1400a5305
cmp word [rbx + 0x46], 0
je 0x1400a4770
mov rdi, rax
mov eax, dword [rax + 0x28]
add eax, dword [rdi + 0x24]
cmp dword [rbx + 0x40], eax
jne 0x1400a4770
mov rdx, rdi
mov rcx, rbx
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.btreeOverwriteCell
mov byte [rcx], dl
mov r12d, 1
jmp 0x1400a4ca6
movsxd rdx, edi
cmp rdx, 0x7f
jbe 0x1400a4e2f
cmp rdx, 0x3fff
jbe 0x1400a5565
call sym.putVarint64
movzx eax, al
jmp 0x1400a4e37
movsxd rdx, esi
cmp rdx, 0x3fff
jbe 0x1400a5549
call sym.putVarint64
movzx r13d, al
jmp 0x1400a4c70
lea eax, [r9 + 1]
cmp eax, edi
jge 0x1400a4d33
mov edx, r12d
lea r8, [rsp + 0x80]
mov rcx, rbp
mov dword [rsp + 0x58], r10d
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x38], r9d
call sym.pageFindSlot
mov r9d, dword [rsp + 0x38]
mov r11, qword [rsp + 0x50]
test rax, rax
mov r10d, dword [rsp + 0x58]
mov rdx, rax
je 0x1400a5580
sub rdx, r13
movzx edi, dh
mov eax, edx
mov r15, rdi
mov edi, edx
cmp r9d, edx
jl 0x1400a4d59
lea rax, [0x14015efa4]
mov r9d, 0x1191d
mov qword [rsp + 0x20], rax
jmp 0x1400a52bf
lea rax, [0x14015efa4]
mov r9d, 0x11909
mov qword [rsp + 0x20], rax
jmp 0x1400a52bf
mov edx, dword [rbp + 0x14]
lea eax, [r12 + 2]
mov rcx, rbp
mov dword [rsp + 0x50], r10d
mov qword [rsp + 0x38], r11
sub edx, eax
mov eax, 4
cmp edx, eax
cmovg edx, eax
call sym.defragmentPage
test eax, eax
jne 0x1400a558f
mov r11, qword [rsp + 0x38]
lea rcx, [r13 + r15 + 6]
mov r10d, dword [rsp + 0x50]
movzx eax, byte [rcx]
movzx edi, byte [r11]
shl edi, 8
or edi, eax
sub edi, 1
movzx edi, di
add edi, 1
jmp 0x1400a4d45
lea rax, [0x14015efa4]
mov r9d, 0x13639
lea r8, str.database_corruption
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call sym.sqlite3_log
jmp 0x1400a49f3
movzx eax, byte [rbp + 9]
mov rdx, qword [rbp + 0x50]
lea rax, [rdx + rax + 0xa]
cmp rdi, rax
jb 0x1400a55b7
movsxd r8, r12d
lea rax, [rdi + r8]
cmp qword [rbp + 0x58], rax
jae 0x1400a559b
lea rax, [0x14015efa4]
mov r9d, 0x136fc
lea r8, str.database_corruption
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call sym.sqlite3_log
jmp 0x1400a49f3
shr rdx, 7
mov r13d, 2
or edx, 0xffffff80
mov byte [rcx], dl
mov edx, esi
and edx, 0x7f
mov byte [rcx + 1], dl
jmp 0x1400a4c70
shr rdx, 7
mov eax, 2
or edx, 0xffffff80
mov byte [rcx], dl
mov edx, edi
and edx, 0x7f
mov byte [rcx + 1], dl
jmp 0x1400a4e37
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1400a4d33
movzx edx, byte [rbp + 0xc]
mov r10d, eax
jmp 0x1400a4908
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x38], r10d
call sym.memcpy
mov r10d, dword [rsp + 0x38]
jmp 0x1400a4915
lea rax, [0x14015efa4]
mov r9d, 0x136f9
lea r8, str.database_corruption
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call sym.sqlite3_log
jmp 0x1400a49f3