Function at 0x4bc810
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x541bc5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
cmp edi, 1
jl 0x4bcb2b
push str.Begining_archive_autopurge
push 5
mov ecx, str.ARCH
call fcn.004151b0
mov ebx, dword [sym.imp.MSVCR90.dll__time64]
push 0
call ebx
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
call dword [0x55a6c4]
mov dword [esp + 0x58], 0
push 0
call ebx
mov ecx, eax
mov eax, edi
imul eax, eax, 0x15180
mov ebx, edx
cdq
add esp, 4
sub ecx, eax
sbb ebx, edx
push ebx
push ecx
lea edx, [esp + 0x1c]
push str._lld
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
call fcn.004be0e0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
mov ebx, str.SELECT_index_id_FROM_wtw_chat_index_WHERE_start_time__
call fcn.004393e0
add esp, 4
mov byte [esp + 0x58], 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edi, 0x576bfc
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0x58], 2
mov eax, dword [eax]
push eax
push esi
lea ecx, [esp + 0x44]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0x58], 4
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 bl, 5
mov byte [esp + 0x58], bl
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 edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
call dword [sym.imp.libWTW.module_public:_class_wtw::db::CReader___thiscall_wtw::db::CCommand::executeReader_void_]
mov byte [esp + 0x58], 6
mov ebp, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
lea ecx, [esp + 0x2c]
call ebp
test eax, eax
jne 0x4bc95a
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0x3c]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__long_long___int64____long_long___int64__]
mov edi, dword [esp + 0x1c]
call fcn.004bc740
lea ecx, [esp + 0x2c]
call ebp
test eax, eax
je 0x4bc932
mov byte [esp + 0x58], bl
lea ecx, [esp + 0x2c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x3c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
mov ebx, str.SELECT_conf_id_FROM_wtw_conference_index_WHERE_start_time__
call fcn.004393e0
add esp, 4
mov byte [esp + 0x58], 7
push eax
lea edx, [esp + 0x20]
push edx
mov edi, 0x576bfc
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0x58], 8
mov eax, dword [eax]
push eax
push esi
lea ecx, [esp + 0x44]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0x58], 0xa
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 bl, 0xb
mov byte [esp + 0x58], 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]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.libWTW.module_public:_class_wtw::db::CReader___thiscall_wtw::db::CCommand::executeReader_void_]
mov byte [esp + 0x58], 0xc
lea ecx, [esp + 0x2c]
call ebp
test eax, eax
jne 0x4bca1d
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
lea ecx, [esp + 0x3c]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__long_long___int64____long_long___int64__]
mov edi, dword [esp + 0x1c]
call fcn.004bc670
lea ecx, [esp + 0x2c]
call ebp
test eax, eax
je 0x4bc9f5
mov byte [esp + 0x58], bl
lea ecx, [esp + 0x2c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x3c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
mov ebx, str.DELETE_FROM_wtw_sms_data_WHERE_entry_time__
call fcn.004393e0
add esp, 4
mov bl, 0xd
mov byte [esp + 0x58], bl
push eax
lea eax, [esp + 0x20]
push eax
mov edi, 0x576bfc
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0x58], 0xe
mov eax, dword [eax]
mov ebp, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::executeNoRead_wchar_t_const__]
push eax
mov ecx, esi
call ebp
mov byte [esp + 0x58], bl
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 + 0x58], 0
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 + 0x18]
push ecx
lea ecx, [esp + 0x18]
mov ebx, str.DELETE_FROM_wtw_message_data_WHERE_entry_time__
call fcn.004393e0
add esp, 4
mov bl, 0xf
mov byte [esp + 0x58], bl
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0x58], 0x10
mov eax, dword [eax]
push eax
mov ecx, esi
call ebp
mov byte [esp + 0x58], bl
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 + 0x58], 0
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]
call fcn.004be060
push 0
call dword [sym.imp.MSVCR90.dll__time64]
add esp, 4
sub eax, dword [esp + 0x24]
mov ecx, str.ARCH
sbb edx, dword [esp + 0x28]
push edx
push eax
push str.Ending_archive_autopurge___llds_
push 5
call fcn.004151b0
add esp, 0x10
mov dword [esp + 0x58], 0xffffffff
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 ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret