Function at 0x40bf21
Capabilities:
Reference sql statements

Disassembly:
push 0x48
mov eax, 0x41a48d
call fcn.00417a7d
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x24], edx
mov dword [ecx], edx
mov eax, dword [sym.imp.Qt5Core.dll_struct_QMapDataBase_const_QMapDataBase::shared_null]
mov dword [ebp - 0x18], ecx
mov dword [ecx], eax
push ecx
mov dword [ebp - 4], edx
mov ecx, esp
mov dword [ebp - 0x24], 1
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlDatabase::constructor_void_]
lea ecx, [ebp - 0x28]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlQuery::constructor_class_QString_const___class_QSqlDatabase_]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push str.SELECT_id__url_FROM_announcers_WHERE_torrent_id____ORDER_BY_RANDOM___LIMIT__
lea ecx, [ebp - 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_char_const__]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::prepare_class_QString_const__]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov edi, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::constructor_int_]
lea ecx, [ebp - 0x40]
push esi
call edi
push ecx
mov eax, esp
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlQuery::addBindValue_class_QVariant_const___class_QFlags_enum_QSql::ParamTypeFlag__]
lea ecx, [ebp - 0x14]
mov dword [eax], 1
lea eax, [ebp - 0x40]
push eax
call esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
push ebx
lea ecx, [ebp - 0x40]
call edi
push ecx
mov eax, esp
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
mov dword [eax], 1
lea eax, [ebp - 0x40]
push eax
call esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::exec_void_]
test al, al
je 0x40c11e
mov esi, dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::next_void_]
lea ecx, [ebp - 0x14]
call esi
mov edi, dword [ebp - 0x18]
jmp 0x40c114
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Sql.dll_public:_class_QVariant___thiscall_QSqlQuery::value_int_]
push 0
mov ecx, eax
mov byte [ebp - 4], 7
call dword [sym.imp.Qt5Core.dll_public:_int___thiscall_QVariant::toInt_bool__const]
mov ebx, eax
lea ecx, [ebp - 0x14]
push 1
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
push eax
call dword [sym.imp.Qt5Sql.dll_public:_class_QVariant___thiscall_QSqlQuery::value_int_]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QVariant::toString_void_]
push 0
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QUrl::constructor_class_QString_const___enum_QUrl::ParsingMode_]
mov dword [ebp - 0x1c], eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.0040288f
mov eax, dword [edi]
xor edx, edx
mov byte [ebp - 0x18], 1
mov ecx, dword [eax + 0xc]
add eax, 8
test ecx, ecx
je 0x40c0d7
mov eax, ecx
cmp dword [ecx + 0xc], ebx
jl 0x40c0b5
mov edx, ecx
mov byte [ebp - 0x18], 1
mov ecx, dword [ecx + 4]
jmp 0x40c0bc
mov ecx, dword [ecx + 8]
mov byte [ebp - 0x18], 0
test ecx, ecx
jne 0x40c0a3
test edx, edx
je 0x40c0d7
cmp ebx, dword [edx + 0xc]
jl 0x40c0d7
push dword [ebp - 0x1c]
lea ecx, [edx + 0x10]
call dword [sym.imp.Qt5Core.dll_public:_class_QUrl____thiscall_QUrl::operator_class_QUrl_const__]
jmp 0x40c0e9
push dword [ebp - 0x18]
mov ecx, dword [edi]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
push eax
call fcn.00403497
lea ecx, [ebp - 0x30]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QUrl::destructor_void_]
lea ecx, [ebp - 0x20]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov ebx, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
lea ecx, [ebp - 0x40]
call ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call ebx
lea ecx, [ebp - 0x14]
call esi
test al, al
jne 0x40c032
jmp 0x40c121
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlQuery::destructor_void_]
mov eax, edi
call fcn.00417a2c
ret 0xc