Function at 0x6388b318
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x120], rcx
mov qword [rbp + 0x128], rdx
mov qword [rbp + 0x130], r8
mov rcx, qword [rbp + 0x120]
call fcn.638b30e0
mov rax, qword [rbp + 0x128]
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 + 0x128]
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
mov rax, qword [rbp + 0x130]
mov eax, dword [rax]
cmp eax, 6
jne 0x6388b43f
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 0x6388b59c
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 rax, qword [rbp + 0x130]
mov eax, dword [rax]
mov edx, eax
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 rax, qword [rbp + 0x130]
mov eax, dword [rax]
mov edx, eax
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 0x6388b64f
lea rax, [rbp + 0x30]
lea r9, str.QStringList_TemplatesDBHandler::getTemplateDefinitions_const_WaveConstants::LensType__const
mov r8d, 0x7f
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 0x6388b6ce
mov rbx, qword [rbp + 0x120]
lea rax, [rbp + 0x80]
lea rdx, [rbp - 0x58]
mov r8d, 0
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x78]
lea rdx, [rbp + 0x80]
mov rcx, rax
mov rax, qword [method.QVariant.toString___const]
call rax
lea rax, [rbp + 0x78]
mov rdx, rax
mov rcx, rbx
call method.QList_QString_.push_back_QString_const_
lea rax, [rbp + 0x78]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x80]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
jmp 0x6388b64f
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [method.QSqlQuery.exec__]
call rax
xor eax, 1
test al, al
je 0x6388b7a2
lea rax, [rbp + 0xa0]
lea r9, str.QStringList_TemplatesDBHandler::getTemplateDefinitions_const_WaveConstants::LensType__const
mov r8d, 0x89
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp + 0x98]
lea rdx, [rbp + 0xa0]
mov rcx, rax
mov rax, qword [method.QMessageLogger.info___const]
call rax
lea rax, [rbp + 0xd0]
lea rdx, [rbp - 0x60]
mov rcx, rax
mov rax, qword [method.QSqlQuery.lastError___const]
call rax
lea rax, [rbp + 0xc8]
lea rdx, [rbp + 0xd0]
mov rcx, rax
mov rax, qword [method.QSqlError.text___const]
call rax
lea rdx, [rbp + 0xc8]
lea rax, [rbp + 0x98]
mov rcx, rax
call method.QDebug.operator___QString_const_
lea rax, [rbp + 0xc8]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0xd0]
mov rcx, rax
mov rax, qword [method.QSqlError.QSqlError__]
call rax
lea rax, [rbp + 0x98]
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 0x6388b82d
mov rbx, qword [rbp + 0x120]
lea rax, [rbp + 0xf0]
lea rdx, [rbp - 0x60]
mov r8d, 0
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0xe8]
lea rdx, [rbp + 0xf0]
mov rcx, rax
mov rax, qword [method.QVariant.toString___const]
call rax
lea rax, [rbp + 0xe8]
mov rdx, rax
mov rcx, rbx
call method.QList_QString_.push_back_QString_const_
lea rax, [rbp + 0xe8]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0xf0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
jmp 0x6388b7a2
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 0x6388ba3f
mov rax, qword [rbp + 0x120]
add rsp, 0x188
pop rbx
pop rbp
ret