Function at 0x14000c910
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14002a1d8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, qword [rcx + 0x28]
mov rsi, rcx
test rbx, rbx
je 0x14000cb0f
lea rax, str.SELECT_id_FROM_FileNameTable_WHERE_Name
mov qword [rbp - 0x30], 0x2a
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::exec_class_QString_const____ptr64____ptr64]
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x14000c99b
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::isValid_void_const___ptr64]
test al, al
jne 0x14000cb0b
mov rbx, qword [rsi + 0x28]
lea rax, str.INSERT_INTO_FileDataTable_VALUES__Null____
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x30], 0x2a
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rbx, qword [rsi + 0x28]
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::constructor_void____ptr64]
mov rdx, rax
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::constructor_class_QByteArray_const____ptr64____ptr64]
mov r9d, 1
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, rbx
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]
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x14000cb0f
mov rcx, qword [rsi + 0x28]
lea rdx, [rbp - 0x58]
mov qword [rsp + 0x98], rdi
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 - 0x58]
mov dword [rbp - 0x60], eax
mov edi, eax
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rbx, qword [rsi + 0x28]
lea rax, str.INSERT_INTO_FileNameTable__FolderId__Name__FileId__Title___VALUES__0________
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x30], 0x50
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rbx, qword [rsi + 0x28]
lea rcx, [rbp - 0x58]
mov edx, edi
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::constructor_int____ptr64]
mov r9d, 1
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rbx
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 - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
cmp edi, 0xffffffff
mov rdi, qword [rsp + 0x98]
jle 0x14000cb0f
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x14000cb0f
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
mov r8, rax
lea rcx, [rsi + 0x38]
lea r9, [rbp - 0x60]
lea rdx, [rbp - 0x30]
call fcn.14000c260
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov al, 1
jmp 0x14000cb11
xor al, al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001e950
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret