Function at 0x1400065e0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
mov rbp, rsp
sub rsp, 0x30
mov rbx, qword [rcx + 0x18]
mov rsi, rcx
test rbx, rbx
je 0x1400067df
mov dword [rbp - 0x10], 0x2a
lea rax, str.SELECT_id_FROM_FileNameTable_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_conda.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp + 0x20]
mov rcx, rbx
call qword [sym.imp.Qt5Sql_conda.dll_public:_bool___cdecl_QSqlQuery::exec_class_QString_const____ptr64____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.Qt5Sql_conda.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x14000665b
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.Qt5Sql_conda.dll_public:_bool___cdecl_QSqlQuery::isValid_void_const___ptr64]
test al, al
jne 0x1400067d5
mov rbx, qword [rsi + 0x18]
lea rax, str.INSERT_INTO_FileDataTable_VALUES__Null____
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x2a
lea rcx, [rbp + 0x20]
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp + 0x20]
mov rcx, rbx
call qword [sym.imp.Qt5Sql_conda.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rbx, qword [rsi + 0x18]
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QByteArray::constructor_void____ptr64]
mov rdx, rax
lea rcx, [rbp - 0x10]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QVariant::constructor_class_QByteArray_const____ptr64____ptr64]
mov r9d, 1
lea r8, [rbp - 0x10]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.Qt5Sql_conda.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_conda.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.Qt5Sql_conda.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x1400067df
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x68], rdi
call qword [sym.imp.Qt5Sql_conda.dll_public:_class_QVariant___cdecl_QSqlQuery::lastInsertId_void____ptr64]
mov rcx, rax
xor edx, edx
call qword [sym.imp.Qt5Core_conda.dll_public:_int___cdecl_QVariant::toInt_bool____ptr64_const___ptr64]
lea rcx, [rbp - 0x10]
mov dword [rbp + 0x20], eax
mov edi, eax
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rbx, qword [rsi + 0x18]
lea rax, str.INSERT_INTO_FileNameTable__FolderId__Name__FileId__Title___VALUES__0________
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x50
lea rcx, [rbp + 0x28]
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rbp + 0x28]
mov rcx, rbx
call qword [sym.imp.Qt5Sql_conda.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rbx, qword [rsi + 0x18]
lea rcx, [rbp - 0x10]
mov edx, edi
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QVariant::constructor_int____ptr64]
mov r9d, 1
lea r8, [rbp - 0x10]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.Qt5Sql_conda.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_conda.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
cmp edi, 0xffffffff
mov rdi, qword [rsp + 0x68]
jle 0x1400067df
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.Qt5Sql_conda.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x1400067df
lea rcx, [rbp + 0x28]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QString::constructor_void____ptr64]
mov r8, rax
lea rcx, [rsi + 0x28]
lea r9, [rbp + 0x20]
lea rdx, [rbp + 0x30]
call fcn.1400061c0
lea rcx, [rbp + 0x28]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov al, 1
add rsp, 0x30
pop rsi
pop rbx
pop rbp
ret
xor al, al
add rsp, 0x30
pop rsi
pop rbx
pop rbp
ret