Function at 0x1400127f0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x14002a1d8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, qword [rcx + 0x28]
xor esi, esi
mov dword [rbp - 0x38], esi
mov r14, r8
mov r15, rdx
mov rbx, rcx
test rdi, rdi
je 0x140012c7a
cmp qword [rdx + 0x10], rsi
je 0x140012c7a
cmp qword [r8 + 0x10], rsi
je 0x140012c7a
mov qword [rsp + 0x70], r12
lea rdx, [rbp - 0x48]
lea r12, str.SELECT_Id_FROM_FolderTable_WHERE_Name_
mov qword [rbp - 0x48], 0x27
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x40], r12
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdi, qword [rbx + 0x28]
lea rcx, [rbp - 0x30]
mov rdx, r15
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
lea r9d, [rsi + 1]
xor edx, edx
lea r8, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::isValid_void_const___ptr64]
test al, al
je 0x1400128f5
mov rcx, qword [rbx + 0x28]
lea rdx, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.Qt6Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
xor edx, edx
mov esi, 1
mov rcx, rax
call qword [sym.imp.Qt6Core.dll_public:_int___cdecl_QVariant::toInt_bool____ptr64_const___ptr64]
test eax, eax
jle 0x1400128f5
movzx edi, sil
jmp 0x1400128f8
xor dil, dil
test sil, 1
je 0x140012908
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
test dil, dil
jne 0x140012c76
mov rdi, qword [rbx + 0x28]
lea rax, str.SELECT_Id_FROM_NamespaceTable_WHERE_Name_
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x30]
mov dword [rbx + 0x30], 0xffffffff
mov qword [rbp - 0x48], 0x2a
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdi, qword [rbx + 0x28]
lea rcx, [rbp - 0x30]
mov rdx, r14
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
mov r9d, 1
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x1400129c5
mov rcx, qword [rbx + 0x28]
lea rdx, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.Qt6Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
mov rcx, rax
xor edx, edx
call qword [sym.imp.Qt6Core.dll_public:_int___cdecl_QVariant::toInt_bool____ptr64_const___ptr64]
lea rcx, [rbp - 0x30]
mov dword [rbx + 0x30], eax
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
cmp dword [rbx + 0x30], 0
jge 0x140012a73
mov rdi, qword [rbx + 0x28]
lea rax, str.INSERT_INTO_NamespaceTable_VALUES_NULL____
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x48], 0x2a
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdi, qword [rbx + 0x28]
lea rcx, [rbp - 0x30]
mov rdx, r14
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
mov r9d, 1
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x140012a6f
mov rcx, qword [rbx + 0x28]
lea rdx, [rbp - 0x30]
call qword [sym.imp.Qt6Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::lastInsertId_void____ptr64]
mov rcx, rax
xor edx, edx
call qword [sym.imp.Qt6Core.dll_public:_int___cdecl_QVariant::toInt_bool____ptr64_const___ptr64]
lea rcx, [rbp - 0x30]
mov dword [rbx + 0x30], eax
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
cmp dword [rbx + 0x30], 0
jle 0x140012c37
mov rdi, qword [rbx + 0x28]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x48], 0x27
mov qword [rbp - 0x40], r12
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdi, qword [rbx + 0x28]
lea rcx, [rbp - 0x30]
mov rdx, r15
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
mov r9d, 1
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x140012b37
nop word [rax + rax]
mov rcx, qword [rbx + 0x28]
lea rdx, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.Qt6Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
mov rcx, rax
xor edx, edx
call qword [sym.imp.Qt6Core.dll_public:_int___cdecl_QVariant::toInt_bool____ptr64_const___ptr64]
lea rcx, [rbp - 0x30]
mov dword [rbx + 0x34], eax
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
jne 0x140012b00
cmp dword [rbx + 0x34], 0
jg 0x140012c76
mov rdi, qword [rbx + 0x28]
lea rax, str.INSERT_INTO_FolderTable__NamespaceId__Name__VALUES_______
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x48], 0x39
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov edx, dword [rbx + 0x30]
lea rcx, [rbp - 0x30]
mov rdi, qword [rbx + 0x28]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::constructor_int____ptr64]
mov r9d, 1
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rdi, qword [rbx + 0x28]
lea rcx, [rbp - 0x30]
mov rdx, r15
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
mov r9d, 1
lea r8, [rbp - 0x30]
mov edx, r9d
mov rcx, rdi
call qword [sym.imp.Qt6Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x140012c37
mov rcx, qword [rbx + 0x28]
lea rdx, [rbp - 0x30]
call qword [sym.imp.Qt6Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::lastInsertId_void____ptr64]
mov rcx, rax
xor edx, edx
call qword [sym.imp.Qt6Core.dll_public:_int___cdecl_QVariant::toInt_bool____ptr64_const___ptr64]
lea rcx, [rbp - 0x30]
mov dword [rbx + 0x34], eax
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
cmp dword [rbx + 0x34], 0
setg al
mov r12, qword [rsp + 0x70]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001e950
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
lea r8, str.Cannot_register_virtual_folder.
lea rdx, [rbp - 0x30]
lea rcx, [0x140021210]
call qword [sym.imp.Qt6Core.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.Qt6Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
xor al, al
jmp 0x140012c19
mov al, 1
jmp 0x140012c19
xor al, al
jmp 0x140012c1e