Function at 0x4bf440
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x538a9d
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
cmp dword [0x5c6f20], 0
mov esi, dword [0x5c6f24]
jne 0x4bf7ff
push 0
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x60]
call sub.mfc90u.dll_CSingleLock::CSingleLock
mov dword [esp + 0xb0], 0
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call sub.mfc90u.dll_CSingleLock::Lock
lea ecx, [esp + 0x24]
call dword [0x55a6c4]
mov byte [esp + 0xb0], 1
mov ecx, dword [esp + 0xb8]
push ecx
lea edx, [esp + 0x28]
push str.SELECT__FROM_wtw_sms_data_WHERE_sms_id___d
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov eax, dword [esp + 0x30]
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x9c]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0xb0], 2
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x98]
call dword [sym.imp.libWTW.module_public:_class_wtw::db::CReader___thiscall_wtw::db::CCommand::executeReader_void_]
mov byte [esp + 0xb0], 3
lea ecx, [esp + 0x3c]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
test eax, eax
jne 0x4bf737
mov esi, dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_void_]
lea ecx, [esp + 0x64]
call esi
mov byte [esp + 0xb0], 4
lea ecx, [esp + 0x84]
call esi
mov byte [esp + 0xb0], 5
lea ecx, [esp + 0x74]
call esi
mov byte [esp + 0xb0], 6
mov edi, dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_wchar_t_const__]
push 0x55ae9c
lea ecx, [esp + 0x30]
call edi
mov byte [esp + 0xb0], 7
mov ebx, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__class_wtw::CString___class_wtw::CString_const__]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x68]
push eax
push 1
lea ecx, [esp + 0x48]
call ebx
mov byte [esp + 0xb0], 6
mov esi, dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::CString::destructor_void_]
lea ecx, [esp + 0x2c]
call esi
push 0
push 0
lea ecx, [esp + 0x54]
push ecx
push 5
lea ecx, [esp + 0x4c]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__long_long___int64____long_long___int64__]
mov ebp, dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::operator_wchar_t_const__void_const]
lea ecx, [esp + 0x64]
call ebp
mov ecx, dword [esp + 0xc4]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov eax, dword [esp + 0x4c]
and eax, 0x10000000
xor ecx, ecx
or eax, ecx
jne 0x4bf621
push 0x55ae9c
lea ecx, [esp + 0x30]
call edi
mov byte [esp + 0xb0], 8
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x88]
push eax
push 3
lea ecx, [esp + 0x48]
call ebx
mov byte [esp + 0xb0], 6
lea ecx, [esp + 0x2c]
call esi
lea ecx, [esp + 0x84]
call ebp
mov ecx, dword [esp + 0xbc]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
jmp 0x4bf6ab
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 3
lea ecx, [esp + 0x48]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__void____int__]
mov eax, dword [esp + 0x4c]
and eax, 0x20000000
xor ecx, ecx
or eax, ecx
je 0x4bf669
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call fcn.004bba70
add esp, 0xc
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.libWTW.module_public:_static_wchar_t____cdecl_wtw::CConv::utow_char_const__]
mov ecx, dword [esp + 0xc0]
add esp, 4
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov ecx, dword [esp + 0x20]
push ecx
call sub.mfc90u.dll_delete__
add esp, 4
cmp dword [esp + 0x28], 0
je 0x4bf6ab
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x55ae9c
lea ecx, [esp + 0x30]
call edi
mov byte [esp + 0xb0], 9
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x78]
push ecx
push 4
lea ecx, [esp + 0x48]
call ebx
mov byte [esp + 0xb0], 6
lea ecx, [esp + 0x2c]
call esi
lea ecx, [esp + 0x74]
call ebp
mov ecx, dword [esp + 0xc0]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov edx, dword [esp + 0xc8]
push 0
push 0
push edx
push 2
lea ecx, [esp + 0x4c]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__long_long___int64____long_long___int64__]
mov byte [esp + 0xb0], 5
lea ecx, [esp + 0x74]
call esi
mov byte [esp + 0xb0], 4
lea ecx, [esp + 0x84]
call esi
mov byte [esp + 0xb0], 3
lea ecx, [esp + 0x64]
call esi
mov esi, dword [esp + 0xcc]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov ebx, str._a_name_highlight____a__span_class_highlight__
call fcn.004393e0
mov bl, 0xa
mov byte [esp + 0xb4], bl
push eax
lea ecx, [esp + 0x28]
push ecx
mov edi, str.__span_
call fcn.0040f2b0
add esp, 0xc
mov byte [esp + 0xb0], 0xb
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, dword [esp + 0xc4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
mov byte [esp + 0xb0], bl
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xb0], 3
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x58]
call sub.mfc90u.dll_CSingleLock::Unlock
mov byte [esp + 0xb0], 2
lea ecx, [esp + 0x3c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [esp + 0xb0], 1
lea ecx, [esp + 0x94]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
mov byte [esp + 0xb0], 0
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0x58]
call sub.mfc90u.dll_CSingleLock::Unlock
xor eax, eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 0x18