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

Disassembly:
lea r12, [rsp - 0x88]
cmp r12, qword [r14 + 0x10]
jbe 0x64584e
push rbp
mov rbp, rsp
sub rsp, 0x100
movq qword [rsp + 0xf8], xmm15
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x118], rbx
mov dword [rsp + 0x120], ecx
mov qword [rsp + 0x128], rdi
mov byte [rsp + 0x47], 0
mov ebx, pe_nt_image_headers64
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0xc0], rax
lea rcx, [sym.modernc.org_sqlite_lib._sqlite3WhereRightJoinLoop.deferwrap1]
mov qword [rsp + 0xd8], rcx
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0xe0], rcx
lea rdx, [rsp + 0xd8]
mov qword [rsp + 0xf8], rdx
mov byte [rsp + 0x47], 1
mov rdx, qword [rsp + 0x118]
mov rdi, qword [rdx]
mov qword [rsp + 0xa8], rdi
mov r9, qword [rsp + 0x128]
movzx r11d, byte [r9 + 0x38]
imul r11, r11, 0x68
add r11, qword [rdx + 8]
lea rdx, [r11 + 8]
mov qword [rsp + 0x78], rdx
lea r11, [rax + 0x78]
mov rdi, qword [rdi + 0x10]
mov qword [rsp + 0x68], rdi
mov r12, qword [r9 + 0x30]
mov qword [rsp + 0x98], r12
mov r9, qword [r9 + 0x58]
mov qword [rsp + 0xb0], r9
movups xmmword [rsp + 0xe8], xmm15
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx]
mov qword [rsp + 0xd0], rdx
lea rdx, [0x00728cc0]
mov qword [rsp + 0xe8], rdx
lea rdx, [rsp + 0xd0]
mov qword [rsp + 0xf0], rdx
lea rbx, [rsp + 0xe8]
mov rax, r11
mov ecx, 1
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rdi, qword [0x00a30e10]
add rdi, 0x5cd0
mov rbx, qword [rsp + 0xa8]
mov ecx, 1
mov rsi, rax
mov rax, qword [rsp + 0x110]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeExplain
xor eax, eax
xor ecx, ecx
jmp 0x6452b9
mov eax, dword [rsp + 0x50]
inc eax
mov rcx, qword [rsp + 0xb8]
mov edx, dword [rsp + 0x120]
cmp edx, eax
jle 0x6453ca
mov dword [rsp + 0x50], eax
mov r9, qword [rsp + 0x118]
mov r10, r9
movsxd r11, eax
imul r11, r11, 0x68
lea r11, [r10 + r11]
lea r11, [r11 + 0x358]
mov qword [rsp + 0xc8], r11
mov r12, r11
movzx r13d, byte [r11 + 0x38]
imul r13, r13, 0x68
add r13, qword [r9 + 8]
mov r9, qword [r11 + 0x58]
mov r9, qword [r9 + 8]
lea r11, [r13 + 0x48]
movzx r11d, word [r11]
and r11d, 0x20
shr r11w, 5
movzx r11d, r11w
or rcx, r9
mov qword [rsp + 0xb8], rcx
test r11d, r11d
je 0x64536d
lea rdx, [r13 + 8]
mov esi, dword [rdx + 0x38]
mov rdx, qword [rdx + 0x28]
mov rdx, qword [rdx + 0x20]
mov edx, dword [rdx]
lea r8d, [rsi + rdx]
lea r8d, [r8 - 1]
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x68]
mov ecx, 0x4b
xor edi, edi
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov r12, qword [rsp + 0xc8]
mov edi, dword [r12 + 4]
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x68]
mov ecx, 0x88
xor esi, esi
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rdx, qword [rsp + 0xc8]
mov edi, dword [rdx + 8]
nop dword [rax]
test edi, edi
je 0x6452ab
nop
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x68]
mov ecx, 0x88
xor esi, esi
mov r8d, esi
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
jmp 0x6452ab
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
movzx edx, byte [rdx + 0x3c]
bt edx, 6
jb 0x64540d
mov rdx, qword [rsp + 0xb0]
mov rdx, qword [rdx + 8]
mov r12, qword [rsp + 0x118]
add r12, 0x68
mov qword [rsp + 0x70], r12
or rcx, rdx
mov qword [rsp + 0xb8], rcx
xor eax, eax
xor edx, edx
jmp 0x64576d
xor eax, eax
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0xc0]
mov rdx, rcx
mov dword [rdx], 1
mov rdx, rcx
mov dword [rdx + 4], 1
lea rdx, [rcx + 8]
mov r12, rdx
test byte [rdx], al
mov r13, rbx
test byte [r13], al
cmp r13, rdx
je 0x645477
mov qword [rsp + 0xc8], r12
mov rax, rdx
mov rbx, r13
mov ecx, 0x68
call sym.runtime.memmove
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xc8]
mov byte [r12 + 0x3c], 0
mov rbx, qword [rsp + 0xa8]
mov rdx, rbx
movzx r12d, byte [rdx + 0x26]
inc r12d
mov byte [rdx + 0x26], r12b
mov rdi, rax
xor esi, esi
mov r8, rsi
mov r9, rsi
mov r10d, 0x1000
xor r11d, r11d
mov rax, qword [rsp + 0x110]
call sym.modernc.org_sqlite_lib._sqlite3WhereBegin
test rax, rax
je 0x645537
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x128]
mov r10, qword [rsp + 0xa8]
lea r11, [r10 + 0x38]
mov r12, r11
mov edi, dword [rdx + 4]
inc dword [r11]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rdx + 0x20]
mov rdx, rcx
mov r11d, dword [rdx + 0x30]
mov r13, rax
mov r8d, dword [r12]
mov dword [rsp + 0x48], r8d
nop
mov r15d, dword [rax + 0x30]
mov dword [rsp + 0x60], r15d
bt r11d, 7
jae 0x645516
nop
mov rdx, qword [rdx + 0x10]
jmp 0x6456ae
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x68]
mov esi, 0xffffffff
call sym.modernc.org_sqlite_lib._sqlite3ExprCodeGetColumnOfTable
mov eax, 1
jmp 0x6455cc
mov rcx, qword [rsp + 0x88]
nop
test rcx, rcx
je 0x64555d
mov rdx, qword [rsp + 0xa8]
mov rbx, qword [rdx]
mov rax, qword [rsp + 0x110]
call sym.modernc.org_sqlite_lib._sqlite3ExprDeleteNN
mov rax, qword [rsp + 0xa8]
mov rcx, rax
mov ebx, dword [rax + 0x140]
nop
test ebx, ebx
jne 0x645577
xor ebx, ebx
jmp 0x6455a2
mov rsi, qword [rax + 0x10]
mov rdi, qword [rsi]
cmp byte [rdi + 0x67], 0
je 0x64558d
lea rbx, [0x00a30f90]
jmp 0x64559f
movsxd rdi, ebx
lea rbx, [rdi + rdi*2]
shl rbx, 3
add rbx, qword [rsi + 0x88]
mov ebx, dword [rbx + 8]
mov dword [rax + 0x140], ebx
movzx eax, byte [rcx + 0x26]
dec eax
mov byte [rcx + 0x26], al
mov byte [rsp + 0x47], 0
mov rdx, qword [rsp + 0xf8]
mov rax, qword [rdx]
call rax
add rsp, 0x100
pop rbp
ret
mov dword [rsp + 0x4c], eax
mov rdx, qword [rsp + 0x98]
mov edi, dword [rdx + 4]
mov rbx, qword [rsp + 0x68]
mov ecx, 0x40
xor esi, esi
mov r8d, dword [rsp + 0x48]
mov r9d, eax
mov rax, qword [rsp + 0x110]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp4Int
mov dword [rsp + 0x54], eax
mov rdx, qword [rsp + 0x98]
mov edi, dword [rdx]
mov rbx, qword [rsp + 0x68]
mov ecx, 0x1d
mov esi, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x4c]
mov rax, qword [rsp + 0x110]
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp4Int
mov rbx, qword [rsp + 0x68]
mov rdx, rbx
mov r10, qword [rdx]
nop
cmp byte [r10 + 0x67], 0
je 0x64564b
lea r9, [0x00a30f90]
jmp 0x645662
mov r10d, dword [rsp + 0x54]
movsxd r10, r10d
lea r9, [r10 + r10*2]
shl r9, 3
add r9, qword [rdx + 0x88]
mov edx, dword [rdx + 0x90]
mov dword [r9 + 8], edx
mov rdx, qword [rsp + 0x98]
mov edi, dword [rdx + 8]
mov esi, dword [rdx + 0xc]
mov rax, qword [rsp + 0x110]
mov ecx, 0xa
xor r8d, r8d
call sym.modernc.org_sqlite_lib._sqlite3VdbeAddOp3
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x90]
nop
call sym.modernc.org_sqlite_lib._sqlite3WhereEnd
jmp 0x645537
mov rdx, qword [rdx + 0x28]
test rdx, rdx
je 0x6456c6
lea r11, [rdx + 0x64]
movzx r11d, word [r11]
and r11d, 3
nop
cmp r11d, 2
jne 0x6456aa
mov dword [rsp + 0x5c], edi
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0xa0], rdx
mov r11, rdx
movzx edx, word [rdx + 0x5e]
mov dword [rsp + 0x64], edx
lea eax, [rdx + r8]
lea eax, [rax - 1]
mov dword [r12], eax
xor eax, eax
jmp 0x645757
mov dword [rsp + 0x58], eax
movsxd r9, eax
shl r9, 1
add r9, qword [r11 + 8]
movsx rsi, word [r9]
lea r9d, [rax + r8]
mov rbx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x110]
mov r8d, r9d
call sym.modernc.org_sqlite_lib._sqlite3ExprCodeGetColumnOfTable
mov eax, dword [rsp + 0x58]
inc eax
mov rcx, qword [rsp + 0x80]
mov edx, dword [rsp + 0x64]
mov edi, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x48]
mov r10, qword [rsp + 0xa8]
mov r11, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x90]
mov r15d, dword [rsp + 0x60]
cmp eax, edx
jl 0x6456f4
mov eax, edx
nop dword [rax]
jmp 0x6455cc
inc eax
mov rcx, rsi
mov r12, r13
mov r13, r12
cmp dword [r12 + 0x14], eax
jle 0x645834
movsxd r15, eax
imul r15, r15, 0x38
add r15, qword [r12 + 0x20]
movzx r12d, word [r15 + 0x12]
test r12d, 0x8002
je 0x6457ad
movzx r12d, word [r15 + 0x14]
nop word [rax + rax]
cmp r12d, 0x2000
jne 0x645834
mov r12, qword [r15 + 0x30]
mov rsi, rcx
not rcx
test r12, rcx
jne 0x645765
mov rcx, qword [r15]
mov r12, rcx
mov r12d, dword [r12 + 4]
test r12d, 3
jne 0x645765
mov qword [rsp + 0x88], rdx
mov dword [rsp + 0x50], eax
mov rdx, qword [rsp + 0xa8]
mov rbx, qword [rdx]
mov rax, qword [rsp + 0x110]
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3ExprDup
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x88]
mov rdi, rax
mov rax, qword [rsp + 0x110]
call sym.modernc.org_sqlite_lib._sqlite3ExprAnd
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xb8]
mov r13, qword [rsp + 0x70]
mov rdx, rax
mov eax, dword [rsp + 0x50]
jmp 0x645765
mov rax, rdx
jmp 0x64540f
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp sym.modernc.org_sqlite_lib._sqlite3WhereRightJoinLoop