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

Disassembly:
lea r12, [rsp - 0x98]
cmp r12, qword [r14 + 0x10]
jbe 0x616ae5
push rbp
mov rbp, rsp
sub rsp, 0x110
movq qword [rsp + 0x108], xmm15
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], rbx
mov qword [rsp + 0x130], rcx
mov byte [rsp + 0x3b], 0
mov dword [rsp + 0x40], 0
mov ebx, 0x20
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0xa8], rax
lea rcx, [sym.modernc.org_sqlite_lib._sqlite3ProcessJoin.deferwrap1]
mov qword [rsp + 0xe8], rcx
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0xf0], rcx
lea rdx, [rsp + 0xe8]
mov qword [rsp + 0x108], rdx
mov byte [rsp + 0x3b], 1
mov rdx, qword [rsp + 0x130]
mov rsi, rdx
mov rbx, qword [rdx + 0x28]
mov qword [rsp + 0x68], rbx
lea rdx, [rbx + 8]
mov qword [rsp + 0x80], rdx
lea rdi, [rbx + 0x70]
mov r8, qword [rsp + 0x128]
mov r9, rdx
xor r10d, r10d
jmp 0x616071
inc r10d
add rdi, 0x68
lea rdx, [r11 + 0x68]
mov r11, rbx
mov r11d, dword [r11]
dec r11d
nop word [rax + rax]
cmp r10d, r11d
jge 0x6162f6
mov r11, rdx
cmp qword [rdx + 0x20], 0
je 0x616066
mov r12, rdi
mov r13, qword [rdi + 0x20]
test r13, r13
jne 0x6160a4
mov rdi, r12
jmp 0x616066
mov qword [rsp + 0x70], r13
mov qword [rsp + 0xe0], r11
mov qword [rsp + 0xd8], r12
mov dword [rsp + 0x4c], r10d
movzx r15d, byte [rdi + 0x3c]
test r15d, 0x20
mov edi, 2
mov rdx, r11
mov r11d, 1
cmovne edi, r11d
mov dword [rsp + 0x3c], edi
bt r15d, 2
jae 0x61613e
lea r15, [r12 + 0x40]
mov qword [rsp + 0xd0], r15
movzx r15d, word [r15]
and r15d, 0x400
shr r15w, 0xa
movzx r15d, r15w
test r15d, r15d
jne 0x616272
lea r15, [r12 + 0x48]
mov qword [rsp + 0xc8], r15
cmp qword [r15], 0
jne 0x616272
xor r15d, r15d
xor r11d, r11d
mov qword [rsp + 0x60], r11
mov r11d, 1
jmp 0x616930
lea r15, [r12 + 0x40]
mov qword [rsp + 0xd0], r15
movzx r15d, word [r15]
and r15d, 0x400
shr r15w, 0xa
movzx r15d, r15w
nop
test r15d, r15d
je 0x616190
lea r15, [r12 + 0x48]
mov r15, qword [r15]
mov qword [rsp + 0x78], r15
mov r8, qword [r8]
mov qword [rsp + 0xa0], r8
xor r11d, r11d
mov dword [rsp + 0x44], r11d
mov r11d, 1
jmp 0x6163ac
lea r13, [r12 + 0x48]
mov r15, r13
mov r13, qword [r13]
nop dword [rax]
test r13, r13
je 0x616267
mov qword [rsp + 0xc8], r15
mov esi, dword [r12 + 0x44]
mov rax, rcx
mov rbx, r13
mov ecx, esi
nop
call sym.modernc.org_sqlite_lib._sqlite3SetJoinExpr
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rdx + 0x30]
mov rdx, qword [rsp + 0xc8]
mov rdi, qword [rdx]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
call sym.modernc.org_sqlite_lib._sqlite3ExprAnd
mov rdx, qword [rsp + 0x130]
mov rsi, rdx
mov qword [rdx + 0x30], rax
mov rdx, qword [rsp + 0xc8]
mov qword [rdx], 0
mov rdx, qword [rsp + 0xd0]
movzx r8d, word [rdx]
or r8d, 0x800
nop
mov word [rdx], r8w
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x120]
mov rdx, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x128]
mov r9, qword [rsp + 0x80]
mov r10d, dword [rsp + 0x4c]
mov r11d, 1
mov r12, qword [rsp + 0xd8]
mov rdi, r12
mov r11, rdx
jmp 0x616066
lea rdx, [0x00728c40]
mov qword [rsp + 0xf8], rdx
lea rdx, [0x007caab8]
mov qword [rsp + 0x100], rdx
add rax, 0x10
lea rbx, [rsp + 0xf8]
mov ecx, 1
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x4f98
mov rbx, qword [rsp + 0x128]
mov rdi, rax
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._sqlite3ErrorMsg
mov dword [rsp + 0x40], 1
mov byte [rsp + 0x3b], 0
mov rdx, qword [rsp + 0x108]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x40]
add rsp, 0x110
pop rbp
ret
mov dword [rsp + 0x40], 0
mov byte [rsp + 0x3b], 0
mov rdx, qword [rsp + 0x108]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x40]
add rsp, 0x110
pop rbp
ret
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rdx + 0x30]
mov rbx, qword [rsp + 0x128]
mov rdi, rax
mov rax, qword [rsp + 0x120]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3ExprAnd
mov rsi, qword [rsp + 0x130]
mov rdx, rsi
mov qword [rdx + 0x30], rax
mov edx, dword [rsp + 0x44]
inc edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x68]
mov edi, dword [rsp + 0x3c]
mov r8, qword [rsp + 0xa0]
mov r9, qword [rsp + 0x80]
mov r10d, dword [rsp + 0x4c]
mov r11d, 1
mov r12, qword [rsp + 0xd8]
mov r13, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
mov dword [rsp + 0x44], edx
mov rdx, qword [rsp + 0xe0]
mov r11d, dword [rsp + 0x44]
cmp dword [r15], r11d
jle 0x616681
movsxd rdx, r11d
shl rdx, 4
mov rsi, qword [rsp + 0x78]
lea rdx, [rdx + rsi]
lea rdx, [rdx + 8]
mov rdx, qword [rdx]
mov qword [rsp + 0x50], rdx
mov rax, rcx
mov rbx, r13
mov rcx, rdx
nop
call sym.modernc.org_sqlite_lib._sqlite3ColumnIndex
mov dword [rsp + 0x48], eax
test eax, eax
jge 0x6163f4
mov edx, 1
jmp 0x616448
mov r9, qword [rsp + 0xa8]
lea rdx, [r9 + 4]
mov r11, qword [rsp + 0xd0]
movzx r11d, word [r11]
and r11d, 0x1000
shr r11w, 0xc
movzx r10d, r11w
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x68]
xor ecx, ecx
mov edi, dword [rsp + 0x4c]
mov rsi, qword [rsp + 0x50]
mov r8, r9
mov r9, rdx
call sym.modernc.org_sqlite_lib._tableAndColumnIndex
test eax, eax
sete dl
mov eax, dword [rsp + 0x48]
test dl, dl
jne 0x6165dd
mov rdx, qword [rsp + 0xa8]
mov r8, rdx
mov edi, dword [rdx]
lea rdx, [r8 + 4]
mov qword [rsp + 0xc8], rdx
mov esi, dword [rdx]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x68]
call sym.modernc.org_sqlite_lib._sqlite3CreateColumnExpr
mov r8, qword [rsp + 0xa8]
mov rdx, r8
movsxd rdx, dword [rdx]
imul rdx, rdx, 0x68
mov rcx, qword [rsp + 0x68]
lea r9, [rdx + rcx]
lea r9, [r9 + 0x48]
movzx r9d, word [r9]
and r9d, 0x2000
shr r9w, 0xd
movzx r9d, r9w
lea rdx, [rdx + rcx]
lea rdx, [rdx + 8]
test r9d, r9d
je 0x6164f1
mov r9, qword [rsp + 0xc8]
mov r11, r9
movsxd r11, dword [r11]
mov rdx, qword [rdx + 0x28]
shl r11, 5
add r11, qword [rdx + 0x20]
lea rdx, [r11 + 0x1c]
movzx r11d, word [rdx]
or r11d, 0x40
mov word [rdx], r11w
jmp 0x6164f9
mov r9, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x80]
movzx edx, byte [rdx + 0x3c]
bt edx, 6
jae 0x616512
xor edx, edx
jmp 0x61669f
mov qword [rsp + 0x98], rax
mov edi, dword [rsp + 0x4c]
lea edx, [rdi + 1]
mov rbx, qword [rsp + 0xa0]
mov esi, dword [rsp + 0x48]
mov rax, qword [rsp + 0x120]
mov edi, edx
call sym.modernc.org_sqlite_lib._sqlite3CreateColumnExpr
mov rdx, qword [rsp + 0xd0]
movzx edx, word [rdx]
and edx, 0x2000
shr dx, 0xd
movzx edx, dx
nop
test edx, edx
je 0x616585
mov rdx, qword [rsp + 0xd8]
mov rdx, qword [rdx + 0x28]
mov r10d, dword [rsp + 0x48]
movsxd r10, r10d
shl r10, 5
add r10, qword [rdx + 0x20]
lea rdx, [r10 + 0x1c]
movzx r10d, word [rdx]
or r10d, 0x40
mov word [rdx], r10w
mov qword [rsp + 0x90], rax
mov rbx, qword [rsp + 0x128]
mov ecx, 0x35
mov rdi, qword [rsp + 0x98]
mov rsi, rax
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._sqlite3PExpr
test rax, rax
je 0x61631d
lea rdx, [rax + 4]
mov esi, dword [rsp + 0x3c]
or dword [rdx], esi
lea rdx, [rax + 0x34]
mov r8, qword [rsp + 0x90]
mov r8d, dword [r8 + 0x2c]
mov dword [rdx], r8d
jmp 0x61631d
movups xmmword [rsp + 0xf8], xmm15
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0xb8], rdx
lea rdx, [0x00728cc0]
mov qword [rsp + 0xf8], rdx
mov rax, qword [rsp + 0xa8]
add rax, 0x10
lea rdx, [rsp + 0xb8]
mov qword [rsp + 0x100], rdx
lea rbx, [rsp + 0xf8]
mov ecx, 1
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x4fca
mov rbx, qword [rsp + 0x128]
mov rdi, rax
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._sqlite3ErrorMsg
mov dword [rsp + 0x40], 1
mov byte [rsp + 0x3b], 0
mov rdx, qword [rsp + 0x108]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x40]
add rsp, 0x110
pop rbp
nop
ret
mov r8, qword [rsp + 0x128]
mov r11d, 1
jmp 0x616267
mov rcx, rbx
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], rdx
mov r11, r8
mov r11d, dword [r11]
inc r11d
mov r12, qword [rsp + 0xd0]
movzx r12d, word [r12]
and r12d, 0x1000
shr r12w, 0xc
movzx r10d, r12w
mov rbx, rcx
mov ecx, r11d
mov edi, dword [rsp + 0x4c]
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._tableAndColumnIndex
test eax, eax
je 0x6168bc
mov rax, qword [rsp + 0xa8]
mov rdx, rax
movsxd rdx, dword [rdx]
imul rdx, rdx, 0x68
mov rsi, qword [rsp + 0x68]
lea r8, [rdx + rsi]
lea r8, [r8 + 0x48]
movzx r8d, word [r8]
and r8d, 0x400
shr r8w, 0xa
movzx r8d, r8w
test r8d, r8d
jne 0x616738
mov edx, 1
jmp 0x616767
lea rdx, [rsi + rdx]
lea rdx, [rdx + 0x50]
mov rbx, qword [rdx]
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x50]
call sym.modernc.org_sqlite_lib._sqlite3IdListIndex
test eax, eax
setl dl
mov rax, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x68]
test dl, dl
jne 0x616845
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x98]
call sym.modernc.org_sqlite_lib._sqlite3ExprListAppend
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0xa8]
mov edi, dword [rdx]
mov rdx, qword [rsp + 0xc8]
mov edx, dword [rdx]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x120]
mov esi, edx
call sym.modernc.org_sqlite_lib._sqlite3CreateColumnExpr
mov r8, qword [rsp + 0xa8]
mov rdx, r8
movsxd rdx, dword [rdx]
imul rdx, rdx, 0x68
mov rbx, qword [rsp + 0x68]
lea rsi, [rdx + rbx]
lea rsi, [rsi + 0x48]
movzx esi, word [rsi]
and esi, 0x2000
shr si, 0xd
movzx esi, si
lea rdx, [rdx + rbx]
lea rdx, [rdx + 8]
test esi, esi
je 0x616836
mov r9, qword [rsp + 0xc8]
mov r11, r9
movsxd r11, dword [r11]
mov rdx, qword [rdx + 0x28]
shl r11, 5
add r11, qword [rdx + 0x20]
lea rdx, [r11 + 0x1c]
movzx r11d, word [rdx]
or r11d, 0x40
mov word [rdx], r11w
jmp 0x616694
mov r9, qword [rsp + 0xc8]
nop
jmp 0x616694
movups xmmword [rsp + 0xf8], xmm15
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0xb0], rdx
lea rdx, [0x00728cc0]
mov qword [rsp + 0xf8], rdx
lea rsi, [rax + 0x10]
lea r8, [rsp + 0xb0]
mov qword [rsp + 0x100], r8
lea rbx, [rsp + 0xf8]
mov ecx, 1
mov rdi, rcx
mov rax, rsi
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x500a
mov rbx, qword [rsp + 0x128]
mov rdi, rax
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._sqlite3ErrorMsg
mov rcx, qword [rsp + 0x88]
test rcx, rcx
jne 0x6168d3
mov rax, qword [rsp + 0x98]
jmp 0x616911
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
mov rdi, qword [rsp + 0x98]
call sym.modernc.org_sqlite_lib._sqlite3ExprListAppend
lea rdi, [0x009b9050]
mov rbx, qword [rsp + 0x128]
mov rcx, rax
xor esi, esi
mov rax, qword [rsp + 0x120]
call sym.modernc.org_sqlite_lib._sqlite3ExprFunction
mov rcx, qword [rsp + 0x68]
jmp 0x616512
inc r15d
mov r13, qword [rsp + 0x70]
mov qword [rsp + 0x60], r9
mov r9, qword [rsp + 0x80]
movsx r9, word [r13 + 0x36]
cmp r15d, r9d
jge 0x616a46
movsxd r9, r15d
shl r9, 4
add r9, qword [r13 + 8]
movzx r13d, word [r9 + 0xe]
bt r13d, 1
jae 0x61695c
mov r9, qword [rsp + 0x60]
jmp 0x61691b
mov dword [rsp + 0x44], r15d
mov rsi, qword [r9]
mov qword [rsp + 0x58], rsi
mov rax, rcx
xor ecx, ecx
mov edi, r10d
xor r8d, r8d
mov r9, r8
mov r10d, r11d
call sym.modernc.org_sqlite_lib._tableAndColumnIndex
nop
test eax, eax
jne 0x61698b
mov rax, qword [rsp + 0x60]
jmp 0x6169f5
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x60]
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3IdListAppend
test rax, rax
je 0x6169f5
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0x128]
mov rbx, qword [rdx]
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x58]
call sym.modernc.org_sqlite_lib._sqlite3DbStrDup
mov rdx, qword [rsp + 0xc0]
mov rsi, rdx
mov edx, dword [rdx]
dec edx
movsxd rdx, edx
shl rdx, 4
lea rdx, [rsi + rdx]
lea rdx, [rdx + 8]
mov qword [rdx], rax
mov rax, rsi
mov rcx, qword [rsp + 0x120]
mov rdx, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x130]
mov edi, dword [rsp + 0x3c]
mov r8, qword [rsp + 0x128]
mov r10d, dword [rsp + 0x4c]
mov r11d, 1
mov r12, qword [rsp + 0xd8]
mov r15d, dword [rsp + 0x44]
mov r9, rax
mov rax, qword [rsp + 0xa8]
jmp 0x61691b
mov r13, qword [rsp + 0x60]
test r13, r13
je 0x616a8d
mov r15, qword [rsp + 0xd0]
mov r9, r15
movzx esi, word [r15]
or esi, 0x400
nop
mov word [r15], si
movzx r15d, word [r9]
or r15d, 0x1000
nop
mov word [r9], r15w
mov r15, qword [rsp + 0xc8]
mov qword [r15], r13
mov rsi, qword [rsp + 0x130]
mov r13, r8
cmp dword [r8 + 0x30], 0
jne 0x616aac
mov r8, r13
mov r9, qword [rsp + 0x80]
mov r13, qword [rsp + 0x70]
jmp 0x61613e
mov dword [rsp + 0x40], 1
mov byte [rsp + 0x3b], 0
mov rdx, qword [rsp + 0x108]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x40]
add rsp, 0x110
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.modernc.org_sqlite_lib._sqlite3ProcessJoin