Function at 0x6388ee6e
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov rax, qword [rbp + 0x80]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.isOpen___const]
call rax
xor eax, 1
test al, al
je 0x6388ef05
mov rax, qword [rbp + 0x80]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.open__]
call rax
xor eax, 1
test al, al
je 0x6388ef05
lea rax, [rbp - 0x50]
lea r9, str.bool_TemplatesDBHandler::templateExists_const_QString_
mov r8d, 0x168
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp - 0x50]
lea r8, str.Template_DB_can_not_be_open.
lea rdx, [0x63b0c885]
mov rcx, rax
mov rax, qword [method.QMessageLogger.fatal_char_const__...__const]
call rax
mov rax, qword [rbp + 0x80]
mov rdx, qword [rax]
lea rax, [rbp - 0x28]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.QSqlDatabase_QSqlDatabase_const_]
call rax
lea rdx, [rbp - 0x28]
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.QSqlQuery_QSqlDatabase_]
call rax
lea rax, [rbp - 0x28]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.QSqlDatabase__]
call rax
lea rax, [rbp - 0x20]
lea rdx, str.SELECT__FROM_templates_WHERE_name__:template_name
mov rcx, rax
call method.QString.QString_char_const_
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.prepare_QString_const_]
call rax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp - 0x14]
mov edx, 1
mov rcx, rax
call method.QFlags_QSql::ParamTypeFlag_.QFlags_QSql::ParamTypeFlag_
mov rdx, qword [rbp + 0x88]
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant_QString_const_]
call rax
mov rax, rbp
lea rdx, str.:template_name
mov rcx, rax
call method.QString.QString_char_const_
mov r8d, dword [rbp - 0x14]
lea rcx, [rbp - 0x10]
mov rdx, rbp
lea rax, [rbp - 0x58]
mov r9d, r8d
mov r8, rcx
mov rcx, rax
mov rax, qword [method.QSqlQuery.bindValue_QString_const__QVariant_const__QFlags_QSql::ParamTypeFlag__]
call rax
mov rax, rbp
mov rcx, rax
call fcn.63a66520
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.exec__]
call rax
test al, al
je 0x6388f022
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.next__]
call rax
test al, al
je 0x6388f0ba
mov ebx, 1
jmp 0x6388f0bf
lea rax, [rbp + 0x10]
lea r9, str.bool_TemplatesDBHandler::templateExists_const_QString_
mov r8d, 0x175
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp + 8]
lea rdx, [rbp + 0x10]
mov rcx, rax
mov rax, qword [method.QMessageLogger.info___const]
call rax
lea rax, [rbp + 0x40]
lea rdx, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.lastError___const]
call rax
lea rax, [rbp + 0x38]
lea rdx, [rbp + 0x40]
mov rcx, rax
mov rax, qword [method.QSqlError.text___const]
call rax
lea rdx, [rbp + 0x38]
lea rax, [rbp + 8]
mov rcx, rax
call method.QDebug.operator___QString_const_
lea rax, [rbp + 0x38]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x40]
mov rcx, rax
mov rax, qword [method.QSqlError.QSqlError__]
call rax
lea rax, [rbp + 8]
mov rcx, rax
mov rax, qword [method.QDebug.QDebug__]
call rax
mov ebx, 0
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.QSqlQuery__]
call rax
mov eax, ebx
jmp 0x6388f183
add rsp, 0xe8
pop rbx
pop rbp
ret