Function at 0x415040
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x441771
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5f44]
xor eax, esp
push eax
lea eax, [esp + 0x60]
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 + 0x38], esp
mov edi, esp
push 0x18
push str.______Delecao_de_produto
call esi
mov dword [edi], eax
push 0x4a5fcc
push fcn.00402e40
mov dword [esp + 0x7c], 0
call fcn.00402ec0
mov dword [esp + 0x7c], 0xffffffff
mov ecx, dword [0x4a5fd0]
add esp, 0x10
call fcn.00408ad0
push 6
push str.id:__1
call esi
mov dword [esp + 0x2c], eax
add esp, 4
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov bl, 0x20
mov byte [esp + 0x30], bl
mov edx, dword [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov dword [esp + 0x74], 1
mov dword [esp + 0x34], eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x30]
push 0xa
push 0
push edi
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QString::arg_int__int__int__class_QChar_]
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x74], 2
call fcn.00402ec0
mov byte [esp + 0x74], 1
mov ecx, dword [0x4a5fd0]
add esp, 8
call fcn.00408ad0
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push ecx
mov dword [esp + 0x38], esp
mov dword [esp + 0x74], esp
push 0x13
push str.nome_tabela_produto
call esi
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
push 0x4a6094
push 0x404400
mov dword [esp + 0x7c], 3
call fcn.00402ec0
add esp, 0x10
lea edx, [esp + 0x24]
mov dword [esp + 0x6c], 0xffffffff
mov ecx, dword [0x4a6098]
push edx
call fcn.00411a80
push ecx
mov byte [esp + 0x74], bl
mov eax, dword [esp + 0x74]
mov dword [esp + 0x6c], 4
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0xa
push 0
push edi
lea ecx, [esp + 0x28]
push ecx
push ecx
mov byte [esp + 0x40], bl
mov edx, dword [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
push ecx
mov dword [esp + 0x58], esp
mov edi, esp
push 7
push str.nome_id
call esi
mov dword [edi], eax
push 0x4a6094
push 0x404400
mov byte [esp + 0x98], 5
call fcn.00402ec0
add esp, 0x10
lea eax, [esp + 0x54]
mov byte [esp + 0x88], 4
mov ecx, dword [0x4a6098]
push eax
call fcn.00411a80
mov dword [esp + 0x40], eax
push 0x1d
push str.DELETE_FROM__1_WHERE__2___3_
mov byte [esp + 0x8c], 6
call esi
mov dword [esp + 0x94], eax
add esp, 4
mov byte [esp + 0x48], bl
mov edx, dword [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
mov byte [esp + 0x8c], 7
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 + 0x44]
push eax
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x9c]
call edi
mov edx, dword [esp + 0x40]
push edx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
mov byte [esp + 0x8c], 8
call edi
mov ecx, eax
mov byte [esp + 0x7c], 9
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QString::arg_int__int__int__class_QChar_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 0xb
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0xc
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov byte [esp + 0x68], 0xd
lea ecx, [esp + 0x70]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 0xe
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push 9
push str.Query:__1
call esi
mov dword [esp + 0x2c], eax
add esp, 4
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x2c]
mov ebx, esp
mov dword [esp + 0x3c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x74], 0xf
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
lea eax, [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0x38]
call edi
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x74], 0x10
call fcn.00402ec0
mov byte [esp + 0x74], 0xf
mov ecx, dword [0x4a5fd0]
add esp, 8
call fcn.00408ad0
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0xe
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov ecx, dword [sym.imp.Qt5Sql.dll_char__QSqlDatabase::defaultConnection]
mov eax, dword [ecx]
test eax, eax
je 0x41534e
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x415343
sub ecx, edi
jmp 0x415350
xor ecx, ecx
push eax
push ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_]
push 1
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x74], 0x11
call dword [sym.imp.Qt5Sql.dll_public:_static_class_QSqlDatabase___cdecl_QSqlDatabase::database_class_QString_const___bool_]
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0x13
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x40], 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 + 0x18]
mov bl, 0x14
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], bl
call dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::prepare_class_QString_const__]
test al, al
jne 0x4154bf
push ecx
mov dword [esp + 0x40], 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 + 0x7c], 0x15
call fcn.00402ec0
mov byte [esp + 0x7c], 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 + 0x28]
push edx
mov ecx, eax
mov byte [esp + 0x6c], 0x16
call dword [sym.imp.Qt5Sql.dll_public:_class_QString___thiscall_QSqlError::text_void_]
add ebp, 0x20
push eax
mov ecx, ebp
mov byte [esp + 0x6c], 0x17
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0x16
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], bl
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlError::destructor_void_]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push ebp
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov byte [esp + 0x6c], 0x18
push 0x4a5fcc
push fcn.00402e40
call fcn.00402ec0
mov byte [esp + 0x74], bl
mov ecx, dword [0x4a5fd0]
add esp, 8
call fcn.00409250
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 0x13
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlQuery::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0xe
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlDatabase::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 4
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0x68], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
xor al, al
jmp 0x4155f7
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::exec_void_]
push ecx
mov dword [esp + 0x40], esp
mov edi, esp
test al, al
jne 0x415570
push 0x19
push str.Execucao_da_query_falhou:
call esi
mov dword [edi], eax
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x7c], 0x19
call fcn.00402ec0
mov byte [esp + 0x7c], bl
mov ecx, dword [0x4a5fd0]
add esp, 0x10
call fcn.00409250
lea eax, [esp + 0x50]
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 + 0x6c], 0x1a
call dword [sym.imp.Qt5Sql.dll_public:_class_QString___thiscall_QSqlError::text_void_]
add ebp, 0x20
push eax
mov ecx, ebp
mov byte [esp + 0x6c], 0x1b
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 0x1a
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], bl
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlError::destructor_void_]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push ebp
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov byte [esp + 0x6c], 0x1c
jmp 0x415458
push 0x15
push str.Delecao_de_produto_OK
call esi
mov dword [edi], eax
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x7c], 0x1d
call fcn.00402ec0
mov byte [esp + 0x7c], bl
mov ecx, dword [0x4a5fd0]
add esp, 0x10
call fcn.00408ad0
push 0x47f56e
lea ecx, [ebp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_char_const__]
mov ecx, ebp
call fcn.00436df0
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 0x13
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlQuery::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0xe
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlDatabase::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 4
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0x68], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4