Function at 0x14000c0d0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov qword [rbp + 0x7f], rax
mov edx, 0x3a
lea rcx, str.SELECT_offset__length_FROM__1_WHERE_downloadId:downloadId
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rbp - 0x39], rax
mov dl, 0x20
lea rcx, [rbp + 0x67]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
xor r9d, r9d
lea r8, [0x1400b3ce8]
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x39]
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_class_QString_const____ptr64__int__class_QChar____ptr64]
nop
lea rcx, [rbp - 0x39]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x49]
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x31]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
mov rdx, rdi
lea rcx, [rbp - 1]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_long_long___int64_____ptr64]
nop
mov edx, 0xb
lea rcx, str.:downloadId
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rbp - 0x29], rax
mov r9d, 1
lea r8, [rbp - 1]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::bindValue_class_QString_const____ptr64__class_QVariant_const____ptr64__class_QFlags_enum_QSql::ParamTypeFlag_____ptr64]
nop
lea rcx, [rbp - 0x29]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rbp - 1]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::exec_void____ptr64]
test al, al
jne 0x14000c260
mov rax, qword [rbp + 0x7f]
mov qword [r14], rax
mov rax, qword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov qword [rbp + 0x7f], rax
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x7f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14000c213
cmp ecx, 0xffffffff
je 0x14000c408
mov rax, qword [rbp + 0x7f]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14000c408
mov rsi, qword [rbp + 0x7f]
movsxd rdi, dword [rsi + 8]
add rdi, 2
lea rdi, [rsi + rdi*8]
movsxd rbx, dword [rsi + 0xc]
add rbx, 2
lea rbx, [rsi + rbx*8]
cmp rbx, rdi
je 0x14000c3fe
nop dword [rax + rax]
sub rbx, 8
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000c256
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
cmp rbx, rdi
jne 0x14000c240
jmp 0x14000c3fe
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Sql.dll_public:_class_QSqlRecord___cdecl_QSqlQuery::record_void____ptr64]
nop
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
je 0x14000c379
lea rcx, [rbp + 0xf]
call fcn.140010de0
mov edx, 6
lea rcx, str.offset
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x41]
call qword [sym.imp.Qt5Sql.dll_public:_int___cdecl_QSqlRecord::indexOf_class_QString_const____ptr64_const___ptr64]
mov r8d, eax
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
nop
xor edx, edx
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_long_long___int64____cdecl_QVariant::toLongLong_bool____ptr64_const___ptr64]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call fcn.140010e30
nop
lea rcx, [rbp + 0x27]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x21]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov edx, 6
lea rcx, str.length
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x41]
call qword [sym.imp.Qt5Sql.dll_public:_int___cdecl_QSqlRecord::indexOf_class_QString_const____ptr64_const___ptr64]
mov r8d, eax
lea rdx, [rbp + 0x37]
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Sql.dll_public:_class_QVariant___cdecl_QSqlQuery::value_int____ptr64]
nop
xor edx, edx
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_long_long___int64____cdecl_QVariant::toLongLong_bool____ptr64_const___ptr64]
mov qword [rbp - 9], rax
lea rdx, [rbp - 9]
lea rcx, [rbp + 0xf]
call fcn.140010e20
nop
lea rcx, [rbp + 0x37]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x19]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x7f]
call fcn.14000bed0
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Sql.dll_public:_bool___cdecl_QSqlQuery::next_void____ptr64]
test al, al
jne 0x14000c281
mov rax, qword [rbp + 0x7f]
mov qword [r14], rax
mov rax, qword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov qword [rbp + 0x7f], rax
lea rcx, [rbp - 0x41]
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlRecord::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Sql.dll_public:_void___cdecl_QSqlQuery::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x7f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14000c3c2
cmp ecx, 0xffffffff
je 0x14000c408
mov rax, qword [rbp + 0x7f]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14000c408
mov rsi, qword [rbp + 0x7f]
movsxd rdi, dword [rsi + 8]
add rdi, 2
lea rdi, [rsi + rdi*8]
movsxd rbx, dword [rsi + 0xc]
add rbx, 2
lea rbx, [rsi + rbx*8]
cmp rbx, rdi
je 0x14000c3fe
sub rbx, 8
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000c3f9
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
cmp rbx, rdi
jne 0x14000c3e3
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QListData::dispose_struct_QListData::Data____ptr64_]
nop
mov rax, r14
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret