Function at 0x140007830
Capabilities:
Reference sql statements

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov edi, 0xffffffff
xor ebp, ebp
add qword [rcx + 0x40], 1
mov eax, dword [rcx + 0x48]
mov rbx, rcx
nop dword [rax]
cmp eax, 0xb
je 0x1400078de
cmp eax, 8
je 0x1400079f0
jg 0x1400078f0
cmp eax, 1
je 0x140007b00
cmp eax, 7
jne 0x140007ac0
mov rsi, qword [rbx + 0x38]
mov edi, 1
mov ebp, 8
test rsi, rsi
je 0x140007b40
mov rcx, rsi
call sym.sqlite3_step
mov rcx, qword [rbx + 0x38]
cmp eax, 0x64
jne 0x1400079d0
mov edx, edi
call sym.sqlite3_column_text
mov rcx, qword [rbx + 0x38]
mov edx, edi
mov qword [rbx + 0x28], rax
call sym.sqlite3_column_bytes
mov dword [rbx + 0x30], eax
mov r8d, dword [rbx + 0x10]
test r8d, r8d
je 0x1400078de
cmp r8d, dword [rbx + 0x30]
jle 0x140007b20
mov eax, dword [rbx + 0x48]
cmp eax, 0xb
jne 0x140007859
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 9
jne 0x140007ac0
mov rsi, qword [rbx + 0x38]
xor edi, edi
mov ebp, 0xb
test rsi, rsi
jne 0x140007891
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 0xffffffff
lea rdx, str.PRAGMA_database_list
lea rdi, [0x140150568]
lea r12, str._z_sSELECT_pti.name_FROM___w_.sqlite_schema_AS_sm_JOIN_pragma_table_info_sm.name__Q__AS_pti_WHERE_sm.typetable
lea rbp, str._UNION
call sym.sqlite3_prepare_v2
jmp 0x14000797c
mov rcx, qword [rsp + 0x38]
mov edx, 1
call sym.sqlite3_column_text
mov r8, rdi
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], rax
mov r9, rax
mov rdi, rbp
call sym.sqlite3_mprintf
mov rsi, rax
test rax, rax
je 0x140007b70
mov rcx, qword [rsp + 0x38]
call sym.sqlite3_step
cmp eax, 0x64
je 0x140007948
mov rcx, qword [rsp + 0x38]
xor edi, edi
mov ebp, 0xb
call sym.sqlite3_finalize
mov rcx, qword [rbx + 8]
mov rdx, rsi
lea r9, [rbx + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 0xffffffff
call sym.sqlite3_prepare_v2
mov rcx, rsi
call sym.sqlite3_free
mov rsi, qword [rbx + 0x38]
jmp 0x140007891
call sym.sqlite3_finalize
mov qword [rbx + 0x38], 0
mov eax, ebp
mov dword [rbx + 0x48], ebp
jmp 0x140007850
mov rsi, qword [rbx + 0x38]
xor edi, edi
mov ebp, 9
test rsi, rsi
jne 0x140007891
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 0xffffffff
lea rdx, str.PRAGMA_database_list
lea rdi, [0x140150568]
lea r12, str._z_sSELECT_name_FROM___w_.sqlite_schema
lea rbp, str._UNION
call sym.sqlite3_prepare_v2
jmp 0x140007a6f
mov rcx, qword [rsp + 0x38]
mov edx, 1
call sym.sqlite3_column_text
mov r8, rdi
mov rdx, rsi
mov rcx, r12
mov r9, rax
mov rdi, rbp
call sym.sqlite3_mprintf
mov rsi, rax
test rax, rax
je 0x140007b70
mov rcx, qword [rsp + 0x38]
call sym.sqlite3_step
cmp eax, 0x64
je 0x140007a40
mov rcx, qword [rsp + 0x38]
xor edi, edi
mov ebp, 9
call sym.sqlite3_finalize
mov rcx, qword [rbx + 8]
mov rdx, rsi
lea r9, [rbx + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 0xffffffff
call sym.sqlite3_prepare_v2
mov rcx, rsi
call sym.sqlite3_free
mov rsi, qword [rbx + 0x38]
jmp 0x140007891
cmp edi, 0xffffffff
je 0x140007ae6
mov rsi, qword [rbx + 0x38]
jmp 0x140007891
mov ecx, dword [rbx + 0x4c]
lea rdx, [rbx + 0x28]
lea r8, [rbx + 0x30]
lea eax, [rcx + 1]
mov dword [rbx + 0x4c], eax
call sym.sqlite3_keyword_name
cmp qword [rbx + 0x28], 0
je 0x140007b80
mov edi, 0xffffffff
jmp 0x1400078bf
mov esi, dword [rbx + 0x4c]
call sym.sqlite3_keyword_count
cmp esi, eax
jl 0x140007ad0
mov qword [rbx + 0x28], 0
mov dword [rbx + 0x48], 7
jmp 0x14000787a
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
call sym.sqlite3_strnicmp
test eax, eax
jne 0x1400078d2
jmp 0x1400078de
mov rcx, qword [rbx + 8]
lea r9, [rbx + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 0xffffffff
lea rdx, str.PRAGMA_database_list
call sym.sqlite3_prepare_v2
mov rsi, qword [rbx + 0x38]
jmp 0x140007891
mov eax, 7
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, dword [rbx + 0x48]
or edi, 0xffffffff
jmp 0x140007850