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

Disassembly:
lea r12, [rsp - 0x50]
cmp r12, qword [r14 + 0x10]
jbe 0x655402
push rbp
mov rbp, rsp
sub rsp, 0xc8
movq qword [rsp + 0xc0], xmm15
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xf0], rdi
mov word [rsp + 0xf8], si
mov qword [rsp + 0x100], r8
mov word [rsp + 0x108], r9w
mov qword [rsp + 0x110], r10
mov qword [rsp + 0x118], r11
mov byte [rsp + 0x23], 0
mov dword [rsp + 0x28], 0
mov ebx, 0x10
nop
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x68], rax
lea rcx, [sym.modernc.org_sqlite_lib._whereLoopAddVirtualOne.deferwrap1]
mov qword [rsp + 0xa0], rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0xa8], rcx
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0xc0], rdx
mov byte [rsp + 0x23], 1
mov rdx, qword [rsp + 0x100]
mov rsi, rdx
mov rdi, qword [rsp + 0xe0]
mov r9, qword [rdi + 0x10]
mov r10, qword [rdi]
mov r11, r9
movzx r9d, byte [r9 + 0x10]
imul r9, r9, 0x68
mov r12, qword [rsp + 0x110]
mov r13, r12
lea r15, [rsi + 8]
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x30], rdi
mov rbx, qword [rdx + 0x20]
mov r8, qword [r10]
add r9, qword [r10 + 8]
mov edx, dword [rdx]
mov dword [rsp + 0x2c], edx
mov dword [r12], 0
mov r10, r11
mov r12, qword [rsp + 0xe8]
mov qword [r11], r12
mov r11, r15
mov r12, qword [r15]
mov r15, qword [rsp + 0xf0]
jmp 0x654c36
dec edx
add rdi, 0xc
mov r11, qword [rsp + 0x30]
mov r11, rax
mov r13, qword [rsp + 0x110]
mov r12, rdi
mov rax, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
test edx, edx
jle 0x654ce5
mov qword [rsp + 0x50], r12
movsxd rax, dword [r12 + 8]
imul rax, rax, 0x38
add rax, qword [rdi + 0x20]
mov byte [r12 + 5], 0
mov r12, qword [rax + 0x28]
mov rdi, r12
and r12, r15
cmp rdi, r12
jne 0x654cc3
movzx r12d, word [rax + 0x14]
movzx r13d, word [rsp + 0xf8]
movzx edi, r13w
test edi, r12d
jne 0x654cb9
mov r12, qword [rsp + 0x118]
test r12, r12
jne 0x654ca4
movzx eax, byte [rax + 0x17]
cmp eax, 0x49
jl 0x654c9a
cmp eax, 0x4a
setle al
jmp 0x654c9c
xor eax, eax
movzx eax, al
nop
test eax, eax
jne 0x654cd4
mov rax, r11
mov r11, qword [rsp + 0x50]
mov rdi, r11
mov byte [r11 + 5], 1
jmp 0x654c13
mov r12, qword [rsp + 0x118]
jmp 0x654cd4
mov r12, qword [rsp + 0x118]
movzx r13d, word [rsp + 0xf8]
mov rax, r11
mov rdi, qword [rsp + 0x50]
nop dword [rax]
jmp 0x654c13
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x88], r10
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x80], r11
lea rdx, [rsi + 0x60]
mov qword [rsp + 0x58], rdx
lea r8, [r9 + 8]
mov qword [rsp + 0x40], r8
mov r9d, dword [rsp + 0x2c]
movsxd rdi, r9d
shl rdi, 3
mov qword [rsp + 0x78], rdi
mov rax, rcx
xor ecx, ecx
call sym.modernc.org_libc.Xmemset
mov rdi, qword [rsp + 0x100]
mov rdx, rdi
mov qword [rdx + 0x30], 0
mov rdx, rdi
mov dword [rdx + 0x28], 0
mov rdx, rdi
mov dword [rdx + 0x3c], 0
mov rdx, rdi
movsd xmm0, qword [0x007cb070]
movsd qword [rdx + 0x40], xmm0
mov rdx, rdi
mov qword [rdx + 0x48], 0x19
mov rdx, rdi
mov dword [rdx + 0x50], 0
mov rdx, rdi
mov rsi, qword [rsp + 0x40]
mov r8, rsi
mov rsi, qword [rsi + 0x50]
mov qword [rdx + 0x58], rsi
mov rdx, qword [rsp + 0x58]
mov dword [rdx + 0x18], 0
mov rcx, qword [r8 + 0x20]
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x48]
call sym.modernc.org_sqlite_lib._vtabBestIndex
test eax, eax
jne 0x654e2d
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx + 0x40]
mov rax, qword [rsp + 0xd8]
xor ecx, ecx
mov rdi, qword [rsp + 0x78]
call sym.modernc.org_libc.Xmemset
mov rbx, qword [rsp + 0x88]
lea rdx, [rbx + 0x18]
mov qword [rsp + 0x70], rdx
mov rax, qword [rsp + 0xd8]
xor ecx, ecx
mov edi, 0x18
mov rbx, rdx
call sym.modernc.org_libc.Xmemset
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx]
mov rsi, qword [rsp + 0x88]
movzx r8d, word [rsp + 0x108]
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x30]
mov r11d, dword [rsp + 0x2c]
xor eax, eax
mov ecx, 0xffffffff
jmp 0x654e82
cmp eax, 0x13
jne 0x654e59
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x23], 0
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x28]
add rsp, 0xc8
pop rbp
ret
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x23], 0
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x28]
add rsp, 0xc8
pop rbp
ret
inc eax
add rdx, 0xc
cmp eax, r11d
jge 0x655111
movsxd r12, eax
lea r12, [r9 + r12*8]
mov r13, r12
mov r12d, dword [r12]
dec r12d
nop dword [rax]
test r12d, r12d
jl 0x654e7c
cmp r11d, r12d
jle 0x65506d
mov r15, rdx
mov ebx, dword [rdx + 8]
test ebx, ebx
jl 0x65506d
nop dword [rax]
cmp dword [r10 + 0x14], ebx
jle 0x65506d
mov rdi, qword [rsi + 0x40]
movsxd r11, r12d
lea rdi, [rdi + r11*8]
cmp qword [rdi], 0
jne 0x65506d
movzx edx, byte [rdx + 5]
test edx, edx
je 0x65506d
movsxd rdx, ebx
imul rdx, rdx, 0x38
add rdx, qword [r10 + 0x20]
mov r10, qword [rsi]
mov rbx, rdx
or r10, qword [rdx + 0x28]
mov qword [rsi], r10
mov rsi, qword [rsp + 0x88]
mov r10, rsi
mov rsi, qword [rsi + 0x40]
lea rsi, [rsi + r11*8]
mov qword [rsi], rbx
cmp ecx, r12d
cmovl ecx, r12d
cmp byte [r13 + 4], 0
je 0x654f82
cmp eax, 0x10
jge 0x654f5c
movzx esi, r8w
bt esi, eax
jb 0x654f5c
lea rsi, [r10 + 0x1e]
movzx r11d, word [rsi]
mov edx, ecx
mov ecx, r12d
mov r13d, 1
shl r13d, cl
cmp ecx, 0x20
sbb edi, edi
and r13d, edi
or r11d, r13d
mov word [rsi], r11w
jmp 0x654f61
mov edx, ecx
mov ecx, r12d
mov rsi, rbx
movzx r11d, byte [rbx + 0x17]
cmp r11d, 0x4a
jne 0x654f8a
lea r11, [r10 + 0x1c]
movzx r13d, byte [r11]
or r13d, 2
mov byte [r11], r13b
nop
jmp 0x654f8a
mov edx, ecx
mov rsi, rbx
mov ecx, r12d
cmp eax, 0x1f
jg 0x654f9c
mov ecx, eax
mov r11d, 1
shl r11d, cl
jmp 0x654fa1
mov ecx, eax
xor r11d, r11d
mov r13, qword [rsp + 0x58]
mov rbx, r13
mov r13d, dword [r13 + 0x18]
test r13d, r11d
je 0x654fe7
mov r11, qword [rsp + 0x70]
mov ecx, r12d
mov r13d, 1
shl r13d, cl
cmp ecx, 0x20
sbb r12d, r12d
and r13d, r12d
or dword [r11 + 0x10], r13d
mov ecx, eax
mov r11, rsi
mov r12, qword [rsp + 0x100]
mov r13, qword [rsp + 0x110]
jmp 0x655032
mov r11, rsi
movzx esi, word [rsi + 0x14]
bt esi, 0
jae 0x655022
mov rsi, qword [rsp + 0x100]
mov r12, rsi
mov dword [rsi + 0x3c], 0
lea rsi, [r12 + 0x50]
and dword [rsi], 0xfffffffe
mov rsi, qword [rsp + 0x110]
mov r13, rsi
mov dword [rsi], 1
nop
jmp 0x655032
mov r12, qword [rsp + 0x100]
mov r13, qword [rsp + 0x110]
movzx esi, byte [r11 + 0x17]
cmp esi, 0x49
jl 0x655045
cmp esi, 0x4a
setle sil
jmp 0x655047
xor esi, esi
movzx esi, sil
test esi, esi
je 0x65533a
mov rsi, r13
cmp dword [r13], 0
nop dword [rax + rax]
jne 0x655351
xor edi, edi
jmp 0x6553c0
movups xmmword [rsp + 0xb0], xmm15
mov rax, qword [rsp + 0x68]
add rax, 8
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx]
mov qword [rsp + 0x98], rdx
lea rdx, [0x00728cc0]
mov qword [rsp + 0xb0], rdx
lea rdx, [rsp + 0x98]
mov qword [rsp + 0xb8], rdx
lea rbx, [rsp + 0xb0]
mov ecx, 1
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x5d5e
mov rbx, qword [rsp + 0x48]
mov rdi, rax
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._sqlite3ErrorMsg
mov dword [rsp + 0x28], 1
mov byte [rsp + 0x23], 0
mov rdx, qword [rsp + 0xc0]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x28]
add rsp, 0xc8
pop rbp
ret
mov rdx, rsi
lea r8d, [rcx + 1]
mov word [rsi + 0x34], r8w
xor eax, eax
nop
jmp 0x655127
inc eax
mov rdx, rsi
cmp eax, ecx
jg 0x6551ec
mov rsi, rdx
movsxd r8, eax
shl r8, 3
add r8, qword [rdx + 0x40]
cmp qword [r8], 0
jne 0x655122
movups xmmword [rsp + 0xb0], xmm15
mov rax, qword [rsp + 0x68]
add rax, 8
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx]
mov qword [rsp + 0x90], rdx
lea rdx, [0x00728cc0]
mov qword [rsp + 0xb0], rdx
lea rdx, [rsp + 0x90]
mov qword [rsp + 0xb8], rdx
lea rbx, [rsp + 0xb0]
mov ecx, 1
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x5d5e
mov rbx, qword [rsp + 0x48]
mov rdi, rax
mov rax, qword [rsp + 0xd8]
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._sqlite3ErrorMsg
mov dword [rsp + 0x28], 1
mov byte [rsp + 0x23], 0
mov rdx, qword [rsp + 0xc0]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x28]
add rsp, 0xc8
pop rbp
ret
mov rcx, qword [rsp + 0x70]
mov rbx, rcx
mov rsi, qword [rsp + 0x100]
mov rdi, rsi
mov esi, dword [rsi + 0x28]
mov dword [rcx], esi
lea rcx, [rdx + 0x1c]
mov qword [rsp + 0x60], rcx
mov rsi, rdi
mov edi, dword [rdi + 0x38]
movzx r9d, byte [rcx]
and r9d, 0xfffffffe
and edi, 1
or edi, r9d
mov byte [rcx], dil
mov rcx, rsi
mov dword [rsi + 0x38], 0
mov rsi, rbx
mov rdi, rcx
mov rcx, qword [rcx + 0x30]
mov qword [rbx + 8], rcx
mov rcx, rdi
cmp dword [rdi + 0x3c], 0
je 0x65524a
mov ebx, dword [rdi + 0x10]
jmp 0x65524c
xor ebx, ebx
mov byte [rsi + 5], bl
mov word [rdx + 0x12], 0
movsd xmm0, qword [rcx + 0x40]
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._sqlite3LogEstFromDouble
mov rcx, qword [rsp + 0x88]
mov word [rcx + 0x14], ax
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x48]
mov rax, qword [rsp + 0xd8]
mov rbx, rcx
call sym.modernc.org_sqlite_lib._sqlite3LogEst
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
mov word [rdx + 0x16], ax
mov rdx, qword [rsp + 0x100]
mov edx, dword [rdx + 0x50]
bt edx, 0
jae 0x6552bb
lea rdx, [rcx + 0x30]
or dword [rdx], 0x1000
jmp 0x6552c5
lea rdx, [rcx + 0x30]
and dword [rdx], 0xffffefff
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe0]
call sym.modernc.org_sqlite_lib._whereLoopInsert
mov rdx, qword [rsp + 0x60]
movzx edx, byte [rdx]
bt edx, 0
jae 0x655317
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 8]
mov rax, qword [rsp + 0xd8]
nop dword [rax]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov rcx, qword [rsp + 0x60]
movzx edx, byte [rcx]
and edx, 0xfffffffe
nop
mov byte [rcx], dl
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x23], 0
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x28]
add rsp, 0xc8
pop rbp
ret
mov rsi, r10
mov r10, qword [rsp + 0x30]
mov r11d, dword [rsp + 0x2c]
mov ecx, edx
mov rdx, r15
jmp 0x654e7c
cmp dword [r12 + 0x38], 0
je 0x655385
mov rbx, qword [r12 + 0x30]
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib.Xsqlite3_free
mov rcx, qword [rsp + 0x100]
mov rdx, rcx
mov qword [rcx + 0x30], 0
mov dword [rdx + 0x38], 0
mov rax, qword [rsp + 0x118]
mov dword [rax], 1
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x23], 0
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x28]
add rsp, 0xc8
pop rbp
ret
inc edi
nop dword [rax]
cmp edi, eax
jge 0x6553d5
movsxd r11, edi
lea r11, [r9 + r11*8]
cmp dword [r11], 0
jg 0x6553ba
xor edi, edi
jmp 0x6553e0
mov edi, 1
nop word [rax + rax]
test edi, edi
je 0x655351
mov r13, rsi
jmp 0x65533a
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
mov qword [rsp + 0x30], r8
mov word [rsp + 0x38], r9w
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], r11
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]
mov r8, qword [rsp + 0x30]
movzx r9d, word [rsp + 0x38]
mov r10, qword [rsp + 0x40]
mov r11, qword [rsp + 0x48]
jmp sym.modernc.org_sqlite_lib._whereLoopAddVirtualOne