Function at 0x1400611a0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x14018d030]
xor rax, rsp
mov qword [rsp + 0x148], rax
xor r13d, r13d
mov r12d, r13d
mov dword [rsp + 0x34], r13d
lea r8, str.SELECT_sql_FROM_sqlite_master_WHERE_tbl_name__source_AND_type__table_
mov rdx, qword [rcx + 8]
lea rcx, [rsp + 0xc0]
call fcn.14006a210
nop
lea esi, [r13 + 0x15]
cmp byte [rsp + 0x111], 0
jne 0x14006123c
mov rcx, qword [rsp + 0xe8]
call fcn.14009d140
mov ebx, eax
cmp eax, 0x64
jne 0x14006121d
mov cl, 1
mov byte [rsp + 0x110], cl
jmp 0x140061246
xor cl, cl
cmp eax, 0x65
jne 0x140061230
mov word [rsp + 0x110], 0x100
jmp 0x140061246
mov word [rsp + 0x110], 0
jmp 0x140061246
mov ebx, esi
movzx ecx, byte [rsp + 0x110]
lea eax, [rbx - 0x64]
cmp eax, 1
jbe 0x1400612d8
mov rax, qword [rsp + 0xe0]
test rax, rax
je 0x1400612c6
mov ecx, dword [rax + 0x70]
cmp ecx, 0x4b771290
je 0x1400612b8
cmp ecx, 0xa029a697
je 0x1400612b8
cmp ecx, 0xf03b7906
je 0x1400612b8
lea r8, str.invalid
lea rdx, str.API_call_with__s_database_connection_pointer
mov ecx, esi
call fcn.140071a50
lea rax, [0x14016ad94]
mov qword [rsp + 0x20], rax
mov r9d, 0x27c50
lea r8, str.misuse
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, esi
call fcn.140071a50
jmp 0x1400612cb
cmp byte [rax + 0x61], 0
jne 0x1400612c6
mov esi, dword [rax + 0x54]
and esi, dword [rax + 0x50]
jmp 0x1400612cb
mov esi, 7
cmp ebx, esi
jne 0x1400617a2
jmp 0x140061774
test cl, cl
je 0x140061603
cmp dword [rsp + 0xf8], 0
jle 0x1400617c7
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0xe8]
mov qword [rsp + 0x40], rbx
mov r14, qword [rsp + 0xf0]
mov qword [rsp + 0x48], r14
inc dword [r14]
mov dword [rsp + 0x50], r13d
or r12d, 1
xor edx, edx
mov rcx, rbx
call fcn.14009d9c0
mov r15, rax
test rbx, rbx
je 0x14006136f
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140061345
call qword [0x14018d290]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x14006135b
cmp r13w, word [rbx + 0xc0]
jb 0x140061376
mov rcx, qword [rbx]
mov dword [rcx + 0x50], 0x19
mov edx, 0x19
call fcn.1400724e0
lea rcx, [0x14013b4f8]
movzx eax, word [rcx + 8]
test al, 2
je 0x140061389
cmp byte [rcx + 0xa], 1
jne 0x140061389
mov edi, dword [rcx + 0xc]
jmp 0x1400613ad
test al, 0x10
je 0x14006139b
mov edi, dword [rcx + 0xc]
bt ax, 0xe
jae 0x1400613ad
add edi, dword [rcx]
jmp 0x1400613ad
test al, 1
je 0x1400613a4
mov edi, r13d
jmp 0x1400613ad
mov dl, 1
call fcn.140094f70
mov edi, eax
test rbx, rbx
je 0x1400613e7
mov edx, dword [rbx + 0x38]
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
jne 0x1400613cd
cmp edx, 0xc0a
je 0x1400613cd
mov eax, dword [rcx + 0x54]
and eax, edx
jmp 0x1400613d5
call fcn.14006f1a0
mov rcx, qword [rbx]
mov dword [rbx + 0x38], eax
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x1400613e7
call qword [0x14018d2a0]
mov qword [rsp + 0x120], r13
mov qword [rsp + 0x130], r13
mov qword [rsp + 0x138], 0xf
movsxd r8, edi
mov rdx, r15
lea rcx, [rsp + 0x120]
call fcn.140006d70
or r12d, 6
mov dword [rsp + 0x34], r12d
add dword [r14], 0xffffffff
jne 0x14006143b
mov rcx, rbx
call fcn.14009c080
mov edx, 4
mov rcx, r14
call fcn.14012f24c
nop
lea r15, [rsp + 0x120]
mov r14, qword [rsp + 0x138]
cmp r14, 0x10
setae byte [rsp + 0x30]
mov rdi, qword [rsp + 0x120]
cmovae r15, rdi
mov rax, qword [rsp + 0x130]
cmp rax, 0x20
jb 0x1400615bf
lea r12, [rax + r15]
movsx r13d, byte [str.package_name_varchar_256__unique]
lea r8, [r12 - 0x1f]
sub r8, r15
mov edx, r13d
mov rcx, r15
call fcn.140130891
mov rbx, rax
test rax, rax
je 0x1400615b7
nop dword [rax]
mov r8d, 0x20
lea rdx, str.package_name_varchar_256__unique
mov rcx, rbx
call fcn.140130750
test eax, eax
je 0x1400614dc
inc rbx
lea r8, [r12 - 0x1f]
sub r8, rbx
mov edx, r13d
mov rcx, rbx
call fcn.140130891
mov rbx, rax
test rax, rax
jne 0x1400614a0
jmp 0x1400615b7
sub rbx, r15
cmp rbx, 0xffffffffffffffff
je 0x1400615b7
cmp byte [rsp + 0x30], 0
je 0x140061522
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140061519
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400615ef
mov rcx, rdi
call fcn.14012f24c
nop
mov r8, qword [rsp + 0x100]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x100]
call fcn.140061f40
mov edx, 0x48
mov rcx, qword [rsp + 0x100]
call fcn.14012f24c
nop
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x1400615a3
dec dword [rax]
mov rax, qword [rsp + 0xf0]
cmp dword [rax], 0
jne 0x1400615a3
mov rcx, qword [rsp + 0xe8]
call fcn.14009c080
mov edx, 4
mov rcx, qword [rsp + 0xf0]
call fcn.14012f24c
xor eax, eax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0xc0]
call fcn.140006c50
mov al, 1
jmp 0x140061745
mov r12d, dword [rsp + 0x34]
xor r13d, r13d
cmp byte [rsp + 0x30], 0
je 0x1400611f4
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400615f6
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400615f6
call qword [0x140138140]
int3
mov rcx, rdi
call fcn.14012f24c
jmp 0x1400611f4
mov r8, qword [rsp + 0x100]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x100]
call fcn.140061f40
mov edx, 0x48
mov rcx, qword [rsp + 0x100]
call fcn.14012f24c
nop
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x140061735
dec dword [rax]
mov rax, qword [rsp + 0xf0]
cmp dword [rax], 0
jne 0x140061735
mov rbx, qword [rsp + 0xe8]
test rbx, rbx
je 0x140061713
mov rdi, qword [rbx]
test rdi, rdi
jne 0x1400616ab
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, esi
call fcn.140071a50
lea rax, [0x14016ad94]
mov qword [rsp + 0x20], rax
mov r9d, 0x143d3
lea r8, str.misuse
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, esi
call fcn.140071a50
jmp 0x140061713
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400616ba
call qword [0x14018d290]
cmp qword [rbx + 0xb8], 0
jle 0x1400616cf
mov rdx, rbx
mov rcx, rdi
call fcn.14009bfc0
mov esi, r13d
mov eax, dword [rbx + 0x24]
cmp eax, 0x2df20da3
je 0x1400616e3
cmp eax, 0x319c2973
jne 0x1400616ed
mov rcx, rbx
call fcn.140099ab0
mov esi, eax
mov rcx, rbx
call fcn.14009a030
cmp byte [rdi + 0x61], 0
jne 0x140061703
cmp esi, 0xc0a
jne 0x14006170b
mov rcx, rdi
call fcn.14006f1a0
mov rcx, rdi
call fcn.14011c300
mov edx, 4
mov rcx, qword [rsp + 0xf0]
call fcn.14012f24c
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xe8], r13
lea rcx, [rsp + 0xc0]
call fcn.140006c50
nop
xor al, al
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14012f1f0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [rsp + 0xe0]
call fcn.14003d660
mov rdx, rax
mov r8d, ebx
lea rcx, [rsp + 0x58]
call fcn.14006a0d0
lea rdx, [0x140186930]
lea rcx, [rsp + 0x58]
call fcn.14013074a
mov r8d, ebx
lea rdx, str.Statement_needs_to_be_reseted
lea rcx, [rsp + 0x78]
call fcn.14006a070
lea rdx, [0x140186930]
lea rcx, [rsp + 0x78]
call fcn.14013074a
lea rdx, str.Column_index_out_of_range.
lea rcx, [rsp + 0x98]
call fcn.140069d20
lea rdx, [0x140186930]
lea rcx, [rsp + 0x98]
call fcn.14013074a
int3