Function at 0x41ae00
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x442844
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5f44]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
push ecx
mov dword [esp + 0x3c], esp
mov edi, esp
push 0x13
push str.nome_tabela_produto
mov dword [esp + 0x64], 0
call esi
mov dword [edi], eax
push 0x4a6094
push 0x404400
mov byte [esp + 0x6c], 1
call fcn.00402ec0
add esp, 0x10
lea eax, [esp + 0x30]
mov byte [esp + 0x5c], 0
mov ecx, dword [0x4a6098]
push eax
call fcn.00411a80
push ecx
mov dword [esp + 0x3c], esp
mov edi, esp
push 0xb
push str.nome_codigo
mov byte [esp + 0x64], 2
call esi
mov dword [edi], eax
push 0x4a6094
push 0x404400
mov byte [esp + 0x6c], 3
call fcn.00402ec0
add esp, 0x10
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x60], 2
mov ecx, dword [0x4a6098]
call fcn.00411a80
push 0x29
push str.SELECT__1_FROM__2_WHERE__1___3_LIMIT_1
mov byte [esp + 0x60], 4
call esi
mov dword [esp + 0x20], eax
add esp, 4
mov byte [esp + 0x20], 0x20
mov edx, dword [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x60], 5
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
mov edi, dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_]
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call edi
mov ebx, eax
push ecx
mov byte [esp + 0x20], 0x20
mov edx, dword [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x60], 6
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call edi
mov ebx, eax
push ecx
mov byte [esp + 0x20], 0x20
mov edx, dword [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x60], 7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 9
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0xa
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0xb
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push 0xd
push str.Thread_import
call esi
mov dword [esp + 0x24], eax
push 1
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x6c], 0xc
call dword [sym.imp.Qt5Sql.dll_public:_static_class_QSqlDatabase___cdecl_QSqlDatabase::database_class_QString_const___bool_]
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 0xe
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlDatabase::constructor_class_QSqlDatabase_const__]
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlQuery::constructor_class_QSqlDatabase_]
lea eax, [esp + 0x24]
mov bl, 0xf
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], bl
call dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::prepare_class_QString_const__]
test al, al
jne 0x41b0b3
push ecx
mov dword [esp + 0x3c], esp
mov edi, esp
push 0x18
push str.Preparo_da_query_falhou:
call esi
mov dword [edi], eax
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x6c], 0x10
call fcn.00402ec0
mov byte [esp + 0x6c], bl
mov ecx, dword [0x4a5fd0]
add esp, 0x10
call fcn.00409250
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Sql.dll_public:_class_QSqlError___thiscall_QSqlQuery::lastError_void_]
lea edx, [esp + 0x38]
push edx
mov ecx, eax
mov byte [esp + 0x5c], 0x11
call dword [sym.imp.Qt5Sql.dll_public:_class_QString___thiscall_QSqlError::text_void_]
lea edi, [ebp + 0x20]
push eax
mov ecx, edi
mov byte [esp + 0x5c], 0x12
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 0x11
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], bl
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlError::destructor_void_]
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x64], 0x13
call fcn.00402ec0
mov byte [esp + 0x64], bl
mov ecx, dword [0x4a5fd0]
add esp, 8
call fcn.00409250
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::exec_void_]
test al, al
jne 0x41b180
push ecx
mov dword [esp + 0x3c], esp
mov edi, esp
push 0x19
push str.Execucao_da_query_falhou:
call esi
mov dword [edi], eax
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x6c], 0x14
call fcn.00402ec0
mov byte [esp + 0x6c], bl
mov ecx, dword [0x4a5fd0]
add esp, 0x10
call fcn.00409250
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Sql.dll_public:_class_QSqlError___thiscall_QSqlQuery::lastError_void_]
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
mov byte [esp + 0x5c], 0x15
call dword [sym.imp.Qt5Sql.dll_public:_class_QString___thiscall_QSqlError::text_void_]
lea esi, [ebp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x5c], 0x16
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 0x15
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], bl
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlError::destructor_void_]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x64], 0x17
call fcn.00402ec0
mov byte [esp + 0x64], bl
mov ecx, dword [0x4a5fd0]
add esp, 8
call fcn.00409250
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::first_void_]
push 0x47f56e
lea ecx, [ebp + 0x20]
mov bl, al
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_char_const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 0xe
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlQuery::destructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 0xb
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlDatabase::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 4
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4