Function at 0x4184e0
Capabilities:
Contain obfuscated stackstrings
Get process heap flags
Get process heap force flags
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x442125
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 dword [esp + 0x24], ecx
mov dword [esp + 0x20], 0
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 + 0x4c], esp
mov edi, esp
push 0x18
mov ebx, 1
push str.______Consulta_de_IBPTax
mov dword [esp + 0x74], ebx
call esi
mov dword [edi], eax
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x7c], 2
call fcn.00402ec0
mov byte [esp + 0x7c], bl
mov ecx, dword [0x4a5fd0]
add esp, 0x10
call fcn.00408ad0
push 7
push str.NCM:__1
call esi
mov dword [esp + 0x30], eax
add esp, 4
mov edi, esp
mov dword [esp + 0x4c], esp
push ecx
mov byte [esp + 0x34], 0x20
mov eax, dword [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0x74], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
lea ecx, [esp + 0x80]
push ecx
push edi
mov edi, dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_]
lea ecx, [esp + 0x3c]
call edi
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x74], 4
call fcn.00402ec0
mov byte [esp + 0x74], 3
mov ecx, dword [0x4a5fd0]
add esp, 8
call fcn.00408ad0
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], bl
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push 0x24
push str.SELECT__1___2_FROM__3_WHERE__4:ncm_
call esi
mov dword [esp + 0x20], eax
add esp, 4
mov byte [esp + 0x30], 0x20
mov edx, dword [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x70], 5
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
push ecx
mov dword [esp + 0x38], esp
mov ebp, esp
push 0x12
push str.nome_ibptax_codigo
call esi
mov dword [ebp], eax
push 0x4a6094
mov byte [esp + 0x80], 6
push 0x404400
call fcn.00402ec0
add esp, 0x10
lea eax, [esp + 0x54]
mov byte [esp + 0x74], 5
mov ecx, dword [0x4a6098]
push eax
call fcn.00411a80
push eax
lea ecx, [esp + 0x34]
push ecx
push ecx
mov byte [esp + 0x40], 0x20
mov edx, dword [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
mov byte [esp + 0x80], 7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
push ecx
mov dword [esp + 0x68], esp
mov ebp, esp
push 0x12
push str.nome_tabela_ibptax
call esi
mov dword [ebp], eax
push 0x4a6094
push 0x404400
mov byte [esp + 0x94], 8
call fcn.00402ec0
add esp, 0x10
lea eax, [esp + 0x60]
mov byte [esp + 0x84], 7
mov ecx, dword [0x4a6098]
push eax
call fcn.00411a80
push eax
lea ecx, [esp + 0x4c]
push ecx
push ecx
mov byte [esp + 0x50], 0x20
mov edx, dword [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
mov byte [esp + 0x90], 9
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
push ecx
mov dword [esp + 0x78], esp
mov ebp, esp
push 0x13
push str.nome_ibptax_aliqimp
call esi
mov dword [ebp], eax
push 0x4a6094
push 0x404400
mov byte [esp + 0xa4], 0xa
call fcn.00402ec0
add esp, 0x10
lea eax, [esp + 0x6c]
mov byte [esp + 0x94], 9
mov ecx, dword [0x4a6098]
push eax
call fcn.00411a80
push eax
lea ecx, [esp + 0x60]
push ecx
push ecx
mov byte [esp + 0x60], 0x20
mov edx, dword [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
mov byte [esp + 0xa0], 0xb
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
push ecx
mov dword [esp + 0x88], esp
mov ebp, esp
push 0x13
push str.nome_ibptax_aliqnac
call esi
mov dword [ebp], eax
push 0x4a6094
push 0x404400
mov byte [esp + 0xb4], 0xc
call fcn.00402ec0
add esp, 0x10
lea eax, [esp + 0x78]
mov byte [esp + 0xa4], 0xb
mov ecx, dword [0x4a6098]
push eax
call fcn.00411a80
push eax
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0xa8], 0xd
call edi
mov ecx, eax
mov byte [esp + 0x98], 0xe
call edi
mov ecx, eax
mov byte [esp + 0x88], 0xf
call edi
mov ecx, eax
mov byte [esp + 0x78], 0x10
call edi
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 0x11
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0x10
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0xf
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_]
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 0xd
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 0xb
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 9
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 5
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov edx, dword [sym.imp.Qt5Sql.dll_char__QSqlDatabase::defaultConnection]
mov eax, dword [edx]
test eax, eax
je 0x41886b
mov edi, eax
lea edx, [edi + 1]
nop
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x418860
sub edi, edx
jmp 0x41886d
xor edi, edi
push eax
push edi
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_]
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x74], 0x12
call dword [sym.imp.Qt5Sql.dll_public:_static_class_QSqlDatabase___cdecl_QSqlDatabase::database_class_QString_const___bool_]
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0x14
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x50], 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]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 0x15
call dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::prepare_class_QString_const__]
test al, al
jne 0x4189af
push ecx
mov dword [esp + 0x50], 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], 0x16
call fcn.00402ec0
mov byte [esp + 0x7c], 0x15
mov ecx, dword [0x4a5fd0]
add esp, 0x10
call fcn.00409250
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Sql.dll_public:_class_QSqlError___thiscall_QSqlQuery::lastError_void_]
lea edx, [esp + 0x48]
push edx
mov ecx, eax
mov byte [esp + 0x6c], 0x17
call dword [sym.imp.Qt5Sql.dll_public:_class_QString___thiscall_QSqlError::text_void_]
mov esi, dword [esp + 0x24]
add esi, 0x20
push eax
mov ecx, esi
mov byte [esp + 0x6c], 0x18
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 0x17
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 0x15
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlError::destructor_void_]
push ecx
mov ecx, esp
mov dword [esp + 0x50], 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 + 0x74], 0x19
call fcn.00402ec0
mov byte [esp + 0x74], 0x15
mov ecx, dword [0x4a5fd0]
add esp, 8
call fcn.00409250
mov esi, dword [esp + 0x70]
mov eax, dword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov dword [esi], eax
mov dword [esp + 0x20], ebx
jmp 0x418c63
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x54]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
push 4
push str.:ncm
mov byte [esp + 0x70], 0x1a
call esi
mov dword [esp + 0x34], eax
add esp, 4
mov eax, esp
mov dword [esp + 0x50], esp
lea edx, [esp + 0x54]
mov dword [eax], ebx
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 0x1b
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlQuery::bindValue_class_QString_const___class_QVariant_const___class_QFlags_enum_QSql::ParamTypeFlag__]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 0x1a
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov edi, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 0x15
call edi
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::exec_void_]
test al, al
jne 0x418afc
push ecx
mov dword [esp + 0x50], 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 + 0x7c], 0x1c
call fcn.00402ec0
mov byte [esp + 0x7c], 0x15
mov ecx, dword [0x4a5fd0]
add esp, 0x10
call fcn.00409250
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Sql.dll_public:_class_QSqlError___thiscall_QSqlQuery::lastError_void_]
lea edx, [esp + 0x48]
push edx
mov ecx, eax
mov byte [esp + 0x6c], 0x1d
call dword [sym.imp.Qt5Sql.dll_public:_class_QString___thiscall_QSqlError::text_void_]
mov esi, dword [esp + 0x24]
add esi, 0x20
push eax
mov ecx, esi
mov byte [esp + 0x6c], 0x1e
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 0x1d
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 0x15
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlError::destructor_void_]
push ecx
mov ecx, esp
mov dword [esp + 0x50], 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 + 0x74], 0x1f
call fcn.00402ec0
mov byte [esp + 0x74], 0x15
mov ecx, dword [0x4a5fd0]
add esp, 8
call fcn.00409250
mov esi, dword [esp + 0x70]
mov eax, dword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov dword [esi], eax
mov dword [esp + 0x20], ebx
jmp 0x418c63
lea ecx, [esp + 0x14]
call dword [sym.imp.Qt5Sql.dll_public:_bool___thiscall_QSqlQuery::first_void_]
push ecx
mov dword [esp + 0x50], esp
test al, al
jne 0x418b6a
mov edi, esp
push 0x2e
push str.Busca_do_ibptax_nao_encontrou_nenhum_resultado
call esi
mov dword [edi], eax
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x7c], 0x20
call fcn.00402ec0
mov byte [esp + 0x7c], 0x15
mov ecx, dword [0x4a5fd0]
add esp, 0x10
call fcn.00408ad0
mov ecx, dword [esp + 0x24]
push str.0_results
add ecx, 0x20
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_char_const__]
mov esi, dword [esp + 0x70]
mov ecx, dword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov dword [esi], ecx
mov dword [esp + 0x20], ebx
jmp 0x418c63
mov ebp, esp
push 0x12
push str.Busca_de_ibptax_ok
call esi
mov dword [ebp], eax
push 0x4a5fcc
push fcn.00402e40
mov byte [esp + 0x7c], 0x21
call fcn.00402ec0
mov byte [esp + 0x7c], 0x15
mov ecx, dword [0x4a5fd0]
add esp, 0x10
call fcn.00408ad0
mov edx, dword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov dword [esp + 0x24], edx
mov esi, dword [sym.imp.Qt5Sql.dll_public:_class_QVariant___thiscall_QSqlQuery::value_int_]
push 0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0x22
call esi
mov ebp, dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QVariant::toString_void_]
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
mov byte [esp + 0x6c], 0x23
call ebp
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0x24
call fcn.00406bc0
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 0x23
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 0x22
call edi
push ebx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x1c]
call esi
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
mov byte [esp + 0x6c], 0x25
call ebp
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0x26
call fcn.00406bc0
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 0x25
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 0x22
call edi
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00406800
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x68], 0x15
call fcn.00404160
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 0x14
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlQuery::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 5
call dword [sym.imp.Qt5Sql.dll_public:_void___thiscall_QSqlDatabase::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], bl
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8