Function at 0x4c37f0
Capabilities:
Contain obfuscated stackstrings
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x538920
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [0x5c6f24]
push 0
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x48]
call sub.mfc90u.dll_CSingleLock::CSingleLock
mov dword [esp + 0x98], 0
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
call sub.mfc90u.dll_CSingleLock::Lock
push str.__xml_version_1.0__encoding_UTF_8_____r_n
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x10]
call dword [0x55a6c4]
mov byte [esp + 0x98], 1
lea ecx, [esp + 0x20]
call dword [0x55a6c4]
mov byte [esp + 0x98], 2
lea ecx, [esp + 0x1c]
call dword [0x55a6c4]
mov byte [esp + 0x98], 3
push edi
lea ecx, [esp + 0x14]
push 0x585f68
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
lea ecx, [esp + 0x2c]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_void_]
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
mov ecx, esi
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::executeAndRead_wchar_t_const___class_wtw::CString__]
lea ecx, [esp + 0x2c]
call dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::operator_wchar_t_const__void_const]
push eax
lea ecx, [esp + 0x24]
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 + 0x98], 3
mov ebp, dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::CString::destructor_void_]
lea ecx, [esp + 0x2c]
call ebp
push edi
lea ecx, [esp + 0x14]
push 0x585fe0
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
lea ecx, [esp + 0x2c]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_void_]
mov byte [esp + 0x98], 5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
mov ecx, esi
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::executeAndRead_wchar_t_const___class_wtw::CString__]
lea ecx, [esp + 0x2c]
call dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::operator_wchar_t_const__void_const]
push eax
lea ecx, [esp + 0x20]
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 + 0x98], 3
lea ecx, [esp + 0x2c]
call ebp
push edi
lea ecx, [esp + 0x14]
push str.SELECT__FROM_wtw_chat_data_WHERE_index_id___d
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
push esi
lea ecx, [esp + 0x84]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0x98], 6
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x80]
call dword [sym.imp.libWTW.module_public:_class_wtw::db::CReader___thiscall_wtw::db::CCommand::executeReader_void_]
mov byte [esp + 0x98], 7
mov eax, dword [0x5c7000]
add eax, 0x34
push eax
lea ecx, [esp + 0x28]
call dword [0x55a520]
mov byte [esp + 0x98], 8
push str._chat_id_
mov ecx, ebx
call dword [0x55a294]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
mov edi, 0x575c4c
call fcn.0040f2b0
mov byte [esp + 0xa0], 9
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, eax
call fcn.0040e540
mov byte [esp + 0xa8], 0xa
push eax
lea eax, [esp + 0x3c]
push eax
mov edi, str.__lname_
call fcn.0040f2b0
mov byte [esp + 0xb0], 0xb
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, eax
call fcn.0040e540
mov byte [esp + 0xb8], 0xc
push eax
lea eax, [esp + 0x3c]
push eax
mov edi, 0x58635c
call fcn.0040f2b0
add esp, 0x28
mov byte [esp + 0x98], 0xd
push eax
mov ecx, ebx
call dword [0x55a4e8]
mov byte [esp + 0x98], 0xc
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 + 0x98], 0xb
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 + 0x98], 0xa
lea ecx, [esp + 0x28]
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 + 0x98], 9
lea ecx, [esp + 0x2c]
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 + 0x98], 8
lea ecx, [esp + 0x3c]
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 + 0x4c]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
test eax, eax
jne 0x4c3beb
mov esi, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__int___int_]
mov edi, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__long_long___int64____long_long___int64__]
jmp 0x4c3ac0
lea ecx, [esp + 0x18]
call dword [0x55a6c4]
mov byte [esp + 0x98], 0xe
lea ecx, [esp + 0x14]
call dword [0x55a6c4]
mov byte [esp + 0x98], 0xf
push 0
lea ecx, [esp + 0x40]
push ecx
push 7
lea ecx, [esp + 0x58]
call esi
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 4
lea ecx, [esp + 0x5c]
call edi
lea ecx, [esp + 0x5c]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_void_]
mov byte [esp + 0x98], 0x10
push 0x55ae9c
lea ecx, [esp + 0x70]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_wchar_t_const__]
mov byte [esp + 0x98], 0x11
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x60]
push ecx
push 5
lea ecx, [esp + 0x58]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__class_wtw::CString___class_wtw::CString_const__]
mov byte [esp + 0x98], 0x10
lea ecx, [esp + 0x6c]
call ebp
lea ecx, [esp + 0x5c]
call dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::operator_wchar_t_const__void_const]
push eax
lea ecx, [esp + 0x18]
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 + 0x98], 0xf
lea ecx, [esp + 0x5c]
call ebp
test byte [esp + 0x3c], 2
mov eax, str.sent
jne 0x4c3b85
mov eax, str.recv
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
lea eax, [esp + 0x28]
push str._entry_direction__s__time__lld___s__entry_
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call dword [0x55a4e8]
mov byte [esp + 0x98], 0xe
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 + 0x98], 8
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]
lea ecx, [esp + 0x4c]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
test eax, eax
je 0x4c3ac0
push str.__chat_
mov ecx, ebx
call dword [0x55a294]
lea ecx, [esp + 0x40]
call sub.mfc90u.dll_CSingleLock::Unlock
mov byte [esp + 0x98], 7
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 byte [esp + 0x98], 6
lea ecx, [esp + 0x4c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [esp + 0x98], 3
lea ecx, [esp + 0x7c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
mov byte [esp + 0x98], 2
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 byte [esp + 0x98], 1
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 + 0x98], 0
lea ecx, [esp + 0x10]
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 + 0x98], 0xffffffff
lea ecx, [esp + 0x40]
call sub.mfc90u.dll_CSingleLock::Unlock
mov eax, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x8c
ret