Function at 0x140333f90
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, 0xd8
mov r14d, dword [r9 + 0x28]
mov eax, dword [rsp + 0x140]
mov rsi, rcx
mov r15, rdx
mov rbx, r9
test r14d, 0x2000
jne 0x1403340ed
test al, 0x20
jne 0x1403340ed
mov edi, r14d
mov r12, qword [rcx + 0x10]
mov rdx, qword [rcx]
and edi, 0x30
mov dword [rsp + 0x30], edi
jne 0x140334114
test r14d, 0x400
je 0x140334108
test al, 3
lea rax, [rsp + 0x60]
mov r10d, 0x100
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rax
movabs rax, 0x3b9aca0000000064
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0
mov word [rsp + 0x5c], r10w
jne 0x140334146
xor ebp, ebp
lea r10, str.SCAN
jmp 0x140334152
test r14d, 0x100
jne 0x140334320
and r14d, 0x400
jne 0x140334428
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140334084
mov eax, dword [rsp + 0x58]
mov byte [rbx + rax], 0
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x14033407f
test byte [rsp + 0x5d], 4
je 0x140334500
mov rbx, qword [rsp + 0x48]
mov r9d, dword [rsi + 0x120]
mov edx, dword [r12 + 0x90]
cmp edx, dword [r12 + 0x94]
jge 0x1403343e0
lea eax, [rdx + 1]
mov dword [r12 + 0x90], eax
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 4], edx
mov dword [rax + 8], r9d
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0xb2
mov r9d, 0xfffffff9
mov r8, rbx
mov rcx, r12
call sym.sqlite3VdbeChangeP4
nop
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp word [r9 + 0x18], 0
je 0x140333ff0
lea rax, [rsp + 0x60]
mov r9d, 0x100
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rax
movabs rax, 0x3b9aca0000000064
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0
mov word [rsp + 0x5c], r9w
mov ebp, 1
lea r10, str.SEARCH
movzx eax, r8b
lea r13, [rsp + 0x40]
movzx edi, r8b
mov r8, r10
lea rdx, [rax*8]
mov rcx, r13
sub rdx, rax
mov rax, rdx
lea rdx, str._s__S
shl rax, 4
lea r9, [r15 + rax + 8]
call dbg.sqlite3_str_appendf
test r14d, 0x500
jne 0x140334040
lea rax, [rdi*8]
mov r9, qword [rbx + 0x20]
sub rax, rdi
shl rax, 4
mov rax, qword [r15 + rax + 0x28]
test byte [rax + 0x40], 0x80
jne 0x1403342f8
lea r15, str.AUTOMATIC_PARTIAL_COVERING_INDEX
test r14d, 0x20000
jne 0x1403341db
lea r15, str.AUTOMATIC_COVERING_INDEX
test r14d, 0x4000
je 0x1403344e0
mov eax, dword [rsp + 0x58]
lea edx, [rax + 7]
cmp edx, dword [rsp + 0x50]
jae 0x140334400
add rax, qword [rsp + 0x48]
mov ecx, 0x474e
mov dword [rsp + 0x58], edx
mov dword [rax], 0x49535520
mov word [rax + 4], cx
mov byte [rax + 6], 0x20
mov r8, qword [r9]
mov rdx, r15
mov rcx, r13
call dbg.sqlite3_str_appendf
movzx edi, word [rbx + 0x18]
test di, di
jne 0x140334229
test byte [rbx + 0x28], 0x30
je 0x14033405a
mov eax, dword [rsp + 0x58]
mov r15, qword [rbx + 0x20]
movzx ebp, word [rbx + 0x2e]
lea edx, [rax + 2]
cmp edx, dword [rsp + 0x50]
jae 0x140334448
mov dword [rsp + 0x58], edx
add rax, qword [rsp + 0x48]
mov edx, 0x2820
mov word [rax], dx
test edi, edi
je 0x140334370
xor r14d, r14d
jmp 0x14033428c
cmp eax, ebp
lea rdx, [0x1407587dd]
mov r8, r9
mov rcx, r13
lea rax, str.ANY__s_
cmovl rdx, rax
add r14, 1
call dbg.sqlite3_str_appendf
cmp edi, r14d
jle 0x140334370
mov rax, qword [r15 + 8]
lea r9, [0x1407581a7]
movsx rdx, word [rax + r14*2]
mov rax, rdx
cmp dx, 0xfffe
je 0x1403342c0
lea r9, [0x1407581ae]
cmp edx, 0xffffffff
je 0x1403342c0
mov rdx, qword [r15 + 0x18]
shl rax, 5
add rax, qword [rdx + 8]
mov r9, qword [rax]
mov eax, r14d
test r14, r14
je 0x140334260
mov edx, dword [rsp + 0x58]
lea ecx, [rdx + 5]
cmp ecx, dword [rsp + 0x50]
jae 0x1403343b0
add rdx, qword [rsp + 0x48]
mov dword [rsp + 0x58], ecx
mov dword [rdx], 0x444e4120
mov byte [rdx + 4], 0x20
jmp 0x140334260
movzx eax, byte [r9 + 0x64]
and eax, 3
cmp al, 2
jne 0x1403341b7
test ebp, ebp
je 0x14033405a
lea r15, str.PRIMARY_KEY
jmp 0x1403341db
test r14b, 0xf
je 0x14033404d
lea r8, [0x1407587e4]
test r14b, 5
jne 0x14033435b
cmp dword [rsp + 0x30], 0x30
lea r8, str.___AND_rowid_
je 0x14033435b
and r14d, 0x20
lea r8, [0x1407587e2]
lea rax, [0x1407587f4]
cmove r8, rax
lea rdx, str._USING_INTEGER_PRIMARY_KEY__rowid_s__
mov rcx, r13
call dbg.sqlite3_str_appendf
jmp 0x14033405a
mov eax, dword [rbx + 0x28]
mov edx, edi
test al, 0x20
jne 0x1403344b0
test al, 0x10
jne 0x140334488
mov eax, dword [rsp + 0x58]
lea edx, [rax + 1]
cmp edx, dword [rsp + 0x50]
jae 0x140334468
add rax, qword [rsp + 0x48]
mov dword [rsp + 0x58], edx
mov byte [rax], 0x29
jmp 0x14033405a
mov r8d, 5
lea rdx, [0x1407581b4]
mov rcx, r13
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x3c], r14d
call dbg.enlargeAndAppend
mov r9, qword [rsp + 0x30]
mov eax, dword [rsp + 0x3c]
jmp 0x140334260
mov dword [rsp + 0x20], 0
mov r8d, edx
mov rcx, r12
mov edx, 0xb2
call dbg.growOp3
mov edx, eax
jmp 0x1403340db
mov r8d, 7
lea rdx, str._USING
mov rcx, r13
mov qword [rsp + 0x30], r9
call dbg.enlargeAndAppend
mov r9, qword [rsp + 0x30]
jmp 0x140334208
mov r9, qword [rbx + 0x20]
mov r8d, dword [rbx + 0x18]
lea rdx, str._VIRTUAL_TABLE_INDEX__d:_s
mov rcx, r13
call dbg.sqlite3_str_appendf
jmp 0x14033405a
mov r8d, 2
lea rdx, [0x140758804]
mov rcx, r13
call dbg.enlargeAndAppend
jmp 0x140334253
mov r8d, 1
lea rdx, [0x1407581be]
mov rcx, r13
call dbg.enlargeAndAppend
jmp 0x14033405a
lea rax, [0x1407587f4]
mov dword [rsp + 0x20], edx
mov r9d, edi
mov rdx, r15
mov qword [rsp + 0x28], rax
movzx r8d, word [rbx + 0x1c]
mov rcx, r13
call dbg.explainAppendTerm
jmp 0x140334385
lea rax, [0x1407587e2]
mov rdx, r15
mov r9d, edi
mov rcx, r13
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
movzx r8d, word [rbx + 0x1a]
call dbg.explainAppendTerm
mov eax, dword [rbx + 0x28]
mov edx, 1
jmp 0x14033437d
and r14d, 0x40
lea r15, str.COVERING_INDEX__s
lea rax, str.INDEX__s
cmove r15, rax
jmp 0x1403341db
mov rcx, r13
call dbg.strAccumFinishRealloc
mov rbx, rax
jmp 0x140334084