Function at 0x6388f664
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
sub rsp, 0x278
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x210], rcx
mov rax, qword [rbp + 0x210]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.open__]
call rax
xor eax, 1
test al, al
je 0x6388f6d7
lea rax, [rbp + 0x70]
lea r9, str.bool_TemplatesDBHandler::createTemplateDatabase__
mov r8d, 0x198
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp + 0x70]
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 + 0x210]
mov rdx, qword [rax]
lea rax, [rbp + 0x98]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.QSqlDatabase_QSqlDatabase_const_]
call rax
lea rdx, [rbp + 0x98]
lea rax, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.QSqlQuery_QSqlDatabase_]
call rax
lea rax, [rbp + 0x98]
mov rcx, rax
mov rax, qword [method.QSqlDatabase.QSqlDatabase__]
call rax
lea rax, [rbp + 0xa0]
lea rdx, str.SELECT_count___FROM_sqlite_master_WHERE_typetable_AND_nametemplates
mov rcx, rax
call method.QString.QString_char_const_
lea rdx, [rbp + 0xa0]
lea rax, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.prepare_QString_const_]
call rax
lea rax, [rbp + 0xa0]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.exec__]
call rax
xor eax, 1
test al, al
je 0x6388f84d
lea rax, [rbp + 0xb0]
lea r9, str.bool_TemplatesDBHandler::createTemplateDatabase__
mov r8d, 0x19f
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp + 0xa8]
lea rdx, [rbp + 0xb0]
mov rcx, rax
mov rax, qword [method.QMessageLogger.info___const]
call rax
lea rax, [rbp + 0xa8]
lea rdx, str.SELECT_count___FROM_sqlite_master_WHERE_typetable_AND_nametemplates
mov rcx, rax
call method.QDebug.operator___char_const_
mov rbx, rax
lea rax, [rbp + 0xe0]
lea rdx, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.lastError___const]
call rax
lea rax, [rbp + 0xd8]
lea rdx, [rbp + 0xe0]
mov rcx, rax
mov rax, qword [method.QSqlError.text___const]
call rax
lea rax, [rbp + 0xd8]
mov rdx, rax
mov rcx, rbx
call method.QDebug.operator___QString_const_
lea rax, [rbp + 0xd8]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0xe0]
mov rcx, rax
mov rax, qword [method.QSqlError.QSqlError__]
call rax
lea rax, [rbp + 0xa8]
mov rcx, rax
mov rax, qword [method.QDebug.QDebug__]
call rax
mov ebx, 0
jmp 0x6388fd10
lea rax, [rbp + 0x100]
lea rdx, str.CREATE_TABLE_if_not_exists_templates__name_TEXT_NOT_NULL__description_TEXT__lensType_INTEGER_NOT_NULL__createdDate_TEXT__editedDate_TEXT__creator_TEXT_favorite_BOOLEAN__opticZone_DECIMAL__icDiameter_DECIMAL__centralClerance_DECIMAL_edgeLift_INTEGER__et_DECIMAL__ct_DECIMAL___targetPower_DECIMAL__od_DECIMAL__tearLayerMode_INTEGER__geometry_INTEGER_edgeAngle_INTEGER__s_DECIMAL__mb_BOOLEAN__node_DECIMAL__prisam_BOOLEAN__edge_BOOLEAN__cornealDiameter_DECIMAL__PRIMARY_KEY__name__lensType___
mov rcx, rax
call method.QString.QString_char_const_
lea rdx, [rbp + 0x100]
lea rax, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.prepare_QString_const_]
call rax
lea rax, [rbp + 0x100]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.exec__]
call rax
xor eax, 1
test al, al
je 0x6388f972
lea rax, [rbp + 0x110]
lea r9, str.bool_TemplatesDBHandler::createTemplateDatabase__
mov r8d, 0x1c3
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp + 0x108]
lea rdx, [rbp + 0x110]
mov rcx, rax
mov rax, qword [method.QMessageLogger.info___const]
call rax
lea rax, [rbp + 0x108]
lea rdx, str.CREATE_TABLE_if_not_exists_templates
mov rcx, rax
call method.QDebug.operator___char_const_
mov rbx, rax
lea rax, [rbp + 0x140]
lea rdx, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.lastError___const]
call rax
lea rax, [rbp + 0x138]
lea rdx, [rbp + 0x140]
mov rcx, rax
mov rax, qword [method.QSqlError.text___const]
call rax
lea rax, [rbp + 0x138]
mov rdx, rax
mov rcx, rbx
call method.QDebug.operator___QString_const_
lea rax, [rbp + 0x138]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x140]
mov rcx, rax
mov rax, qword [method.QSqlError.QSqlError__]
call rax
lea rax, [rbp + 0x108]
mov rcx, rax
mov rax, qword [method.QDebug.QDebug__]
call rax
lea rax, [rbp + 0x60]
lea rdx, str.REPLACE__INTO_templates___name__description__lensType__createdDate__editedDate__creator__favorite__opticZone_icDiameter__centralClerance__edgeLift__et__ct__targetPower__od__tearLayerMode__geometry__edgeAngle__s__mb__node__prisam_edge__cornealDiameter__VALUES____1___2___3___4___5___6___7___8___9___10___11___12___13___14___15___16___17___18___19___20___21___22___23___24_
mov rcx, rax
call method.QString.QString_char_const_
lea rax, [rbp + 0x58]
mov rcx, rax
call method.QString.QString__
lea rax, [rbp + 0x170]
mov rcx, rax
mov rax, qword [method.QDateTime.currentDateTimeUtc__]
call rax
lea rax, [rbp + 0x178]
lea rdx, str.MM_dd_yyyy
mov rcx, rax
call method.QString.QString_char_const_
lea rax, [rbp + 0x168]
lea rcx, [rbp + 0x178]
lea rdx, [rbp + 0x170]
mov r8, rcx
mov rcx, rax
mov rax, qword [method.QDateTime.toString_QString_const__const]
call rax
lea rax, [rbp + 0x188]
mov rcx, rax
mov rax, qword [method.QDateTime.currentDateTimeUtc__]
call rax
lea rax, [rbp + 0x190]
lea rdx, str.MM_dd_yyyy
mov rcx, rax
call method.QString.QString_char_const_
lea rax, [rbp + 0x180]
lea rcx, [rbp + 0x190]
lea rdx, [rbp + 0x188]
mov r8, rcx
mov rcx, rax
mov rax, qword [method.QDateTime.toString_QString_const__const]
call rax
lea rax, [rbp + 0x160]
lea rdx, [rbp + 0x60]
lea rcx, str.11.5
mov qword [rsp + 0xc8], rcx
lea rcx, str.true
mov qword [rsp + 0xc0], rcx
lea rcx, str.true
mov qword [rsp + 0xb8], rcx
lea rcx, str.2.48
mov qword [rsp + 0xb0], rcx
lea rcx, str.false
mov qword [rsp + 0xa8], rcx
lea rcx, [0x63b0cd0c]
mov qword [rsp + 0xa0], rcx
lea rcx, [0x63b0cd11]
mov qword [rsp + 0x98], rcx
lea rcx, [0x63b0cd14]
mov qword [rsp + 0x90], rcx
lea rcx, [0x63b0cd16]
mov qword [rsp + 0x88], rcx
lea rcx, [0x63b0cd18]
mov qword [rsp + 0x80], rcx
lea rcx, str.2.00
mov qword [rsp + 0x78], rcx
lea rcx, str.0.25
mov qword [rsp + 0x70], rcx
lea rcx, str.0.20
mov qword [rsp + 0x68], rcx
lea rcx, [0x63b0cd2d]
mov qword [rsp + 0x60], rcx
lea rcx, [0x63b0cd14]
mov qword [rsp + 0x58], rcx
lea rcx, str.6.80
mov qword [rsp + 0x50], rcx
lea rcx, str.6.20
mov qword [rsp + 0x48], rcx
lea rcx, str.false
mov qword [rsp + 0x40], rcx
lea rcx, [0x63b0cd3a]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x168]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x28], rcx
lea rcx, [0x63b0cd16]
mov qword [rsp + 0x20], rcx
lea r9, [0x63b0cce0]
lea r8, [0x63b0cce1]
mov rcx, rax
call sym._ZNK7QString3argIJRA22_KcRA1_S1_RA2_S1_S_S_RA5_S1_RA6_S1_S9_S9_S7_RA3_S1_S9_S9_S9_SB_S7_S7_SD_S9_SB_S9_S9_S9_S9_EEENSt9enable_
lea rdx, [rbp + 0x160]
lea rax, [rbp + 0x58]
mov rcx, rax
call method.QString.operator_QString_
lea rax, [rbp + 0x160]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x180]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x190]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x188]
mov rcx, rax
mov rax, qword [method.QDateTime.QDateTime__]
call rax
lea rax, [rbp + 0x168]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x178]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x170]
mov rcx, rax
mov rax, qword [method.QDateTime.QDateTime__]
call rax
lea rdx, [rbp + 0x58]
lea rax, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.prepare_QString_const_]
call rax
lea rax, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.exec__]
call rax
xor eax, 1
test al, al
je 0x6388fcf3
lea rax, [rbp + 0x1a0]
lea r9, str.bool_TemplatesDBHandler::createTemplateDatabase__
mov r8d, 0x275
lea rdx, str.C:Users_s.krsticDocumentsWaveDevwavelibWave_srcutilsTemplatesDBHandler.cpp
mov rcx, rax
call method.QMessageLogger.QMessageLogger_char_const__int__char_const_
lea rax, [rbp + 0x198]
lea rdx, [rbp + 0x1a0]
mov rcx, rax
mov rax, qword [method.QMessageLogger.info___const]
call rax
lea rax, [rbp + 0x198]
lea rdx, str.REPLACE__INTO_templates_Myopia_OrthoK_Example
mov rcx, rax
call method.QDebug.operator___char_const_
mov rbx, rax
lea rax, [rbp + 0x1d0]
lea rdx, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.lastError___const]
call rax
lea rax, [rbp + 0x1c8]
lea rdx, [rbp + 0x1d0]
mov rcx, rax
mov rax, qword [method.QSqlError.text___const]
call rax
lea rax, [rbp + 0x1c8]
mov rdx, rax
mov rcx, rbx
call method.QDebug.operator___QString_const_
lea rax, [rbp + 0x1c8]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x1d0]
mov rcx, rax
mov rax, qword [method.QSqlError.QSqlError__]
call rax
lea rax, [rbp + 0x198]
mov rcx, rax
mov rax, qword [method.QDebug.QDebug__]
call rax
mov ebx, 1
lea rax, [rbp + 0x58]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x60]
mov rcx, rax
call fcn.63a66520
lea rax, [rbp + 0x68]
mov rcx, rax
mov rax, qword [method.QSqlQuery.QSqlQuery__]
call rax
mov eax, ebx
jmp 0x6388ff03
add rsp, 0x278
pop rbx
pop rbp
ret