Function at 0x6388ba50
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
sub rsp, 0x308
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2a0], rcx
mov qword [rbp + 0x2a8], rdx
mov dword [rbp + 0x2b0], r8d
mov rcx, qword [rbp + 0x2a0]
call method.QVector_templates::TemplateModel_.QVector__
mov rax, qword [rbp + 0x2a8]
mov rdx, qword [rax]
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.QSqlDatabase_QSqlDatabase_const_]
call rax
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.QSqlQuery_QSqlDatabase_]
call rax
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.QSqlDatabase__]
call rax
mov rax, qword [rbp + 0x2a8]
mov rdx, qword [rax]
lea rax, [rbp - 0x48]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.QSqlDatabase_QSqlDatabase_const_]
call rax
lea rdx, [rbp - 0x48]
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [method.QSqlQuery.QSqlQuery_QSqlDatabase_]
call rax
lea rax, [rbp - 0x48]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.QSqlDatabase__]
call rax
cmp dword [rbp + 0x2b0], 6
jne 0x6388bb72
lea rax, [rbp - 0x40]
lea rdx, str.SELECT_name_FROM_templates_WHERE_favorite__true_ORDER_BY_name_ASC
mov rcx, rax
call method.QString.QString_char_const_
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.prepare_QString_const_]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp - 0x38]
lea rdx, str.SELECT_name_FROM_templates_WHERE_favorite__false_ORDER_BY_name_ASC
mov rcx, rax
call method.QString.QString_char_const_
lea rdx, [rbp - 0x38]
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [method.QSqlQuery.prepare_QString_const_]
call rax
lea rax, [rbp - 0x38]
mov rcx, rax
call fcn.63a66520
jmp 0x6388bcc5
lea rax, [rbp - 0x30]
lea rdx, str.SELECT_name_FROM_templates_WHERE_lensType__:lensType_and_favorite__true_ORDER_BY_name_ASC
mov rcx, rax
call method.QString.QString_char_const_
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.prepare_QString_const_]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp - 0x24]
mov edx, 1
mov rcx, rax
call method.QFlags_QSql::ParamTypeFlag_.QFlags_QSql::ParamTypeFlag_
mov edx, dword [rbp + 0x2b0]
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant_int_]
call rax
lea rax, [rbp - 8]
lea rdx, str.:lensType
mov rcx, rax
call method.QString.QString_char_const_
mov r8d, dword [rbp - 0x24]
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 8]
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
lea rax, [rbp - 8]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
mov rax, rbp
lea rdx, str.SELECT_name_FROM_templates_WHERE_lensType__:lensType_and_favorite__false_ORDER_BY_name_ASC
mov rcx, rax
call method.QString.QString_char_const_
mov rdx, rbp
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [method.QSqlQuery.prepare_QString_const_]
call rax
mov rax, rbp
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0xc]
mov edx, 1
mov rcx, rax
call method.QFlags_QSql::ParamTypeFlag_.QFlags_QSql::ParamTypeFlag_
mov edx, dword [rbp + 0x2b0]
lea rax, [rbp + 0x10]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant_int_]
call rax
lea rax, [rbp + 0x20]
lea rdx, str.:lensType
mov rcx, rax
call method.QString.QString_char_const_
mov r8d, dword [rbp + 0xc]
lea rcx, [rbp + 0x10]
lea rdx, [rbp + 0x20]
lea rax, [rbp - 0x60]
mov r9d, r8d
mov r8, rcx
mov rcx, rax
mov rax, qword [method.QSqlQuery.bindValue_QString_const__QVariant_const__QFlags_QSql::ParamTypeFlag__]
call rax
lea rax, [rbp + 0x20]
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
xor eax, 1
test al, al
je 0x6388bd78
lea rax, [rbp + 0x30]
lea r9, str.QVector_templates::TemplateModel__TemplatesDBHandler::getTemplates_WaveConstants::LensType_
mov r8d, 0xaa
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, rax
mov rax, qword [method.QMessageLogger.info___const]
call rax
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.lastError___const]
call rax
lea rax, [rbp + 0x58]
lea rdx, [rbp + 0x60]
mov rcx, rax
mov rax, qword [method.QSqlError.text___const]
call rax
lea rdx, [rbp + 0x58]
lea rax, [rbp + 0x28]
mov rcx, rax
call method.QDebug.operator___QString_const_
lea rax, [rbp + 0x58]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x60]
mov rcx, rax
mov rax, qword [method.QSqlError.QSqlError__]
call rax
lea rax, [rbp + 0x28]
mov rcx, rax
mov rax, qword [method.QDebug.QDebug__]
call rax
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.next__]
call rax
test al, al
je 0x6388be33
lea rax, [rbp + 0x140]
lea rdx, [rbp - 0x58]
mov r8d, 0
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x138]
lea rdx, [rbp + 0x140]
mov rcx, rax
mov rax, qword [method.QVariant.toString___const]
call rax
lea rax, [rbp + 0x80]
lea rcx, [rbp + 0x138]
mov rdx, qword [rbp + 0x2a8]
mov r8, rcx
mov rcx, rax
call method.TemplatesDBHandler.selectTemplateData_QString_const_
lea rax, [rbp + 0x80]
mov rdx, rax
mov rcx, qword [rbp + 0x2a0]
call method.QVector_templates::TemplateModel_.push_back_templates::TemplateModel_
lea rax, [rbp + 0x80]
mov rcx, rax
call method.templates::TemplateModel.TemplateModel__
lea rax, [rbp + 0x138]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x140]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
jmp 0x6388bd78
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [method.QSqlQuery.exec__]
call rax
xor eax, 1
test al, al
je 0x6388bf07
lea rax, [rbp + 0x160]
lea r9, str.QVector_templates::TemplateModel__TemplatesDBHandler::getTemplates_WaveConstants::LensType_
mov r8d, 0xb4
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp + 0x158]
lea rdx, [rbp + 0x160]
mov rcx, rax
mov rax, qword [method.QMessageLogger.info___const]
call rax
lea rax, [rbp + 0x190]
lea rdx, [rbp - 0x60]
mov rcx, rax
mov rax, qword [method.QSqlQuery.lastError___const]
call rax
lea rax, [rbp + 0x188]
lea rdx, [rbp + 0x190]
mov rcx, rax
mov rax, qword [method.QSqlError.text___const]
call rax
lea rdx, [rbp + 0x188]
lea rax, [rbp + 0x158]
mov rcx, rax
call method.QDebug.operator___QString_const_
lea rax, [rbp + 0x188]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x190]
mov rcx, rax
mov rax, qword [method.QSqlError.QSqlError__]
call rax
lea rax, [rbp + 0x158]
mov rcx, rax
mov rax, qword [method.QDebug.QDebug__]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [method.QSqlQuery.next__]
call rax
test al, al
je 0x6388bfc2
lea rax, [rbp + 0x270]
lea rdx, [rbp - 0x60]
mov r8d, 0
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x268]
lea rdx, [rbp + 0x270]
mov rcx, rax
mov rax, qword [method.QVariant.toString___const]
call rax
lea rax, [rbp + 0x1b0]
lea rcx, [rbp + 0x268]
mov rdx, qword [rbp + 0x2a8]
mov r8, rcx
mov rcx, rax
call method.TemplatesDBHandler.selectTemplateData_QString_const_
lea rax, [rbp + 0x1b0]
mov rdx, rax
mov rcx, qword [rbp + 0x2a0]
call method.QVector_templates::TemplateModel_.push_back_templates::TemplateModel_
lea rax, [rbp + 0x1b0]
mov rcx, rax
call method.templates::TemplateModel.TemplateModel__
lea rax, [rbp + 0x268]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x270]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
jmp 0x6388bf07
nop
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [method.QSqlQuery.QSqlQuery__]
call rax
lea rax, [rbp - 0x58]
mov rcx, rax
mov rax, qword [method.QSqlQuery.QSqlQuery__]
call rax
jmp 0x6388c202
mov rax, qword [rbp + 0x2a0]
add rsp, 0x308
pop rbx
pop rbp
ret