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

Disassembly:
lea r12, [rsp - 0xd0]
cmp r12, qword [r14 + 0x10]
jbe 0x621efe
push rbp
mov rbp, rsp
sub rsp, 0x148
mov qword [rsp + 0x158], rax
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x168], rcx
mov dword [rsp + 0x170], edi
mov dword [rsp + 0x174], esi
mov dword [rsp + 0x38], 0
mov ebx, 0x60
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0xb8], rax
lea rcx, [sym.modernc.org_sqlite_lib._flattenSubquery.deferwrap1]
mov qword [rsp + 0x138], rcx
mov rcx, qword [rsp + 0x158]
mov qword [rsp + 0x140], rcx
lea rdx, [rsp + 0x138]
mov qword [rsp + 0x110], rdx
lea rax, [rsp + 0xf8]
call sym.runtime.deferprocStack
nop dword [rax]
test eax, eax
jne 0x6211ec
mov rbx, qword [rsp + 0x160]
mov rdx, rbx
mov r9, qword [rdx]
mov r10, r9
mov r9d, dword [r9 + 0x60]
mov rdx, qword [rdx + 0x178]
bt r9d, 0
jb 0x6211d2
mov r9, qword [rsp + 0x168]
mov r11, r9
mov r12, qword [r9 + 0x28]
mov r13d, dword [rsp + 0x170]
movsxd r15, r13d
imul r15, r15, 0x68
lea rax, [r15 + r12]
lea rax, [rax + 8]
mov rcx, rax
mov esi, dword [rax + 0x44]
cmp qword [r9 + 0x70], 0
jne 0x6211b7
mov rdi, qword [rax + 0x28]
mov r8, rdi
cmp qword [rdi + 0x70], 0
jne 0x6211b7
mov dword [rsp + 0x44], esi
mov rsi, qword [rdi + 0x60]
test rsi, rsi
je 0x620f01
cmp qword [r9 + 0x60], 0
jne 0x620ee6
test rsi, rsi
je 0x620f01
mov qword [rsp + 0xf0], rsi
cmp qword [rsi + 0x18], 0
nop
jne 0x620ecc
mov rsi, qword [rsp + 0xf0]
jmp 0x620f01
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
nop
ret
mov qword [rsp + 0xf0], r15
mov r15d, dword [r9 + 4]
bt r15d, 8
jae 0x620f33
test rsi, rsi
je 0x620f33
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov qword [rsp + 0xe8], r10
mov r10, qword [rdi + 0x28]
mov qword [rsp + 0x68], r10
mov r10d, dword [r10]
test r10d, r10d
je 0x62119d
mov r11d, dword [rdi + 4]
bt r11d, 0
jb 0x621183
mov qword [rsp + 0x78], r12
test rsi, rsi
je 0x620f97
cmp dword [r12], 1
jg 0x620f7d
mov r12d, dword [rsp + 0x174]
test r12d, r12d
je 0x620f9f
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov r12d, dword [rsp + 0x174]
mov qword [rsp + 0x58], rdx
mov rdx, qword [r9 + 0x48]
test rdx, rdx
je 0x620fd2
cmp qword [rdi + 0x48], 0
je 0x620fd2
mov dword [rsp + 0x38], 0
nop dword [rax]
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
test r12d, r12d
je 0x621000
cmp qword [rdi + 0x48], 0
jne 0x620fe3
test rsi, rsi
jmp 0x621003
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
test rsi, rsi
je 0x62104c
cmp qword [r9 + 0x30], 0
jne 0x621032
test rsi, rsi
je 0x62104c
bt r15d, 0
jae 0x62104c
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
bt r11d, 0xd
jb 0x621169
movzx r9d, byte [rax + 0x3c]
nop dword [rax]
test r9d, 0x60
je 0x6210b6
cmp r10d, 1
jg 0x62109c
mov r10, qword [rsp + 0x68]
lea r11, [r10 + 8]
mov r11, qword [r11 + 0x20]
movzx r11d, byte [r11 + 0x3f]
cmp r11d, 1
je 0x62109c
bt r15d, 0
jb 0x62109c
bt r9d, 4
jb 0x62109c
mov eax, 1
jmp 0x6210c0
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov r10, qword [rsp + 0x68]
xor eax, eax
nop dword [rax]
test r13d, r13d
jle 0x6210f2
lea r9, [r10 + 8]
movzx r9d, byte [r9 + 0x3c]
bt r9d, 6
jae 0x6210f2
mov dword [rsp + 0x38], 0
nop dword [rax]
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xd8], r8
mov dword [rsp + 0x40], eax
cmp qword [rdi + 0x50], 0
je 0x621162
cmp qword [rdi + 0x48], 0
jne 0x621148
test r12d, r12d
jne 0x62112e
bt r15d, 0
nop
jb 0x62112e
test eax, eax
jg 0x62112e
mov rsi, r8
jmp 0x621d02
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
xor edx, edx
jmp 0x6211fe
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov dword [rsp + 0x38], 0
nop
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov qword [rsp + 0xc0], rdx
mov r9, rbx
mov r11, qword [rcx + 0x10]
mov qword [r9 + 0x178], r11
mov rax, qword [rsp + 0x158]
mov ecx, 0x15
xor edi, edi
mov rsi, rdi
mov r8, rsi
call sym.modernc.org_sqlite_lib._sqlite3AuthCheck
mov rcx, qword [rsp + 0x160]
mov rbx, rcx
mov rdx, qword [rsp + 0x58]
mov qword [rcx + 0x178], rdx
mov rdx, qword [rsp + 0xe0]
mov r9, rdx
mov rcx, qword [rdx + 8]
mov rdx, qword [rdx + 0x28]
mov qword [rsp + 0x70], rdx
nop dword [rax]
test rcx, rcx
je 0x62128f
mov rax, qword [rsp + 0x158]
mov rbx, qword [rsp + 0xe8]
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x160]
mov r9, qword [rsp + 0xe0]
mov r8, r9
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x6212c5
mov rax, qword [rsp + 0x158]
mov rbx, qword [rsp + 0xe8]
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x160]
mov r8, qword [rsp + 0xe0]
mov r9, r8
mov rcx, qword [r8 + 0x18]
test rcx, rcx
je 0x6212fb
mov rax, qword [rsp + 0x158]
mov rbx, qword [rsp + 0xe8]
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x160]
mov r9, qword [rsp + 0xe0]
mov r8, r9
mov qword [r9 + 8], 0
mov r9, r8
mov qword [r8 + 0x10], 0
mov r8, r9
mov qword [r9 + 0x18], 0
mov r9, r8
mov qword [r8 + 0x28], 0
mov r8, qword [rsp + 0xd8]
mov r8, qword [r8 + 0x50]
jmp 0x621349
mov r11, qword [rsp + 0xd8]
mov r8, qword [r11 + 0x50]
mov rdx, qword [rsp + 0x70]
mov r9, rsi
test r8, r8
je 0x62150f
mov qword [rsp + 0xd8], r8
mov rcx, qword [rsp + 0x168]
mov rdx, rcx
mov rsi, qword [rdx + 0x48]
mov qword [rsp + 0x90], rsi
mov r8, qword [rdx + 0x60]
mov qword [rsp + 0x98], r8
mov r11, qword [r9 + 0x20]
mov qword [rsp + 0xa0], r11
mov rdx, qword [rdx + 0x50]
mov qword [rsp + 0x80], rdx
mov qword [r9 + 0x20], 0
mov r9, rcx
mov qword [r9 + 0x48], 0
mov r9, rcx
mov qword [r9 + 0x50], 0
mov r9, rcx
mov qword [r9 + 0x60], 0
mov rax, qword [rsp + 0x158]
mov rbx, qword [rsp + 0xe8]
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3SelectDup
mov rcx, qword [rsp + 0x168]
mov rdx, rcx
mov rsi, qword [rsp + 0x98]
mov qword [rdx + 0x60], rsi
mov rdx, rcx
mov rsi, qword [rsp + 0x90]
mov qword [rdx + 0x48], rsi
mov rdx, rcx
mov byte [rdx], 0x87
mov rdx, qword [rsp + 0xe0]
mov rsi, rdx
mov r8, qword [rsp + 0xa0]
mov qword [rdx + 0x20], r8
test rax, rax
jne 0x621449
mov rdx, rcx
mov r8, qword [rsp + 0x80]
mov qword [rdx + 0x50], r8
mov rdx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x160]
mov r10, qword [rsp + 0xe8]
jmp 0x621335
mov rbx, qword [rsp + 0x160]
lea rdx, [rbx + 0x94]
mov r8, rdx
inc dword [rdx]
mov edx, dword [r8]
mov r8, rax
mov dword [rax + 0x10], edx
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x6214dc
mov r9, qword [rsp + 0xe8]
mov r10, r9
movzx r9d, byte [r9 + 0x67]
test r9d, r9d
jne 0x6214e4
mov qword [rsp + 0xd0], r8
mov rax, qword [rsp + 0x158]
mov rcx, r8
mov edi, dword [rsp + 0x170]
mov rsi, rdx
call sym.modernc.org_sqlite_lib._renumberCursors
mov rcx, qword [rsp + 0x168]
mov rdx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x160]
mov rsi, qword [rsp + 0xe0]
mov r8, qword [rsp + 0xd0]
mov r10, qword [rsp + 0xe8]
jmp 0x6214e4
mov r10, qword [rsp + 0xe8]
mov r9, r8
mov r11, qword [rsp + 0x80]
mov qword [r8 + 0x50], r11
test r11, r11
je 0x6214fc
mov qword [r11 + 0x58], r9
mov r8, r9
mov qword [r9 + 0x58], rcx
mov r9, rcx
mov qword [r9 + 0x50], r8
jmp 0x621335
nop
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x621547
mov rax, qword [rsp + 0x158]
mov rbx, qword [rsp + 0xe8]
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x160]
mov r9, qword [rsp + 0xe0]
mov r8, qword [rsp + 0xe8]
mov r10, r8
cmp byte [r8 + 0x67], 0
jne 0x621624
mov r8, r9
mov rdi, qword [r9 + 0x20]
test rdi, rdi
je 0x6215f7
mov r9, rdi
mov r11d, dword [r9 + 0x2c]
cmp r11d, 1
je 0x621583
dec r11d
mov dword [r9 + 0x2c], r11d
jmp 0x6215ea
mov rdx, rbx
mov rdx, qword [rdx + 0xb0]
lea rsi, [0x0072fd20]
mov qword [rsp + 0x128], rsi
lea rsi, sym.modernc.org_sqlite_lib._sqlite3DeleteTableGeneric
mov qword [rsp + 0x130], rsi
mov rcx, qword [rsp + 0x130]
test rdx, rdx
mov rsi, rbx
cmovne rsi, rdx
mov rax, qword [rsp + 0x158]
mov rbx, rsi
call sym.modernc.org_sqlite_lib._sqlite3ParserAddCleanup
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x160]
mov r8, qword [rsp + 0xe0]
mov r10, qword [rsp + 0xe8]
mov r9, r8
mov qword [r8 + 0x20], 0
jmp 0x6215fa
mov r9, r8
mov r8, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x168]
mov esi, dword [rsp + 0x170]
mov r12, qword [rsp + 0x78]
mov rax, rcx
mov rdi, rdx
mov r11d, 0xffffffff
jmp 0x62166b
mov qword [r9 + 0x28], rdx
mov dword [rsp + 0x38], 1
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov r15, qword [rdi + 0x50]
mov rdx, qword [r12 + 0x50]
mov rdi, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0x70]
mov r9, qword [rsp + 0xe0]
mov r10, r13
mov rcx, r15
mov r12, qword [rsp + 0x78]
test rcx, rcx
je 0x6219bb
lea r12, [r8 + r12]
lea r12, [r12 + 8]
movzx r12d, byte [r12 + 0x3c]
cmp rax, rcx
jne 0x621692
mov r13, r9
movzx r9d, byte [r9 + 0x3c]
jmp 0x621698
mov r13, r9
xor r9d, r9d
mov dword [rsp + 0x54], r12d
mov byte [rsp + 0x37], r9b
mov qword [rsp + 0xd8], rdx
mov qword [rsp + 0x88], rcx
mov r15, rdx
mov rdx, qword [rdx + 0x28]
mov qword [rsp + 0x68], rdx
mov edx, dword [rdx]
mov dword [rsp + 0x3c], edx
mov rcx, qword [rcx + 0x28]
cmp edx, 1
jle 0x621755
mov dword [rsp + 0x48], r11d
lea edi, [rdx - 1]
lea r8d, [rsi + 1]
mov rax, qword [rsp + 0x158]
mov esi, r8d
call sym.modernc.org_sqlite_lib._sqlite3SrcListEnlarge
test rax, rax
je 0x6219b3
mov rbx, qword [rsp + 0x88]
mov qword [rbx + 0x28], rax
mov edx, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x160]
mov esi, dword [rsp + 0x170]
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0xf0]
movzx r9d, byte [rsp + 0x37]
mov r10, qword [rsp + 0xe8]
mov r11d, dword [rsp + 0x48]
mov r12d, dword [rsp + 0x54]
mov r13, qword [rsp + 0xe0]
mov r15, qword [rsp + 0xd8]
mov rcx, rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0xc8], rax
xor eax, eax
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xc8]
jmp 0x621b06
lea r13, [rcx + r8]
lea r13, [r13 + 0x44]
mov qword [rsp + 0xb0], r13
movzx edi, byte [r13]
and edi, 0x40
mov byte [r13], dil
mov r13, qword [rsp + 0xb0]
movzx edi, byte [r13]
movzx r9d, r9b
and r12d, 0x40
or r9d, r12d
or r9d, edi
mov byte [r13], r9b
mov r9, r15
mov r12, qword [r15 + 0x48]
test r12, r12
je 0x6217d9
mov r13, qword [rsp + 0x88]
mov r15, r13
mov r13d, dword [r13 + 4]
bt r13d, 0x16
jb 0x6217e1
xor edi, edi
jmp 0x621cd7
mov r15, qword [rsp + 0x88]
mov dword [rsp + 0x54], r11d
mov r12, r9
mov rdi, qword [r9 + 0x30]
mov qword [r9 + 0x30], 0
mov r9d, dword [rsp + 0x40]
test r9d, r9d
jle 0x62186b
mov qword [rsp + 0x60], rdi
mov rax, qword [rsp + 0x158]
mov rbx, rdi
mov ecx, r11d
mov edi, 1
call sym.modernc.org_sqlite_lib._sqlite3SetJoinExpr
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x160]
mov esi, dword [rsp + 0x170]
mov rdi, qword [rsp + 0x60]
mov r8, qword [rsp + 0xf0]
mov r9d, dword [rsp + 0x40]
mov r10, qword [rsp + 0xe8]
mov r11d, dword [rsp + 0x54]
mov r12, qword [rsp + 0xd8]
mov r15, qword [rsp + 0x88]
test rdi, rdi
je 0x6218fe
mov r13, r15
mov rax, qword [r15 + 0x30]
nop dword [rax + rax]
test rax, rax
jne 0x62188b
mov qword [r15 + 0x30], rdi
jmp 0x6218f3
mov ecx, 0x2c
mov rsi, rax
mov rax, qword [rsp + 0x158]
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._sqlite3PExpr
mov rbx, qword [rsp + 0x88]
mov qword [rbx + 0x30], rax
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x160]
mov esi, dword [rsp + 0x170]
mov r8, qword [rsp + 0xf0]
mov r9d, dword [rsp + 0x40]
mov r10, qword [rsp + 0xe8]
mov r11d, dword [rsp + 0x54]
mov r12, qword [rsp + 0xd8]
mov r13, qword [rsp + 0x88]
mov rax, qword [rsp + 0x168]
mov r15, r13
mov r13, r10
movzx r10d, byte [r10 + 0x67]
test r10d, r10d
jne 0x62196f
mov r10, qword [rsp + 0xb8]
lea rdi, [r10 + 0x30]
mov qword [rsp + 0xd0], rdi
mov qword [rdi], rbx
mov rdi, r13
mov r13, qword [rsp + 0xd0]
mov r10d, dword [rsp + 0x44]
mov dword [r13 + 8], r10d
mov r13, qword [rsp + 0xd0]
mov dword [r13 + 0xc], r11d
mov r13, qword [rsp + 0xd0]
mov dword [r13 + 0x10], r9d
mov r13, qword [rsp + 0xd0]
mov r12, qword [r12 + 0x20]
mov qword [r13 + 0x18], r12
mov r12, qword [rsp + 0xd8]
mov r13, r12
jmp 0x621c36
lea r10, [r15 + 4]
mov rdi, r12
mov r12d, dword [r12 + 4]
and r12d, 0x100
or dword [r10], r12d
mov r10, rdi
mov r12, qword [rdi + 0x60]
test r12, r12
je 0x6219a5
mov rdi, r15
mov qword [r15 + 0x60], r12
mov r12, r10
mov qword [r10 + 0x60], 0
jmp 0x6219ab
mov rdi, r15
mov r12, r10
xor r10d, r10d
jmp 0x621c20
mov rbx, qword [rsp + 0x160]
mov rax, qword [rsp + 0x158]
mov rcx, rbx
mov rbx, qword [rsp + 0xb8]
call sym.modernc.org_sqlite_lib._sqlite3AggInfoPersistWalkerInit
mov rax, qword [rsp + 0x158]
mov rbx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
call sym.modernc.org_sqlite_lib._sqlite3WalkSelect
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x621a12
mov rax, qword [rsp + 0x158]
mov rbx, qword [rsp + 0xe8]
mov edi, 1
call sym.modernc.org_sqlite_lib._clearSelect
mov dword [rsp + 0x38], 1
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
lea rdi, [rax + 8]
movsxd rdx, r13d
imul rdx, rdx, 0x68
mov r8, qword [rsp + 0x68]
lea rsi, [rdx + r8]
lea rsi, [rsi + 8]
mov rbx, rsi
mov rdx, qword [rsi]
mov qword [rax], rdx
add rsi, 8
nop word [rax + rax]
nop word [rax + rax]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.0047188c
mov rbp, qword [rbp]
lea rdx, [rcx + r11]
lea rdx, [rdx + 0x44]
movzx r9d, byte [rdx]
and r12d, 0x40
or r9d, r12d
mov byte [rdx], r9b
mov rdx, rbx
mov edx, dword [rdx + 0x44]
mov dword [rsp + 0x50], edx
mov rax, qword [rsp + 0x158]
mov edi, 0x68
xor ecx, ecx
call sym.modernc.org_libc.Xmemset
mov edx, dword [rsp + 0x4c]
inc edx
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x160]
mov esi, dword [rsp + 0x170]
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0xf0]
movzx r9d, byte [rsp + 0x37]
mov r10, qword [rsp + 0xe8]
mov r12d, dword [rsp + 0x54]
mov r13, qword [rsp + 0xe0]
mov r15, qword [rsp + 0xd8]
mov dword [rsp + 0x4c], edx
mov r11d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x3c]
mov r13d, dword [rsp + 0x4c]
cmp r13d, edx
jge 0x621775
lea r11d, [rsi + r13]
movsxd r11, r11d
imul r11, r11, 0x68
lea rdi, [rcx + r11]
lea rdi, [rdi + 0x48]
movzx edi, word [rdi]
and edi, 0x400
shr di, 0xa
movzx edi, di
lea rax, [rcx + r11]
lea rax, [rax + 8]
nop
test edi, edi
je 0x621a2c
mov qword [rsp + 0xd0], r11
mov qword [rsp + 0xa8], rax
lea rdx, [rcx + r11]
lea rdx, [rdx + 0x50]
mov rdx, qword [rdx]
mov rax, qword [rsp + 0x158]
mov rbx, r10
mov rcx, rdx
call sym.modernc.org_sqlite_lib._sqlite3IdListDelete
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
mov r11, qword [rsp + 0xd0]
mov r12d, dword [rsp + 0x54]
mov r13d, dword [rsp + 0x4c]
jmp 0x621a2c
mov dword [rsp + 0x4c], r10d
lea edx, [r10 + rsi]
movsxd rdx, edx
imul rdx, rdx, 0x68
lea rdx, [rcx + rdx]
lea rdx, [rdx + 8]
mov rax, qword [rsp + 0x158]
mov rbx, rdi
mov rcx, rdx
call sym.modernc.org_sqlite_lib._recomputeColumnsUsed
mov r10d, dword [rsp + 0x4c]
inc r10d
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x160]
mov esi, dword [rsp + 0x170]
mov rdi, qword [rsp + 0x88]
mov r8, qword [rsp + 0xf0]
mov r9d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x54]
mov r12, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xe8]
nop word [rax + rax]
cmp r10d, edx
jl 0x621b9a
jmp 0x621642
mov r12, r10
mov r10d, dword [rsp + 0x44]
mov r10, qword [r12 + 0x50]
nop dword [rax + rax]
test r10, r10
jne 0x621c2e
mov rbx, qword [rsp + 0xd0]
mov rdx, rbx
mov rsi, qword [r12 + 0x20]
mov qword [rdx + 0x20], rsi
mov rax, qword [rsp + 0x158]
mov rcx, r15
xor edi, edi
call sym.modernc.org_sqlite_lib._substSelect
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x160]
mov esi, dword [rsp + 0x170]
mov r8, qword [rsp + 0xf0]
mov r9d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x54]
mov r12, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xe8]
mov r15, qword [rsp + 0x88]
jmp 0x62196f
movsxd r12, edi
shl r12, 5
lea r12, [r13 + r12]
lea r12, [r12 + 0x20]
mov word [r12], 0
inc edi
mov r12, r13
mov r13, r12
nop word [rax + rax]
cmp dword [r12], edi
jg 0x621cba
mov r12, r15
mov qword [r12 + 0x48], r13
mov r12, r9
mov qword [r12 + 0x48], 0
jmp 0x6217e1
mov r8, rdi
test r8, r8
je 0x621d92
mov edi, dword [r8 + 4]
test edi, 9
jne 0x621d75
mov rdi, qword [r8 + 0x50]
nop dword [rax + rax]
test rdi, rdi
je 0x621d32
movzx r9d, byte [r8]
cmp r9d, 0x87
jne 0x621d75
mov r9, qword [r8 + 0x28]
mov r10, r9
cmp dword [r9], 0
jle 0x621d75
cmp qword [r8 + 0x70], 0
jne 0x621d75
test r13d, r13d
jle 0x621cff
lea r8, [r10 + 8]
movzx r8d, byte [r8 + 0x3c]
bt r8d, 6
jae 0x621cff
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov dword [rsp + 0x38], 0
nop dword [rax]
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
test rdx, rdx
je 0x621d9e
xor edi, edi
jmp 0x621ec3
bt r15d, 0xd
jb 0x621ea4
mov rax, qword [rsp + 0x158]
mov rbx, rsi
call sym.modernc.org_sqlite_lib._compoundHasDifferentAffinities
nop dword [rax]
test eax, eax
jne 0x621e8a
mov rdx, qword [rsp + 0x78]
cmp dword [rdx], 1
jle 0x621e73
mov rdx, qword [rsp + 0x160]
cmp dword [rdx + 0x94], 0x1f4
jg 0x621e59
mov rbx, qword [rsp + 0xe8]
mov rdi, rbx
mov edi, dword [rdi + 0x60]
bt edi, 0x17
jb 0x621e3f
movsxd rcx, dword [rdx + 0x34]
inc rcx
shl rcx, 2
mov rax, qword [rsp + 0x158]
call sym.modernc.org_sqlite_lib._sqlite3DbMallocZero
test rax, rax
je 0x621e32
mov rdx, rax
mov rbx, qword [rsp + 0x160]
mov r9, rbx
mov r9d, dword [r9 + 0x34]
mov dword [rax], r9d
jmp 0x621e7d
mov rdx, rax
mov rbx, qword [rsp + 0x160]
jmp 0x621e7d
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov rbx, qword [rsp + 0x160]
xor edx, edx
mov rcx, qword [rsp + 0xe0]
jmp 0x6211fe
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
inc edi
mov rdx, r8
mov r8, rdx
cmp dword [rdx], edi
jle 0x621d9e
movsxd rdx, edi
shl rdx, 5
lea rdx, [rdx + r8]
lea rdx, [rdx + 0x20]
movzx edx, word [rdx]
test edx, edx
jne 0x621ebe
mov dword [rsp + 0x38], 0
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x38]
add rsp, 0x148
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], esi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov edi, dword [rsp + 0x20]
mov esi, dword [rsp + 0x24]
jmp sym.modernc.org_sqlite_lib._flattenSubquery