Function at 0x6388a1da
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
sub rsp, 0x408
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3a0], rcx
mov qword [rbp + 0x3a8], rdx
mov qword [rbp + 0x3b0], r8
mov rax, qword [rbp + 0x3a8]
mov rdx, qword [rax]
lea rax, [rbp + 0x108]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.QSqlDatabase_QSqlDatabase_const_]
call rax
lea rdx, [rbp + 0x108]
lea rax, [rbp + 0x100]
mov rcx, rax
mov rax, qword [method.QSqlQuery.QSqlQuery_QSqlDatabase_]
call rax
lea rax, [rbp + 0x108]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.QSqlDatabase__]
call rax
lea rax, [rbp + 0x110]
lea rdx, str.SELECT__FROM_templates_WHERE_name__:template_name
mov rcx, rax
call method.QString.QString_char_const_
lea rdx, [rbp + 0x110]
lea rax, [rbp + 0x100]
mov rcx, rax
mov rax, qword [method.QSqlQuery.prepare_QString_const_]
call rax
lea rax, [rbp + 0x110]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x11c]
mov edx, 1
mov rcx, rax
call method.QFlags_QSql::ParamTypeFlag_.QFlags_QSql::ParamTypeFlag_
mov rdx, qword [rbp + 0x3b0]
lea rax, [rbp + 0x120]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant_QString_const_]
call rax
lea rax, [rbp + 0x138]
lea rdx, str.:template_name
mov rcx, rax
call method.QString.QString_char_const_
mov r8d, dword [rbp + 0x11c]
lea rcx, [rbp + 0x120]
lea rdx, [rbp + 0x138]
lea rax, [rbp + 0x100]
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 + 0x138]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x120]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x100]
mov rcx, rax
mov rax, qword [method.QSqlQuery.exec__]
call rax
test al, al
je 0x6388ade2
lea rax, [rbp + 0x100]
mov rcx, rax
mov rax, qword [method.QSqlQuery.next__]
call rax
test al, al
je 0x6388ae9e
lea rax, [rbp + 0x140]
lea rdx, [rbp + 0x100]
mov r8d, 0
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0xf8]
lea rdx, [rbp + 0x140]
mov rcx, rax
mov rax, qword [method.QVariant.toString___const]
call rax
lea rax, [rbp + 0x140]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x150]
lea rdx, [rbp + 0x100]
mov r8d, 1
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0xf0]
lea rdx, [rbp + 0x150]
mov rcx, rax
mov rax, qword [method.QVariant.toString___const]
call rax
lea rax, [rbp + 0x150]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x170]
lea r9, str.templates::TemplateModel_TemplatesDBHandler::selectTemplateData_const_QString_
mov r8d, 0x17
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp + 0x168]
lea rdx, [rbp + 0x170]
mov rcx, rax
mov rax, qword [method.QMessageLogger.debug___const]
call rax
lea rax, [rbp + 0x168]
lea rdx, str.Lens_Type:
mov rcx, rax
call method.QDebug.operator___char_const_
mov rbx, rax
lea rax, [rbp + 0x190]
lea rdx, [rbp + 0x100]
mov r8d, 2
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x190]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toInt_bool__const]
call rax
mov edx, eax
mov rcx, rbx
call method.QDebug.operator___int_
lea rax, [rbp + 0x190]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x168]
mov rcx, rax
mov rax, qword [method.QDebug.QDebug__]
call rax
lea rax, [rbp + 0x1a0]
lea rdx, [rbp + 0x100]
mov r8d, 2
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x1a0]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toInt_bool__const]
call rax
mov dword [rbp + 0xec], eax
lea rax, [rbp + 0x1a0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x1b0]
lea rdx, str.MM_dd_yyyy
mov rcx, rax
call method.QString.QString_char_const_
lea rax, [rbp + 0x1c0]
lea rdx, [rbp + 0x100]
mov r8d, 3
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x1b8]
lea rdx, [rbp + 0x1c0]
mov rcx, rax
mov rax, qword [method.QVariant.toString___const]
call rax
lea rax, [rbp + 0xe0]
lea rcx, [rbp + 0x1b0]
lea rdx, [rbp + 0x1b8]
mov r8, rcx
mov rcx, rax
mov rax, qword [method.QDateTime.fromString_QString_const__QString_const_]
call rax
lea rax, [rbp + 0x1b8]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x1c0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x1b0]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x1d0]
lea rdx, str.MM_dd_yyyy
mov rcx, rax
call method.QString.QString_char_const_
lea rax, [rbp + 0x1e0]
lea rdx, [rbp + 0x100]
mov r8d, 4
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x1d8]
lea rdx, [rbp + 0x1e0]
mov rcx, rax
mov rax, qword [method.QVariant.toString___const]
call rax
lea rax, [rbp + 0xd8]
lea rcx, [rbp + 0x1d0]
lea rdx, [rbp + 0x1d8]
mov r8, rcx
mov rcx, rax
mov rax, qword [method.QDateTime.fromString_QString_const__QString_const_]
call rax
lea rax, [rbp + 0x1d8]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x1e0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x1d0]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x1f0]
lea rdx, [rbp + 0x100]
mov r8d, 5
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0xd0]
lea rdx, [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [method.QVariant.toString___const]
call rax
lea rax, [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x200]
lea rdx, [rbp + 0x100]
mov r8d, 6
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x200]
mov rcx, rax
mov rax, qword [method.QVariant.toBool___const]
call rax
mov byte [rbp + 0xcf], al
lea rax, [rbp + 0x200]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x210]
lea rdx, [rbp + 0x100]
mov r8d, 7
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x210]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toDouble_bool__const]
call rax
movq rax, xmm0
mov qword [rbp + 0xc0], rax
lea rax, [rbp + 0x210]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x220]
lea rdx, [rbp + 0x100]
mov r8d, 8
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x220]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toDouble_bool__const]
call rax
movq rax, xmm0
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 0x220]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x230]
lea rdx, [rbp + 0x100]
mov r8d, 9
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x230]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toDouble_bool__const]
call rax
movq rax, xmm0
mov qword [rbp + 0xb0], rax
lea rax, [rbp + 0x230]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x240]
lea rdx, [rbp + 0x100]
mov r8d, 0xa
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x240]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toInt_bool__const]
call rax
mov dword [rbp + 0xac], eax
lea rax, [rbp + 0x240]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x250]
lea rdx, [rbp + 0x100]
mov r8d, 0xb
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x250]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toDouble_bool__const]
call rax
movq rax, xmm0
mov qword [rbp + 0xa0], rax
lea rax, [rbp + 0x250]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x260]
lea rdx, [rbp + 0x100]
mov r8d, 0xc
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x260]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toDouble_bool__const]
call rax
movq rax, xmm0
mov qword [rbp + 0x98], rax
lea rax, [rbp + 0x260]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x270]
lea rdx, [rbp + 0x100]
mov r8d, 0xd
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x90]
lea rdx, [rbp + 0x270]
mov rcx, rax
mov rax, qword [method.QVariant.toString___const]
call rax
lea rax, [rbp + 0x270]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x280]
lea rdx, [rbp + 0x100]
mov r8d, 0xe
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x280]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toDouble_bool__const]
call rax
movq rax, xmm0
mov qword [rbp + 0x88], rax
lea rax, [rbp + 0x280]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x290]
lea rdx, [rbp + 0x100]
mov r8d, 0xf
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x290]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toInt_bool__const]
call rax
mov dword [rbp + 0x84], eax
lea rax, [rbp + 0x290]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x2a0]
lea rdx, [rbp + 0x100]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x2a0]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toInt_bool__const]
call rax
mov dword [rbp + 0x80], eax
lea rax, [rbp + 0x2a0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x2b0]
lea rdx, [rbp + 0x100]
mov r8d, 0x11
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x2b0]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toInt_bool__const]
call rax
mov dword [rbp + 0x7c], eax
lea rax, [rbp + 0x2b0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x2c0]
lea rdx, [rbp + 0x100]
mov r8d, 0x12
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x2c0]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toDouble_bool__const]
call rax
movq rax, xmm0
mov qword [rbp + 0x70], rax
lea rax, [rbp + 0x2c0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x2d0]
lea rdx, [rbp + 0x100]
mov r8d, 0x13
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x2d0]
mov rcx, rax
mov rax, qword [method.QVariant.toBool___const]
call rax
mov byte [rbp + 0x6f], al
lea rax, [rbp + 0x2d0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x2e0]
lea rdx, [rbp + 0x100]
mov r8d, 0x14
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x2e0]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toDouble_bool__const]
call rax
movq rax, xmm0
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x2e0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x2f0]
lea rdx, [rbp + 0x100]
mov r8d, 0x15
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x2f0]
mov rcx, rax
mov rax, qword [method.QVariant.toBool___const]
call rax
mov byte [rbp + 0x5f], al
lea rax, [rbp + 0x2f0]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x300]
lea rdx, [rbp + 0x100]
mov r8d, 0x16
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x300]
mov rcx, rax
mov rax, qword [method.QVariant.toBool___const]
call rax
mov byte [rbp + 0x5e], al
lea rax, [rbp + 0x300]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea rax, [rbp + 0x310]
lea rdx, [rbp + 0x100]
mov r8d, 0x17
mov rcx, rax
mov rax, qword [method.QSqlQuery.value_int__const]
call rax
lea rax, [rbp + 0x310]
mov edx, 0
mov rcx, rax
mov rax, qword [method.QVariant.toDouble_bool__const]
call rax
movq rax, xmm0
mov qword [rbp + 0x50], rax
lea rax, [rbp + 0x310]
mov rcx, rax
mov rax, qword [method.QVariant.QVariant__]
call rax
lea r8, [rbp + 0xec]
lea rcx, [rbp + 0xf0]
lea rax, [rbp + 0xf8]
lea rdx, [rbp + 0x50]
mov qword [rsp + 0xc0], rdx
lea rdx, [rbp + 0x5e]
mov qword [rsp + 0xb8], rdx
lea rdx, [rbp + 0x5f]
mov qword [rsp + 0xb0], rdx
lea rdx, [rbp + 0x60]
mov qword [rsp + 0xa8], rdx
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0xa0], rdx
lea rdx, [rbp + 0x70]
mov qword [rsp + 0x98], rdx
lea rdx, [rbp + 0x7c]
mov qword [rsp + 0x90], rdx
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x88], rdx
lea rdx, [rbp + 0x84]
mov qword [rsp + 0x80], rdx
lea rdx, [rbp + 0x88]
mov qword [rsp + 0x78], rdx
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x70], rdx
lea rdx, [rbp + 0x98]
mov qword [rsp + 0x68], rdx
lea rdx, [rbp + 0xa0]
mov qword [rsp + 0x60], rdx
lea rdx, [rbp + 0xac]
mov qword [rsp + 0x58], rdx
lea rdx, [rbp + 0xb0]
mov qword [rsp + 0x50], rdx
lea rdx, [rbp + 0xb8]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0xc0]
mov qword [rsp + 0x40], rdx
lea rdx, [rbp + 0xcf]
mov qword [rsp + 0x38], rdx
lea rdx, [rbp + 0xd0]
mov qword [rsp + 0x30], rdx
lea rdx, [rbp + 0xd8]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp + 0xe0]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x3a0]
call method.templates::TemplateModel.TemplateModel_QString_const__QString__WaveConstants::LensType__QDateTime__QDateTime__QString__bool__double_const__double_const__double_const__int_const__double_const__double_const__QString_const__double_const
nop
lea rax, [rbp + 0x90]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0xd0]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0xd8]
mov rcx, rax
mov rax, qword [method.QDateTime.QDateTime__]
call rax
lea rax, [rbp + 0xe0]
mov rcx, rax
mov rax, qword [method.QDateTime.QDateTime__]
call rax
lea rax, [rbp + 0xf0]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0xf8]
mov rcx, rax
call fcn.63a66520
jmp 0x6388aeaa
lea rax, [rbp + 0x330]
lea r9, str.templates::TemplateModel_TemplatesDBHandler::selectTemplateData_const_QString_
mov r8d, 0x4d
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp + 0x328]
lea rdx, [rbp + 0x330]
mov rcx, rax
mov rax, qword [method.QMessageLogger.info___const]
call rax
lea rax, [rbp + 0x360]
lea rdx, [rbp + 0x100]
mov rcx, rax
mov rax, qword [method.QSqlQuery.lastError___const]
call rax
lea rax, [rbp + 0x358]
lea rdx, [rbp + 0x360]
mov rcx, rax
mov rax, qword [method.QSqlError.text___const]
call rax
lea rdx, [rbp + 0x358]
lea rax, [rbp + 0x328]
mov rcx, rax
call method.QDebug.operator___QString_const_
lea rax, [rbp + 0x358]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x360]
mov rcx, rax
mov rax, qword [method.QSqlError.QSqlError__]
call rax
lea rax, [rbp + 0x328]
mov rcx, rax
mov rax, qword [method.QDebug.QDebug__]
call rax
mov rcx, qword [rbp + 0x3a0]
call sym.libWaveLib.dll_templates::TemplateModel::TemplateModel__
lea rax, [rbp + 0x100]
mov rcx, rax
mov rax, qword [method.QSqlQuery.QSqlQuery__]
call rax
jmp 0x6388b307
mov rax, qword [rbp + 0x3a0]
add rsp, 0x408
pop rbx
pop rbp
ret