Function at 0x4c05f0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5389f7
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov esi, dword [0x5c6f24]
xor edi, edi
cmp dword [0x5c6f20], edi
jne 0x4c09e8
push edi
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x58]
call sub.mfc90u.dll_CSingleLock::CSingleLock
mov dword [esp + 0xac], edi
push 0xffffffffffffffff
lea ecx, [esp + 0x54]
call sub.mfc90u.dll_CSingleLock::Lock
lea ecx, [esp + 0x1c]
call dword [0x55a6c4]
mov byte [esp + 0xac], 1
mov ecx, dword [esp + 0xb4]
push ecx
lea edx, [esp + 0x20]
push str.SELECT__FROM_wtw_message_data_WHERE_msg_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 + 0x28]
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x94]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0xac], 2
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x90]
call dword [sym.imp.libWTW.module_public:_class_wtw::db::CReader___thiscall_wtw::db::CCommand::executeReader_void_]
mov byte [esp + 0xac], 3
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
test eax, eax
jne 0x4c0992
mov edi, dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_void_]
lea ecx, [esp + 0x5c]
call edi
mov byte [esp + 0xac], 4
lea ecx, [esp + 0x6c]
call edi
mov byte [esp + 0xac], 5
mov ebp, dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_wchar_t_const__]
push 0x55ae9c
lea ecx, [esp + 0x44]
call ebp
mov byte [esp + 0xac], 6
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 + 0x40]
push edx
lea eax, [esp + 0x60]
push eax
push 1
lea ecx, [esp + 0x30]
call ebx
mov byte [esp + 0xac], 5
mov esi, dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::CString::destructor_void_]
lea ecx, [esp + 0x40]
call esi
lea ecx, [esp + 0x5c]
call dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::operator_wchar_t_const__void_const]
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]
push 0x55ae9c
lea ecx, [esp + 0x44]
call ebp
mov byte [esp + 0xac], 7
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x70]
push edx
push 2
lea ecx, [esp + 0x30]
call ebx
mov byte [esp + 0xac], 5
lea ecx, [esp + 0x40]
call esi
lea ecx, [esp + 0x6c]
call dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::operator_wchar_t_const__void_const]
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]
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push 8
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__long_long___int64____long_long___int64__]
mov ecx, dword [esp + 0xc8]
push 0
push 0
push ecx
push 3
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__long_long___int64____long_long___int64__]
mov eax, dword [esp + 0x34]
and eax, 0x10000000
xor ecx, ecx
or eax, ecx
jne 0x4c083f
lea ecx, [esp + 0x40]
call edi
mov byte [esp + 0xac], 8
push 0x55ae9c
lea ecx, [esp + 0x80]
call ebp
mov byte [esp + 0xac], 9
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x44]
push eax
push 4
lea ecx, [esp + 0x30]
call ebx
mov byte [esp + 0xac], 8
lea ecx, [esp + 0x7c]
call esi
lea ecx, [esp + 0x40]
call dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::operator_wchar_t_const__void_const]
mov ecx, dword [esp + 0xb8]
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 byte [esp + 0xac], 5
lea ecx, [esp + 0x40]
call esi
jmp 0x4c08bb
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 4
lea ecx, [esp + 0x30]
xor ebx, ebx
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__void____int__]
mov eax, dword [esp + 0x34]
and eax, 0x20000000
xor ecx, ecx
or eax, ecx
je 0x4c0882
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call fcn.004bba70
add esp, 0xc
mov ebx, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.libWTW.module_public:_static_wchar_t____cdecl_wtw::CConv::utow_char_const__]
mov ecx, dword [esp + 0xbc]
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
push edi
call sub.mfc90u.dll_delete__
add esp, 4
test ebx, ebx
je 0x4c08bb
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x55ae9c
lea edx, [esp + 0x24]
push edx
push 5
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], 0
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__wchar_t_const____wchar_t_const__]
mov eax, dword [esp + 0x20]
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]
mov ecx, dword [esp + 0xc8]
push 0
push 0
push ecx
push 3
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__long_long___int64____long_long___int64__]
mov ebp, dword [esp + 0xcc]
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov ebx, str._a_name_highlight____a__span_class_highlight__
call fcn.004393e0
mov bl, 0xa
mov byte [esp + 0xb0], bl
push eax
lea eax, [esp + 0x20]
push eax
mov edi, str.__span_
call fcn.0040f2b0
add esp, 0xc
mov byte [esp + 0xac], 0xb
mov eax, dword [eax]
mov ebp, dword [ebp]
mov ecx, dword [esp + 0xb8]
push eax
push ebp
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
mov byte [esp + 0xac], bl
lea ecx, [esp + 0x18]
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 + 0xac], 5
lea ecx, [esp + 0x14]
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 + 0xac], 4
lea ecx, [esp + 0x6c]
call esi
mov byte [esp + 0xac], 3
lea ecx, [esp + 0x5c]
call esi
lea ecx, [esp + 0x50]
call sub.mfc90u.dll_CSingleLock::Unlock
mov byte [esp + 0xac], 2
lea ecx, [esp + 0x24]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [esp + 0xac], 1
lea ecx, [esp + 0x8c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
mov byte [esp + 0xac], 0
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]
mov dword [esp + 0xac], 0xffffffff
lea ecx, [esp + 0x50]
call sub.mfc90u.dll_CSingleLock::Unlock
xor eax, eax
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x1c