Function at 0x180027890
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, qword [rcx + 0x20]
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
jne 0x1800278bf
lea eax, [rdi - 1]
jmp 0x180027b2c
mov dword [rbp - 0x10], 0x31
lea rax, str.SELECT_COUNT_Id__FROM_NamespaceTable_WHERE_Name_
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
movaps xmm0, xmmword [rbp - 0x10]
lea rcx, [rbp + 0x20]
movdqa xmmword [rbp - 0x10], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp + 0x20]
mov rcx, rdi
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdi, qword [rbx + 0x20]
lea rcx, [rbp - 0x10]
mov rdx, rsi
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
mov r9d, 1
lea r8, [rbp - 0x10]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x18002798e
nop word [rax + rax]
mov rcx, qword [rbx + 0x20]
lea rdx, [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.Qt5Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
mov rcx, rax
xor edx, edx
call qword [sym.imp.Qt5Core.dll_public:_int___cdecl_QVariant::toInt_bool____ptr64_const___ptr64]
lea rcx, [rbp - 0x10]
mov edi, eax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
test edi, edi
jg 0x180027b42
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
jne 0x180027950
lea rdx, [rbx + 0x10]
lea rcx, [rbp - 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QFileInfo::constructor_class_QString_const____ptr64____ptr64]
mov rdi, qword [rbx + 0x20]
lea rax, str.INSERT_INTO_NamespaceTable_VALUES_NULL_______
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x2d
lea rcx, [rbp + 0x20]
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp + 0x20]
mov rcx, rdi
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdi, qword [rbx + 0x20]
lea rcx, [rbp - 0x10]
mov rdx, rsi
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
mov r9d, 1
lea r8, [rbp - 0x10]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rdi, qword [rbx + 0x20]
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x20]
call qword [sym.imp.Qt5Core.dll_public:_class_QDir___cdecl_QFileInfo::absoluteDir_void____ptr64]
mov r8, r14
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QDir::relativeFilePath_class_QString_const____ptr64____ptr64]
mov rdx, rax
lea rcx, [rbp - 0x10]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
mov r9d, 1
lea r8, [rbp - 0x10]
mov edx, r9d
mov rcx, rdi
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDir::destructor_void____ptr64]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x180027ab5
mov rcx, qword [rbx + 0x20]
lea rdx, [rbp - 0x10]
call qword [sym.imp.Qt5Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::lastInsertId_void____ptr64]
mov rcx, rax
xor edx, edx
call qword [sym.imp.Qt5Core.dll_public:_int___cdecl_QVariant::toInt_bool____ptr64_const___ptr64]
lea rcx, [rbp - 0x10]
mov edi, eax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::clear_void____ptr64]
cmp edi, 1
jge 0x180027b20
mov edi, 0xffffffff
lea r8, str.Cannot_register_namespace___1_.
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, [rbp + 0x38]
lea rcx, [0x1800632a8]
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QMetaObject::tr_char_const____ptr64__char_const____ptr64__int____ptr64]
mov dl, 0x20
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
xor r9d, r9d
lea rdx, [rbp - 0x10]
mov r8, rsi
lea rcx, [rbp + 0x38]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_class_QString_const____ptr64__int__class_QChar____ptr64]
mov rdx, rax
mov rcx, rbx
call fcn.180039350
lea rcx, [rbp - 0x10]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rbp - 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QFileInfo::destructor_void____ptr64]
mov eax, edi
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
mov edi, 0xffffffff
lea r8, str.Namespace__1_already_exists.
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, [rbp + 0x38]
lea rcx, [0x1800632a8]
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QMetaObject::tr_char_const____ptr64__char_const____ptr64__int____ptr64]
mov dl, 0x20
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
xor r9d, r9d
lea rdx, [rbp - 0x10]
mov r8, rsi
lea rcx, [rbp + 0x38]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_class_QString_const____ptr64__int__class_QChar____ptr64]
mov rdx, rax
mov rcx, rbx
call fcn.180039350
lea rcx, [rbp - 0x10]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
jmp 0x180027b2a