Function at 0x14000a6a0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor esi, esi
mov r14, r8
mov dword [rbp + 0x30], esi
mov r15, rdx
mov rdi, qword [rcx + 0x18]
mov rbx, rcx
test rdi, rdi
je 0x14000ab3d
mov rax, qword [rdx]
cmp dword [rax + 4], esi
je 0x14000ab3d
mov rax, qword [r8]
cmp dword [rax + 4], esi
je 0x14000ab3d
mov dword [rbp - 0x10], 0x27
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x78], r12
lea rcx, [rbp + 0x30]
lea r12, str.SELECT_Id_FROM_FolderTable_WHERE_Name_
mov qword [rbp - 8], r12
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 + 0x30]
mov rcx, rdi
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdi, qword [rbx + 0x18]
lea rcx, [rbp - 0x10]
mov rdx, r15
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
lea r9d, [rsi + 1]
xor edx, edx
lea r8, [rbp - 0x10]
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 + 0x18]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::isValid_void_const___ptr64]
test al, al
je 0x14000a7a6
mov rcx, qword [rbx + 0x18]
lea rdx, [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.Qt5Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
xor edx, edx
mov esi, 1
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_int___cdecl_QVariant::toInt_bool____ptr64_const___ptr64]
test eax, eax
jle 0x14000a7a6
movzx edi, sil
jmp 0x14000a7a9
xor dil, dil
test sil, 1
je 0x14000a7b9
lea rcx, [rbp - 0x10]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
test dil, dil
jne 0x14000ab39
mov rdi, qword [rbx + 0x18]
lea rax, str.SELECT_Id_FROM_NamespaceTable_WHERE_Name_
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x2a
lea rcx, [rbp + 0x30]
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
mov dword [rbx + 0x20], 0xffffffff
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp + 0x30]
mov rcx, rdi
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdi, qword [rbx + 0x18]
lea rcx, [rbp - 0x10]
mov rdx, r14
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 + 0x18]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x14000a87e
mov rcx, qword [rbx + 0x18]
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 dword [rbx + 0x20], eax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
cmp dword [rbx + 0x20], 0
jge 0x14000a934
mov rdi, qword [rbx + 0x18]
lea rax, str.INSERT_INTO_NamespaceTable_VALUES_NULL____
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x2a
lea rcx, [rbp + 0x30]
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 + 0x30]
mov rcx, rdi
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdi, qword [rbx + 0x18]
lea rcx, [rbp - 0x10]
mov rdx, r14
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 + 0x18]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x14000a930
mov rcx, qword [rbx + 0x18]
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 dword [rbx + 0x20], eax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
cmp dword [rbx + 0x20], 0
jle 0x14000aafa
mov rdi, qword [rbx + 0x18]
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x27
lea rcx, [rbp + 0x30]
mov qword [rbp - 8], r12
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 + 0x30]
mov rcx, rdi
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdi, qword [rbx + 0x18]
lea rcx, [rbp - 0x10]
mov rdx, r15
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 + 0x18]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x14000a9f7
nop
mov rcx, qword [rbx + 0x18]
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 dword [rbx + 0x24], eax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
jne 0x14000a9c0
cmp dword [rbx + 0x24], 0
jg 0x14000ab39
mov rdi, qword [rbx + 0x18]
lea rax, str.INSERT_INTO_FolderTable__NamespaceId__Name__VALUES_______
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x39
lea rcx, [rbp + 0x30]
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 + 0x30]
mov rcx, rdi
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov edx, dword [rbx + 0x20]
lea rcx, [rbp - 0x10]
mov rdi, qword [rbx + 0x18]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_int____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 + 0x18]
lea rcx, [rbp - 0x10]
mov rdx, r15
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]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x14000aafa
mov rcx, qword [rbx + 0x18]
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 dword [rbx + 0x24], eax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
cmp dword [rbx + 0x24], 0
setg al
mov r12, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
lea r8, str.Cannot_register_virtual_folder.
lea rdx, [rbp + 0x30]
lea rcx, [section..data]
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QMetaObject::tr_char_const____ptr64__char_const____ptr64__int____ptr64]
lea rcx, [rbx + 0x10]
lea rdx, [rbp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
xor al, al
jmp 0x14000aae1
mov al, 1
jmp 0x14000aae1
xor al, al
jmp 0x14000aae6