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

Disassembly:
lea r12, [rsp - 0x88]
cmp r12, qword [r14 + 0x10]
jbe 0x652c63
push rbp
mov rbp, rsp
sub rsp, 0x100
movq qword [rsp + 0xf8], xmm15
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdi
mov word [rsp + 0x130], si
mov byte [rsp + 0x31], 0
mov dword [rsp + 0x48], 0
mov ebx, pe_nt_image_headers64
call sym.modernc.org_libc._TLS_.Alloc
lea rcx, [sym.modernc.org_sqlite_lib._whereLoopAddBtreeIndex.deferwrap1]
mov qword [rsp + 0xe8], rcx
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0xf0], rcx
lea rdx, [rsp + 0xe8]
mov qword [rsp + 0xf8], rdx
mov byte [rsp + 0x31], 1
mov rdx, qword [rsp + 0x118]
mov rsi, rdx
mov rdi, qword [rdx]
mov rdi, qword [rdi]
mov r8, rdi
cmp dword [rdi + 0x30], 0
jne 0x6517a7
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xe0], r8
mov r10, qword [rdx + 0x10]
mov qword [rsp + 0x98], r10
mov r11, r10
mov r12d, dword [r10 + 0x30]
mov dword [rsp + 0x6c], r12d
mov r9, qword [rsp + 0x128]
lea r13, [r9 + 0x64]
mov qword [rsp + 0xd8], r13
movzx r13d, word [r13]
mov ebx, r13d
and r13d, 4
shr r13w, 2
movzx r13d, r13w
test r12d, 0x20
mov r15d, 0x1bf
mov r12d, 0x18
cmovne r15d, r12d
test r13d, r13d
jne 0x65165c
mov r12d, ebx
and ebx, 0x100
shr bx, 8
movzx ebx, bx
test ebx, ebx
je 0x6516b1
mov ebx, r12d
mov r12d, r15d
and r15d, 0xffffffc3
test r13d, r13d
cmovne r12d, r15d
and ebx, 0x100
shr bx, 8
movzx r13d, bx
test r13d, r13d
je 0x6516a7
mov r13, qword [rsp + 0x120]
lea r15, [r13 + 0x40]
movzx r15d, word [r15]
and r15d, 2
shr r15w, 1
movzx r15d, r15w
test r15d, r15d
jne 0x6516bc
and r12d, 0xffffff7c
jmp 0x6516bc
mov r13, qword [rsp + 0x120]
jmp 0x6516bc
mov r13, qword [rsp + 0x120]
mov r12d, r15d
movzx esi, word [r10 + 0x18]
mov word [rsp + 0x3a], si
mov rdx, qword [rdx + 8]
mov r13d, dword [r13 + 0x44]
mov r15, qword [rdi]
mov qword [rsp + 0xa8], r15
movzx ebx, word [r10 + 0x1a]
mov word [rsp + 0x3c], bx
movzx edi, word [r10 + 0x1c]
mov word [rsp + 0x32], di
movzx r8d, word [r10 + 0x36]
mov word [rsp + 0x34], r8w
movzx r15d, word [r10 + 0x34]
mov word [rsp + 0x38], r15w
mov r15, qword [r10]
mov qword [rsp + 0x80], r15
movzx r10d, word [r10 + 0x16]
mov word [rsp + 0x36], r10w
mov rax, rcx
mov rbx, qword [rsp + 0xb0]
mov rcx, rdx
mov edi, r13d
mov r8d, r12d
call sym.modernc.org_sqlite_lib._whereScanInit
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x98]
mov word [rdx + 0x12], 0
mov rdx, qword [rsp + 0x128]
mov rdx, qword [rdx + 0x10]
movzx ebx, word [rdx]
mov word [rsp + 0x3e], bx
mov rax, qword [rsp + 0x110]
call sym.modernc.org_sqlite_lib._estLog
mov word [rsp + 0x40], ax
mov rdx, qword [rsp + 0x98]
movzx r10d, word [rsp + 0x3a]
mov r11, qword [rsp + 0x118]
mov r12, qword [rsp + 0x120]
mov r9, qword [rsp + 0x128]
mov r13, qword [rsp + 0x90]
xor ecx, ecx
xor ebx, ebx
xor esi, esi
jmp 0x651860
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x31], 0
mov rdx, qword [rsp + 0xf8]
mov rax, qword [rdx]
nop
call rax
mov eax, dword [rsp + 0x48]
add rsp, 0x100
pop rbp
ret
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xc8], rsi
mov dword [rsp + 0x68], ecx
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0xb0]
call sym.modernc.org_sqlite_lib._whereScanNext
mov rcx, qword [rsp + 0x98]
movzx edx, word [rsp + 0x3a]
mov rsi, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x120]
mov r8, qword [rsp + 0x128]
mov r9, qword [rsp + 0xc8]
mov r10, qword [rsp + 0xd0]
mov r11d, dword [rsp + 0x68]
mov rdx, rcx
mov r9, r8
movzx r10d, word [rsp + 0x3a]
mov r11, rsi
mov r12, rdi
mov ecx, dword [rsp + 0x68]
mov r13, rax
mov rbx, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xc8]
movzx eax, word [rsp + 0x40]
test ecx, ecx
jne 0x651f7f
test r13, r13
je 0x651f7f
mov r8, r13
movzx r15d, word [r13 + 0x14]
mov rdi, r11
mov r11d, dword [r11 + 0x28]
mov dword [rsp + 0x4c], r11d
cmp r15d, 0x100
je 0x65189f
movzx r11d, word [r13 + 0x12]
bt r11d, 7
jae 0x6518f6
mov r11d, dword [rsp + 0x4c]
movsxd r11, r10d
shl r11, 1
add r11, qword [r9 + 8]
movsx r11, word [r11]
test r11d, r11d
jl 0x6518cf
mov r9, qword [r9 + 0x18]
movsxd r11, r11d
shl r11, 4
add r11, qword [r9 + 8]
lea r9, [r11 + 8]
movzx r9d, byte [r9]
and r9d, 0xf
jmp 0x6518e0
cmp r11d, 0xffffffff
jne 0x6518dd
mov r9d, 1
jmp 0x6518e0
xor r9d, r9d
test r9d, r9d
jne 0x6518ef
mov r9, qword [rsp + 0x128]
jmp 0x6518f6
xor ecx, ecx
jmp 0x6517cf
mov r11, qword [r13 + 0x28]
mov rdx, qword [rdx + 8]
nop
test r11, rdx
jne 0x651f50
movzx r11d, word [r13 + 0x12]
bt r11d, 8
jae 0x651925
cmp r15d, 0x10
jne 0x651925
xor ecx, ecx
nop dword [rax]
jmp 0x6517cf
mov r11, r12
movzx edx, byte [r12 + 0x3c]
test edx, 0x58
je 0x6519ab
mov r13, qword [r13]
mov qword [rsp + 0xd0], r13
mov r13d, dword [r13 + 4]
test r13d, 3
je 0x65199d
mov r11, qword [rsp + 0xd0]
add r11, 0x34
mov r11d, dword [r11]
nop
cmp dword [r12 + 0x44], r11d
je 0x651971
mov r11, qword [rsp + 0x120]
jmp 0x65199d
test edx, 0x18
je 0x65198e
bt r13d, 1
nop
jae 0x65198e
mov r11, qword [rsp + 0x120]
xor edx, edx
jmp 0x6519a0
mov r11, qword [rsp + 0x120]
mov edx, 1
jmp 0x6519a0
xor edx, edx
nop
test edx, edx
jne 0x6519ab
xor ecx, ecx
jmp 0x6517cf
mov r12, r9
movzx r13d, byte [r9 + 0x62]
test r13d, r13d
je 0x6519d6
movzx r9d, word [r9 + 0x5e]
dec r9d
cmp r10d, r9d
jne 0x6519d6
lea r9, [rdi + 0x2c]
movzx r13d, byte [r9]
or r13d, 2
mov byte [r9], r13b
jmp 0x6519e5
lea r9, [rdi + 0x2c]
movzx r13d, byte [r9]
or r13d, 1
mov byte [r9], r13b
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xd0], r8
mov dword [rsp + 0x44], ecx
mov r9, qword [rsp + 0x98]
mov r13, r9
mov rdx, r11
mov r11d, dword [rsp + 0x6c]
mov dword [r9 + 0x30], r11d
mov r9, r13
mov word [r13 + 0x18], r10w
mov r13, r9
movzx r12d, word [rsp + 0x3c]
mov word [r9 + 0x1a], r12w
mov r9, r13
movzx r11d, word [rsp + 0x32]
mov word [r13 + 0x1c], r11w
mov r13, r9
movzx r11d, word [rsp + 0x38]
mov word [r9 + 0x34], r11w
mov r9, r13
movzx edi, word [r13 + 0x34]
movzx r13d, word [r13 + 0x38]
nop dword [rax]
cmp r13d, edi
jle 0x651a69
xor edi, edi
jmp 0x651ad4
inc edi
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0xa8]
mov rcx, r9
nop
call sym.modernc.org_sqlite_lib._whereLoopResize
test eax, eax
setne dl
movzx eax, word [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
mov rbx, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xd0]
mov r9, qword [rsp + 0x98]
movzx r10d, word [rsp + 0x3a]
movzx r11d, word [rsp + 0x38]
movzx r12d, word [rsp + 0x3c]
mov r15d, dword [rsp + 0x68]
mov edi, edx
mov rdx, qword [rsp + 0x120]
test dil, dil
jne 0x651f96
lea r13, [r9 + 0x34]
mov qword [rsp + 0x70], r13
movzx ecx, word [r13]
lea edi, [rcx + 1]
mov word [r13], di
mov r13, r9
shl rcx, 3
add rcx, qword [r9 + 0x40]
mov qword [rcx], r8
mov r9, r8
mov r9, qword [r9 + 0x28]
mov r11, qword [rsp + 0x80]
or r9, r11
mov rdi, r13
mov rcx, qword [r13 + 8]
not rcx
and rcx, r9
mov qword [r13], rcx
mov r9d, r15d
and r15d, 1
mov dword [rsp + 0x64], r15d
test r15d, r15d
je 0x651be5
mov r13, r8
mov rcx, qword [r8]
mov r8, rcx
mov ecx, dword [rcx + 4]
bt ecx, 0xc
jae 0x651b5d
xor ecx, ecx
mov ecx, 0x2e
mov dword [rsp + 0x50], ecx
xor ecx, ecx
jmp 0x652c09
lea rcx, [r8 + 0x20]
mov rcx, qword [rcx]
test rcx, rcx
je 0x651bda
mov ecx, dword [rcx]
test ecx, ecx
jne 0x651b76
xor ecx, ecx
jmp 0x652a77
movsxd rbx, ecx
mov rax, qword [rsp + 0x110]
call sym.modernc.org_sqlite_lib._sqlite3LogEst
movsx rcx, ax
movzx eax, word [rsp + 0x40]
mov rdx, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
mov r9d, dword [rsp + 0x68]
movzx r10d, word [rsp + 0x3a]
mov r11, qword [rsp + 0x80]
movzx r12d, word [rsp + 0x3c]
mov r13, qword [rsp + 0xd0]
mov r15d, dword [rsp + 0x64]
jmp 0x652a77
xor ecx, ecx
nop dword [rax]
jmp 0x652a77
test r9d, 0x82
je 0x651da5
mov r13, qword [rsp + 0x128]
mov rcx, r13
shl r10, 1
add r10, qword [r13 + 8]
movsx r10, word [r10]
lea r13, [rdi + 0x30]
mov qword [rsp + 0xc8], r13
or dword [r13], 1
nop dword [rax]
cmp r10d, 0xffffffff
je 0x651d04
test r10d, r10d
jl 0x651d67
movzx r13d, word [rsp + 0x130]
movsx r12, r13w
test r12d, r12d
jne 0x651d70
mov r12, rcx
movzx r11d, word [rcx + 0x5e]
lea eax, [r11 - 1]
movzx edx, word [rsp + 0x3a]
nop word [rax + rax]
cmp edx, eax
jne 0x651d4d
cmp r10d, 0xffffffff
jne 0x651c8e
movzx eax, word [rsp + 0x40]
mov rcx, r12
mov rdx, qword [rsp + 0x120]
mov r11, qword [rsp + 0x80]
movzx r12d, word [rsp + 0x3c]
jmp 0x651d04
mov r10, qword [rsp + 0xd8]
mov rax, r10
movzx r10d, word [r10]
and r10d, 8
shr r10w, 3
movzx r10d, r10w
test r10d, r10d
je 0x651ccf
movzx eax, word [rsp + 0x40]
mov rcx, r12
mov rdx, qword [rsp + 0x120]
mov r11, qword [rsp + 0x80]
movzx r12d, word [rsp + 0x3c]
jmp 0x651d04
test byte [rcx], al
cmp r11d, 1
jne 0x651d18
cmp byte [rcx + 0x62], 0
je 0x651d18
nop dword [rax]
cmp r9d, 2
jne 0x651d18
movzx eax, word [rsp + 0x40]
mov rcx, r12
mov rdx, qword [rsp + 0x120]
mov r11, qword [rsp + 0x80]
movzx r12d, word [rsp + 0x3c]
mov r10, qword [rsp + 0xc8]
mov r13, r10
or dword [r10], 0x1000
jmp 0x651d7e
mov r10, qword [rsp + 0xc8]
mov r11, r10
or dword [r10], 0x10000
movzx eax, word [rsp + 0x40]
mov rcx, r12
mov rdx, qword [rsp + 0x120]
movzx r12d, word [rsp + 0x3c]
mov r13, r11
mov r11, qword [rsp + 0x80]
jmp 0x651d7e
movzx eax, word [rsp + 0x40]
mov rcx, r12
mov rdx, qword [rsp + 0x120]
mov r11, qword [rsp + 0x80]
jmp 0x651d70
movzx r13d, word [rsp + 0x130]
movzx r12d, word [rsp + 0x3c]
mov r13, qword [rsp + 0xc8]
mov r10, qword [rsp + 0xb0]
movzx r10d, byte [r10 + 0x29]
cmp r10d, 1
jle 0x651f48
or dword [r13], 0x200000
nop dword [rax]
jmp 0x651f48
bt r9d, 8
jae 0x651dba
lea r13, [rdi + 0x30]
or dword [r13], 8
jmp 0x651f40
mov ecx, dword [rdx + 0x44]
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0x128]
mov esi, r10d
call sym.modernc.org_sqlite_lib._whereRangeVectorLen
mov edx, dword [rsp + 0x68]
test edx, 0x24
je 0x651eb2
mov rcx, qword [rsp + 0x98]
lea r9, [rcx + 0x30]
mov r10, r9
or dword [r9], 0x22
mov r8, rcx
mov word [rcx + 0x1a], ax
mov r9, qword [rsp + 0xd0]
mov r11, r9
movzx r9d, word [r9 + 0x12]
bt r9d, 8
jb 0x651e26
xor r9d, r9d
jmp 0x651ead
mov qword [rsp + 0xc8], r10
mov rcx, r8
movzx edi, word [r8 + 0x34]
inc edi
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0xa8]
call sym.modernc.org_sqlite_lib._whereLoopResize
test eax, eax
jne 0x651f57
mov rdx, qword [rsp + 0xd0]
lea r9, [rdx + 0x38]
mov r10, qword [rsp + 0x70]
movzx r11d, word [r10]
lea r12d, [r11 + 1]
mov word [r10], r12w
mov rcx, qword [rsp + 0x98]
mov r8, rcx
shl r11, 3
add r11, qword [rcx + 0x40]
mov qword [r11], r9
mov r10, qword [rsp + 0xc8]
or dword [r10], 0x10
mov rcx, r8
mov word [r8 + 0x1c], 1
mov edx, dword [rsp + 0x68]
mov r8, rcx
mov r11, qword [rsp + 0xd0]
mov rax, r11
jmp 0x651f04
mov rcx, qword [rsp + 0x98]
lea r9, [rcx + 0x30]
or dword [r9], 0x12
mov r8, rcx
mov word [rcx + 0x1c], ax
mov rcx, r8
mov r9d, dword [r8 + 0x30]
bt r9d, 5
jae 0x651ef0
movzx r9d, word [r8 + 0x34]
add r9d, 0xfffffffe
movsxd r9, r9d
shl r9, 3
add r9, qword [r8 + 0x40]
mov r9, qword [r9]
jmp 0x651ef3
xor r9d, r9d
mov rax, qword [rsp + 0xd0]
mov r8, rcx
mov r11, r9
mov r9, rax
movzx eax, word [rsp + 0x40]
mov rdx, qword [rsp + 0x120]
mov rdi, r8
mov r8, qword [rsp + 0xd0]
movzx r10d, word [rsp + 0x3a]
movzx r12d, word [rsp + 0x3c]
mov r15d, dword [rsp + 0x64]
mov rbx, r9
mov rsi, r11
mov r9d, dword [rsp + 0x68]
mov r11, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x128]
xor r10d, r10d
jmp 0x65224f
xor ecx, ecx
jmp 0x6517cf
mov rdx, qword [rsp + 0x120]
mov r9, qword [rsp + 0x98]
movzx r10d, word [rsp + 0x3a]
movzx r11d, word [rsp + 0x38]
movzx r12d, word [rsp + 0x3c]
mov ecx, dword [rsp + 0x44]
jmp 0x651f96
mov rdx, r12
mov r9, qword [rsp + 0x98]
movzx r11d, word [rsp + 0x38]
movzx r12d, word [rsp + 0x3c]
mov r8, r9
mov r13, qword [rsp + 0x80]
mov qword [r9], r13
mov r9, r8
mov word [r8 + 0x18], r10w
mov r8, r9
mov word [r9 + 0x1a], r12w
mov r9, r8
movzx r12d, word [rsp + 0x32]
mov word [r8 + 0x1c], r12w
mov r8, r9
movzx r12d, word [rsp + 0x34]
mov word [r9 + 0x36], r12w
mov r9, r8
mov r13d, dword [rsp + 0x6c]
mov dword [r8 + 0x30], r13d
mov r8, r9
movzx r15d, word [rsp + 0x36]
mov word [r9 + 0x16], r15w
mov r9, r8
mov word [r8 + 0x34], r11w
cmp r12d, r10d
jne 0x6520b2
lea r8d, [r10 + 1]
mov rdi, qword [rsp + 0x128]
mov r11, rdi
movzx eax, word [r11 + 0x5e]
cmp eax, r8d
jle 0x6520a5
mov rax, r9
movzx r9d, word [r9 + 0x34]
cmp r9d, r10d
jne 0x65209b
mov r9, qword [rsp + 0xd8]
movzx r9d, word [r9]
mov ebx, r9d
and r9d, 0x40
shr r9w, 6
movzx r9d, r9w
test r9d, r9d
jne 0x652091
and ebx, 0x80
shr bx, 7
movzx r9d, bx
test r9d, r9d
je 0x652087
mov rbx, qword [rsp + 0xa8]
mov r9, rbx
mov r9d, dword [r9 + 0x60]
bt r9d, 0xe
jb 0x6520c5
movsxd r8, r8d
shl r8, 1
add r8, qword [r11 + 0x10]
movsx r8, word [r8]
cmp r8d, 0x2a
setge r8b
jmp 0x6520c8
mov rbx, qword [rsp + 0xa8]
jmp 0x6520c5
mov rbx, qword [rsp + 0xa8]
jmp 0x6520c5
mov rbx, qword [rsp + 0xa8]
jmp 0x6520c5
mov rax, r9
mov rbx, qword [rsp + 0xa8]
jmp 0x6520c5
mov rax, r9
mov rbx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x128]
xor r8d, r8d
test r8b, r8b
jne 0x6520d4
mov ebx, 0
jmp 0x652129
mov byte [rsp + 0x30], r8b
mov rcx, rax
movzx edi, word [rax + 0x34]
inc edi
mov rax, qword [rsp + 0x110]
call sym.modernc.org_sqlite_lib._whereLoopResize
movzx edx, byte [rsp + 0x30]
test dl, dl
mov rdx, qword [rsp + 0x120]
mov rdi, qword [rsp + 0x128]
movzx r10d, word [rsp + 0x3a]
movzx r12d, word [rsp + 0x34]
mov r13d, dword [rsp + 0x6c]
movzx r15d, word [rsp + 0x36]
mov ebx, eax
mov ecx, ebx
mov rax, qword [rsp + 0x98]
je 0x65222b
test ebx, ebx
jne 0x65222b
mov dword [rsp + 0x44], ecx
mov r8, rax
movzx r9d, word [rax + 0x18]
inc r9d
mov word [rax + 0x18], r9w
mov r9, r8
movzx r11d, word [r8 + 0x36]
inc r11d
mov word [r8 + 0x36], r11w
lea r8, [r9 + 0x34]
movzx r11d, word [r8]
lea r12d, [r11 + 1]
mov word [r8], r12w
mov r8, r9
shl r11, 3
add r11, qword [r9 + 0x40]
mov qword [r11], 0
lea r9, [r8 + 0x30]
or dword [r9], 0x8000
mov r9, rdi
mov r9, qword [r9 + 0x10]
lea r11, [r9 + r10*2]
movsx r11, word [r11]
lea r12d, [r10 + 1]
movsxd r12, r12d
lea r9, [r9 + r12*2]
movsx r9, word [r9]
sub r11d, r9d
lea r9, [r8 + 0x16]
movsx r12, word [r9]
movsx r11, r11w
sub r12d, r11d
mov word [r9], r12w
lea r9d, [r11 + 5]
movsx r9, r9w
movzx r11d, word [rsp + 0x130]
movsx r11, r11w
lea esi, [r9 + r11]
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x118]
mov rcx, rdx
call sym.modernc.org_sqlite_lib._whereLoopAddBtreeIndex
mov rdx, qword [rsp + 0x98]
mov r8, rdx
movzx r9d, word [rsp + 0x36]
mov word [rdx + 0x16], r9w
mov rdx, r8
movzx r9d, word [rsp + 0x3a]
mov word [r8 + 0x18], r9w
mov r8, rdx
movzx r9d, word [rsp + 0x34]
mov word [rdx + 0x36], r9w
mov edx, dword [rsp + 0x6c]
mov dword [r8 + 0x30], edx
mov ecx, dword [rsp + 0x44]
mov dword [rsp + 0x48], ecx
mov byte [rsp + 0x31], 0
mov rdx, qword [rsp + 0xf8]
mov rax, qword [rdx]
nop
call rax
mov eax, dword [rsp + 0x48]
add rsp, 0x100
pop rbp
ret
mov dword [rsp + 0x50], r10d
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xc0], rsi
mov r13, rdi
mov edi, dword [rdi + 0x30]
bt edi, 1
jb 0x65262e
lea rdi, [r13 + 0x18]
mov qword [rsp + 0x78], rdi
movzx ebx, word [rdi]
inc ebx
mov word [rdi], bx
mov rbx, r8
movsx r8, word [r8 + 0x10]
test r8d, r8d
jg 0x6522fa
mov rdi, rcx
movzx r12d, word [rsp + 0x3a]
shl r12, 1
add r12, qword [rcx + 8]
movsx r12, word [r12]
test r12d, r12d
jl 0x6522f1
lea r9, [r13 + 0x16]
mov r12, r9
movsx r15, word [r9]
add r8d, r15d
mov word [r9], r8w
movsx r8, word [r12]
sub r8d, r10d
mov word [r12], r8w
mov rsi, r13
movzx edi, word [rsp + 0x3c]
movzx r11d, word [rsp + 0x130]
mov r12, qword [rsp + 0x128]
mov r15, qword [rsp + 0xa8]
jmp 0x65268c
mov rcx, rdi
movzx r12d, word [rsp + 0x3c]
mov r8, qword [rsp + 0x78]
mov edi, r12d
mov r12, qword [rsp + 0xb0]
add r12, 0x70
mov qword [rsp + 0xb8], r12
movzx r11d, word [rsp + 0x130]
movsx rsi, r11w
movzx r8d, word [r8]
mov qword [r12], 0
test esi, esi
jne 0x6525b2
mov r12, rcx
cmp dword [rcx + 0x68], 0
nop
je 0x6525a5
mov rsi, r13
movzx r13d, word [r13 + 0x18]
cmp dword [rcx + 0x70], r13d
jl 0x65259b
test r15d, r15d
je 0x652375
mov r13, rbx
mov r15, qword [rbx]
mov r15d, dword [r15 + 4]
bt r15d, 0xc
jb 0x652591
mov rbx, r13
mov r13, qword [rsp + 0xa8]
mov r15, r13
mov r13d, dword [r13 + 0x60]
bt r13d, 0xb
jb 0x6525c0
mov dword [rsp + 0x64], r8d
mov rcx, qword [rbx]
nop word [rax + rax]
test r9d, 0x182
je 0x6523d4
mov rdi, qword [rcx + 0x18]
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x118]
mov rsi, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._whereEqualScanEst
jmp 0x652405
lea rdx, [rcx + 0x20]
mov rdi, qword [rdx]
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x118]
mov rsi, qword [rsp + 0xb8]
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._whereInScanEst
cmp eax, 0xc
mov r8d, 0
cmove eax, r8d
test eax, eax
jne 0x652568
mov rdx, qword [rsp + 0xb8]
mov rbx, qword [rdx]
test rbx, rbx
jne 0x652456
mov rcx, qword [rsp + 0x98]
mov edx, dword [rsp + 0x64]
mov rsi, qword [rsp + 0x118]
mov r9, qword [rsp + 0x128]
movzx r11d, word [rsp + 0x36]
mov r12d, dword [rsp + 0x50]
jmp 0x65252d
mov rax, qword [rsp + 0x110]
nop
call sym.modernc.org_sqlite_lib._sqlite3LogEst
mov rcx, qword [rsp + 0x98]
mov rdx, rcx
mov word [rdx + 0x16], ax
mov edx, dword [rsp + 0x64]
cmp edx, 1
jne 0x6524ed
mov rsi, rcx
movsx rsi, word [rsi + 0x16]
add esi, 0xa
mov r8, qword [rsp + 0x128]
mov r9, r8
mov r8, qword [r8 + 0x10]
movsx r8, word [r8]
nop dword [rax + rax]
cmp r8d, esi
jge 0x6524f5
mov rsi, qword [rsp + 0xd0]
lea r8, [rsi + 0x12]
movzx r10d, word [r8]
or r10d, 0x4000
mov word [r8], r10w
movzx esi, word [rsi + 0x12]
bt esi, 0xd
jae 0x6524e3
mov rsi, qword [rsp + 0x118]
lea r8, [rsi + 0x2d]
movzx r10d, byte [r8]
or r10d, 4
mov byte [r8], r10b
jmp 0x6524fd
mov rsi, qword [rsp + 0x118]
jmp 0x6524fd
mov r9, qword [rsp + 0x128]
mov rsi, qword [rsp + 0x118]
mov r8, rcx
movsx r10, word [r8 + 0x16]
movzx r11d, word [rsp + 0x36]
movsx r12, r11w
cmp r10d, r12d
jle 0x652519
mov word [r8 + 0x16], r11w
lea r8, [rcx + 0x16]
movsx r10, word [r8]
mov r12d, dword [rsp + 0x50]
sub r10d, r12d
mov word [r8], r10w
movzx eax, word [rsp + 0x40]
mov rsi, rcx
movzx edi, word [rsp + 0x3c]
mov r8d, edx
mov r9d, dword [rsp + 0x68]
mov r10d, r12d
movzx r11d, word [rsp + 0x130]
mov r12, qword [rsp + 0x128]
mov r15, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x120]
jmp 0x6525c0
mov rdx, qword [rsp + 0x120]
mov r9, qword [rsp + 0x98]
movzx r10d, word [rsp + 0x3a]
movzx r11d, word [rsp + 0x38]
movzx r12d, word [rsp + 0x3c]
mov ecx, eax
jmp 0x651f96
mov r15, qword [rsp + 0xa8]
jmp 0x6525c0
mov r15, qword [rsp + 0xa8]
jmp 0x6525c0
mov rsi, r13
mov r15, qword [rsp + 0xa8]
jmp 0x6525c0
mov rsi, r13
mov r12, rcx
mov r15, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb8]
cmp qword [r13], 0
jne 0x65268c
lea r13, [rsi + 0x16]
mov rcx, r13
movsx rbx, word [r13]
mov r12, qword [r12 + 0x10]
movsxd r15, r8d
lea r15, [r12 + r15*2]
movsx r15, word [r15]
dec r8d
movsxd r8, r8d
lea r8, [r12 + r8*2]
movsx r8, word [r8]
sub r15d, r8d
lea r8d, [r15 + rbx]
mov word [r13], r8w
bt r9d, 8
jae 0x65261c
movsx r8, word [rcx]
add r8d, 0xa
mov word [rcx], r8w
mov r12, qword [rsp + 0x128]
mov r15, qword [rsp + 0xa8]
jmp 0x65268c
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x118]
mov rdi, rsi
mov rsi, rbx
mov r8, r13
mov rbx, qword [rsp + 0xe0]
call sym.modernc.org_sqlite_lib._whereRangeScanEst
movzx eax, word [rsp + 0x40]
mov rdx, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x98]
movzx edi, word [rsp + 0x3c]
mov r10d, dword [rsp + 0x50]
movzx r11d, word [rsp + 0x130]
mov r12, qword [rsp + 0x128]
mov r15, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xd8]
mov r9, r8
movzx r8d, word [r8]
and r8d, 3
nop
cmp r8d, 3
jne 0x6526b3
mov rcx, rsi
movsx rsi, word [rsi + 0x16]
add esi, 0x10
jmp 0x652717
mov r8, r12
movsx r12, word [r12 + 0x5c]
mov r13d, r12d
shl r12d, 4
mov rdx, qword [rdx + 0x20]
movsx rdx, word [rdx + 0x3c]
sub r12d, r13d
test edx, edx
je 0x652a72
mov r13, rsi
movsx rbx, word [rsi + 0x16]
mov esi, eax
mov eax, r12d
mov r15d, edx
cmp r15d, 0xffffffff
jne 0x6526f3
neg eax
xor edx, edx
jmp 0x6526f7
cdq
idiv r15d
lea edx, [rax + rbx]
lea edx, [rdx + 1]
mov eax, esi
mov rcx, r13
mov r12, r8
mov r15, qword [rsp + 0xa8]
mov esi, edx
mov rdx, qword [rsp + 0x120]
movsx r8, ax
movsx r13, si
nop
cmp r13d, r8d
jg 0x65277b
lea esi, [r13 + 0x31]
cmp r8d, esi
jle 0x65273c
lea r13, str._n_n_t_t_b_b_a_a_a
mov esi, eax
jmp 0x6527c6
lea esi, [r13 + 0x1f]
cmp r8d, esi
jle 0x652752
lea esi, [r8 + 1]
lea r13, str._n_n_t_t_b_b_a_a_a
jmp 0x6527c6
mov esi, r8d
sub r8d, r13d
movsxd r8, r8d
nop dword [rax + rax]
cmp r8, 0x20
jae 0x652a65
lea r13, str._n_n_t_t_b_b_a_a_a
movzx r8d, byte [r8 + r13]
add esi, r8d
jmp 0x6527c6
lea ebx, [r8 + 0x31]
nop
cmp r13d, ebx
jle 0x65278e
lea r13, str._n_n_t_t_b_b_a_a_a
jmp 0x6527c6
lea esi, [r8 + 0x1f]
cmp r13d, esi
jle 0x6527a4
lea esi, [r13 + 1]
lea r13, str._n_n_t_t_b_b_a_a_a
jmp 0x6527c6
mov esi, r13d
sub r13d, r8d
movsxd r8, r13d
cmp r8, 0x20
jae 0x652a53
lea r13, str._n_n_t_t_b_b_a_a_a
movzx r8d, byte [r8 + r13]
add esi, r8d
mov r8, rcx
mov word [r8 + 0x14], si
mov rsi, rcx
mov r8d, dword [rsi + 0x30]
nop word [rax + rax]
nop
test r8d, 0x4000140
jne 0x652879
movzx r8d, word [rsi + 0x14]
movsx rbx, word [rsi + 0x16]
add ebx, 0x10
movsx rax, r8w
movsx r15, bx
cmp r15d, eax
jg 0x65283b
lea ebx, [r15 + 0x31]
cmp eax, ebx
jg 0x652874
lea r8d, [r15 + 0x1f]
cmp eax, r8d
jle 0x65281e
lea r8d, [rax + 1]
jmp 0x652874
mov r8d, eax
sub eax, r15d
movsxd rax, eax
cmp rax, 0x20
jae 0x652a49
movzx r15d, byte [rax + r13]
add r8d, r15d
jmp 0x652874
lea r8d, [rax + 0x31]
nop
cmp r15d, r8d
jle 0x65284a
mov r8d, ebx
jmp 0x652874
lea r8d, [rax + 0x1f]
cmp r15d, r8d
jle 0x652859
lea r8d, [r15 + 1]
jmp 0x652874
mov r8d, r15d
sub r15d, eax
movsxd rax, r15d
cmp rax, 0x20
jae 0x652a3f
movzx r15d, byte [rax + r13]
add r8d, r15d
mov word [rsi + 0x14], r8w
mov rdx, rcx
lea rsi, [rcx + 0x14]
movsx r8, word [rsi]
lea r9, [rcx + 0x16]
movsx r12, r11w
add r10d, r12d
mov dword [rsp + 0x68], r10d
add r8d, r10d
movzx edx, word [rdx + 0x16]
mov word [rsp + 0x42], dx
mov word [rsi], r8w
movsx rsi, word [r9]
add esi, r10d
mov word [r9], si
mov rsi, qword [rsp + 0x118]
mov rbx, qword [rsi + 8]
mov rax, qword [rsp + 0x110]
movzx edi, word [rsp + 0x3e]
call sym.modernc.org_sqlite_lib._whereLoopOutputAdjust
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x98]
call sym.modernc.org_sqlite_lib._whereLoopInsert
mov rdx, qword [rsp + 0x98]
mov rsi, rdx
mov r8d, dword [rdx + 0x30]
bt r8d, 1
nop
jae 0x65290f
movzx r8d, word [rsp + 0x36]
mov word [rdx + 0x16], r8w
jmp 0x652920
movzx r8d, word [rsp + 0x42]
mov word [rdx + 0x16], r8w
movzx r8d, word [rsp + 0x36]
mov rdx, rsi
mov r9d, dword [rsi + 0x30]
bt r9d, 4
jb 0x652a02
movzx r9d, word [rsi + 0x18]
mov rdi, qword [rsp + 0x128]
mov r10, rdi
movzx r11d, word [r10 + 0x60]
cmp r9d, r11d
jge 0x6529f6
movzx r10d, word [r10 + 0x5e]
cmp r9d, r10d
jge 0x652964
mov r11, qword [rsp + 0xd8]
jmp 0x65298a
mov r10, qword [rsp + 0xd8]
mov r11, r10
movzx r10d, word [r10]
and r10d, 3
nop word [rax + rax]
cmp r10d, 2
je 0x652a12
mov dword [rsp + 0x60], eax
cmp r9d, 3
jle 0x6529b1
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0xe0]
call sym.modernc.org_sqlite_lib._sqlite3ProgressCheck
mov rdi, qword [rsp + 0x128]
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x120]
mov esi, dword [rsp + 0x68]
call sym.modernc.org_sqlite_lib._whereLoopAddBtreeIndex
mov eax, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x128]
movzx r8d, word [rsp + 0x36]
mov r11, qword [rsp + 0xd8]
jmp 0x652a12
mov r11, qword [rsp + 0xd8]
nop
jmp 0x652a12
mov rdi, qword [rsp + 0x128]
mov r11, qword [rsp + 0xd8]
mov word [rdx + 0x16], r8w
mov rdx, qword [rsp + 0x118]
mov r12d, dword [rsp + 0x4c]
mov dword [rdx + 0x28], r12d
mov ecx, eax
mov rbx, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xc0]
jmp 0x6517cf
mov ecx, 0x20
call sym.runtime.panicIndex
mov ecx, 0x20
call sym.runtime.panicIndex
mov rax, r8
mov ecx, 0x20
nop dword [rax + rax]
call sym.runtime.panicIndex
mov rax, r8
mov ecx, 0x20
call sym.runtime.panicIndex
call sym.runtime.panicdivide
mov r8d, r12d
mov r12, qword [rsp + 0xd8]
movzx r12d, word [r12]
and r12d, 0x80
shr r12w, 7
movzx r12d, r12w
nop word [rax + rax]
test r12d, r12d
je 0x652bcb
movsx r12, ax
cmp r12d, 0xa
jl 0x652bcb
mov dword [rsp + 0x5c], r12d
mov dword [rsp + 0x58], ecx
mov rdx, qword [rsp + 0x128]
shl r10, 1
add r10, qword [rdx + 0x10]
movsx rdx, word [r10]
mov dword [rsp + 0x54], edx
mov rax, qword [rsp + 0x110]
mov ebx, ecx
call sym.modernc.org_sqlite_lib._estLog
movsx rcx, ax
mov edx, dword [rsp + 0x54]
add ecx, edx
mov edx, dword [rsp + 0x5c]
mov esi, dword [rsp + 0x58]
add edx, esi
sub ecx, edx
add ecx, 0xa
movsx rcx, cx
test ecx, ecx
jl 0x652b22
mov rcx, qword [rsp + 0x98]
movzx edx, word [rsp + 0x130]
mov r10, qword [rsp + 0xa8]
nop
jmp 0x652b5d
movzx edx, word [rsp + 0x130]
movsx r9, dx
cmp r9d, 2
jge 0x652bac
mov r9, qword [rsp + 0xa8]
mov r10, r9
mov r9d, dword [r9 + 0x60]
bt r9d, 0x11
jb 0x652bb4
mov rcx, qword [rsp + 0x98]
lea r9, [rcx + 0x30]
or dword [r9], 0x100000
movzx eax, word [rsp + 0x40]
mov ecx, esi
mov rdx, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
movzx r8d, word [rsp + 0x3c]
mov r9d, dword [rsp + 0x68]
movzx r10d, word [rsp + 0x3a]
mov r11, qword [rsp + 0x80]
mov r13, qword [rsp + 0xd0]
mov r15d, dword [rsp + 0x64]
jmp 0x652bcb
mov r10, qword [rsp + 0xa8]
xor ecx, ecx
mov rbx, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xa0]
jmp 0x6517cf
lea r12, [rdi + 0x30]
or dword [r12], 4
mov r8, r13
movzx r12d, word [rsp + 0x3c]
mov r10d, ecx
mov rcx, qword [rsp + 0x128]
jmp 0x65224f
inc ecx
mov r12, qword [rsp + 0x98]
movzx r12d, word [rsp + 0x3c]
mov dword [rsp + 0x50], edi
mov rdi, qword [rsp + 0x98]
movzx r12d, word [rdi + 0x34]
dec r12d
cmp ecx, r12d
jge 0x652c3a
movsxd r12, ecx
shl r12, 3
add r12, qword [rdi + 0x40]
mov r12, qword [r12]
test r12, r12
je 0x652c34
cmp qword [r12], r8
jne 0x652c34
xor edi, edi
jmp 0x652bed
mov edi, dword [rsp + 0x50]
jmp 0x652bed
mov rdi, qword [rsp + 0x98]
movzx r12d, word [rsp + 0x3c]
mov ecx, dword [rsp + 0x50]
jmp 0x652a77
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov word [rsp + 0x28], si
nop dword [rax]
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
movzx esi, word [rsp + 0x28]
nop
jmp sym.modernc.org_sqlite_lib._whereLoopAddBtreeIndex