Function at 0x140010cb0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1400e6280]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, r8
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x11], rdx
mov dword [rbp - 0x61], 1
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov dword [rbp - 0x61], 1
lea rdx, str.SELECT_offset__length_FROM__1_WHERE_downloadId:downloadId
lea rcx, [rbp - 9]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
mov rbx, rax
mov edx, 0x20
lea rcx, [rbp - 0x5d]
call qword [sym.imp.Qt6Core.dll___0QChar__QEAA__S_Z]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
xor r9d, r9d
lea r8, [0x1400e85c8]
lea rdx, [rbp - 0x39]
mov rcx, rbx
call qword [sym.imp.Qt6Core.dll_public:_class_QString___cdecl_QString::arg_class_QString_const____ptr64__int__class_QChar____ptr64]
nop
lea rcx, [rbp - 9]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x69]
call qword [rax + 0x18]
mov dword [rbp - 0x61], 3
lea rcx, [rbp - 0x39]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
mov rdx, rsi
lea rcx, [rbp + 0xf]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::constructor_long_long___int64_____ptr64]
nop
lea rdx, str.:downloadId
lea rcx, [rbp - 0x51]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
mov r9d, 1
lea r8, [rbp + 0xf]
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x69]
call qword [sym.imp.Qt6Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_class_QString_const____ptr64__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
nop
lea rcx, [rbp - 0x51]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0xf]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
lea rcx, [rbp - 0x69]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
je 0x140010f0d
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x69]
call qword [sym.imp.Qt6Sql.dll_public:_class_QSqlRecord___cdecl_QSqlQuery::record_void____ptr64]
nop
lea rcx, [rbp - 0x69]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x140010f02
nop dword [rax + rax]
lea rcx, [rbp - 0x39]
call fcn.14001ac70
lea rdx, str.offset
lea rcx, [rbp - 0x51]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x59]
call qword [sym.imp.Qt6Sql.dll_public:_int___cdecl_QSqlRecord::indexOf_class_QString_const____ptr64_const___ptr64]
mov r8d, eax
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x69]
call qword [sym.imp.Qt6Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
nop
xor edx, edx
mov rcx, rax
call qword [sym.imp.Qt6Core.dll_public:_long_long___int64____cdecl_QVariant::toLongLong_bool____ptr64_const___ptr64]
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x39]
call fcn.14001acc0
nop
lea rcx, [rbp + 0xf]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x51]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rdx, str.length
lea rcx, [rbp - 0x51]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x59]
call qword [sym.imp.Qt6Sql.dll_public:_int___cdecl_QSqlRecord::indexOf_class_QString_const____ptr64_const___ptr64]
mov r8d, eax
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x69]
call qword [sym.imp.Qt6Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
nop
xor edx, edx
mov rcx, rax
call qword [sym.imp.Qt6Core.dll_public:_long_long___int64____cdecl_QVariant::toLongLong_bool____ptr64_const___ptr64]
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.14001acb0
nop
lea rcx, [rbp + 0xf]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x51]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea r8, [rbp - 0x39]
mov rdx, qword [r14 + 0x10]
mov rcx, r14
call fcn.1400105a0
mov rax, qword [r14]
test rax, rax
je 0x140010ee0
mov eax, dword [rax]
cmp eax, 1
jle 0x140010ef0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call fcn.140010f40
lea rcx, [rbp - 0x69]
call qword [sym.imp.Qt6Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
jne 0x140010df0
lea rcx, [rbp - 0x59]
call qword [sym.imp.Qt6Sql.dll_public:_void___cdecl_QSqlRecord::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x69]
call qword [sym.imp.Qt6Sql.dll_public:_void___cdecl_QSqlQuery::destructor_void____ptr64]
nop
mov rax, r14
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400a36a0
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret