Function at 0x18001a590
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov r14, r9
mov dword [rsp + 0x50], ebp
mov r15, r8
mov rbx, qword [rcx + 0x20]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x18001a77d
mov dword [rsp + 0x20], 0x30
lea rax, str.SELECT_COUNT_Key__FROM_SettingsTable_WHERE_Key_
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x20], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rbx, qword [rdi + 0x20]
lea rcx, [rsp + 0x20]
mov rdx, r15
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
lea r9d, [rbp + 1]
xor edx, edx
lea r8, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x18001a686
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x18001a686
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x20]
xor r8d, r8d
call qword [sym.imp.Qt5Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
xor edx, edx
mov ebp, 1
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_int___cdecl_QVariant::toInt_bool____ptr64_const___ptr64]
test eax, eax
je 0x18001a686
xor bl, bl
jmp 0x18001a688
mov bl, 1
test bpl, 1
je 0x18001a699
lea rcx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::clear_void____ptr64]
test bl, bl
jne 0x18001a77d
mov rbx, qword [rdi + 0x20]
lea rax, str.SELECT_Value_FROM_SettingsTable_WHERE_Key_
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x2b
lea rcx, [rsp + 0x50]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QLatin1String____ptr64]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::prepare_class_QString_const____ptr64____ptr64]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rbx, qword [rdi + 0x20]
lea rcx, [rsp + 0x20]
mov rdx, r15
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_class_QString_const____ptr64____ptr64]
mov r9d, 1
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_int__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x18001a77d
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x18001a77d
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x20]
xor r8d, r8d
call qword [sym.imp.Qt5Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::clear_void____ptr64]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_class_QVariant_const____ptr64____ptr64]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
jmp 0x18001a789
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_class_QVariant_const____ptr64____ptr64]
mov rbx, qword [rsp + 0x58]
mov rax, rsi
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret