Function at 0x4c0a10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ccf5
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x5c403c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x25c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x234], edx
mov dword [ebp - 4], 0
mov ebx, dword [0x5c6f24]
mov dword [ebp - 0x284], ebx
cmp dword [0x5c6f20], 0
jne 0x4c18a7
push 0x561530
push 0x56152c
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
push 0x583ec4
push 0x583ecc
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
push 0x583eb8
push 0x583ec0
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
push 0
add ebx, 0x10
push ebx
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::CSingleLock
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.004604d0
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x4c0aea
call fcn.004605a0
lea ecx, [ebp - 0x254]
call dword [0x55a6c4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call dword [0x55a6c4]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x228]
call dword [0x55a6c4]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x258]
call dword [0x55a6c4]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
call dword [0x55a6c4]
mov byte [ebp - 4], 6
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov ecx, eax
or ecx, edi
je 0x4c0b73
push edi
push eax
push 0x584814
lea edx, [ebp - 0x258]
push edx
mov edi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
call edi
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x228]
call dword [0x55a4e8]
jmp 0x4c0b79
mov edi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov ecx, dword [ebp - 0x24c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, eax
or edx, ecx
je 0x4c0bb8
add eax, 0x15180
adc ecx, 0
push ecx
push eax
push str.AND_i.start_time____lld
lea eax, [ebp - 0x258]
push eax
call edi
add esp, 0x10
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x228]
call dword [0x55a4e8]
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x4c0d8f
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4c0d52
cmp dword [eax + 0x1c], 0
je 0x4c0d52
lea ecx, [ebp - 0x224]
call dword [0x55a6c4]
mov byte [ebp - 4], 7
lea esi, [ebp - 0x230]
mov ebx, dword [ebp - 0x21c]
call fcn.00419580
mov ebx, dword [ebp - 0x230]
lea ecx, [ebp - 0x220]
call dword [0x55a6c4]
mov byte [ebp - 4], 8
lea eax, [ebp - 0x230]
call fcn.00413720
mov esi, eax
lea eax, [ebp - 0x230]
call fcn.00413720
mov edx, dword [esi + 0x30]
push edx
mov eax, dword [eax + 0x2c]
push eax
push str._i.contact_id_s_AND_i.contact_net_s_
lea ecx, [ebp - 0x220]
push ecx
call edi
add esp, 0x10
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x224]
call dword [0x55a4e8]
test ebx, ebx
jne 0x4c0ce0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
cmp dword [ebp - 0x22c], ecx
jb 0x4c0c7e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
inc dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx + 0x18]
mov esi, dword [ecx + 0x1c]
add esi, eax
cmp eax, esi
jbe 0x4c0ca2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx]
test ebx, ebx
je 0x4c0cac
cmp ebx, eax
je 0x4c0cb2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp - 0x22c], esi
je 0x4c0ce6
push 0x584460
lea ecx, [ebp - 0x224]
call dword [0x55a294]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4c0c04
mov eax, dword [ebx]
mov ecx, eax
jmp 0x4c0c6a
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x220]
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 edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x224]
push eax
push str.SELECT_i.index_id__i.contact_id__i.start_time__i.contact_net__COUNT_d.index_id__FROM_wtw_chat_index_i__wtw_chat_data_d_WHERE_i.index_id__d.index_id_AND___s___s_GROUP_BY_i.index_id_ORDER_BY_i.start_time_DESC_
lea ecx, [ebp - 0x254]
push ecx
call edi
add esp, 0x10
cmp dword [ebp - 0x234], 0
je 0x4c0d3d
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x224]
push eax
push str.SELECT_i.index_id__d.entry_text__d.entry_time__d.chat_id_FROM_wtw_chat_index_i__wtw_chat_data_d_WHERE_d.marker__1_AND_i.index_id__d.index_id_AND___s___s_GROUP_BY_d.chat_id_ORDER_BY_i.start_time_DESC_
lea ecx, [ebp - 0x248]
push ecx
call edi
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x224]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4c0f7b
mov edx, dword [ebp - 0x228]
push edx
push str.SELECT_i.index_id__i.contact_id__i.start_time__i.contact_net__COUNT_d.index_id__FROM_wtw_chat_index_i__wtw_chat_data_d_WHERE_i.index_id__d.index_id__s_GROUP_BY_i.index_id_ORDER_BY_i.start_time_DESC_
lea eax, [ebp - 0x254]
push eax
call edi
add esp, 0xc
test esi, esi
je 0x4c0f7b
mov ecx, dword [ebp - 0x228]
push ecx
push str.SELECT_d.index_id__d.entry_text__d.entry_time__d.chat_id_FROM_wtw_chat_data_d__wtw_chat_index_i_WHERE_d.marker__1_AND_d.index_id__d.index_id__s_GROUP_BY_d.chat_id_ORDER_BY_d.entry_time_DESC_
lea edx, [ebp - 0x248]
push edx
call edi
add esp, 0xc
jmp 0x4c0f7b
push eax
push str.d.entry_text_LIKE____s___ESCAPE_
lea eax, [ebp - 0x250]
push eax
call edi
add esp, 0xc
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4c0f39
cmp dword [eax + 0x1c], 0
je 0x4c0f39
lea ecx, [ebp - 0x224]
call dword [0x55a6c4]
mov byte [ebp - 4], 9
lea esi, [ebp - 0x230]
mov ebx, dword [ebp - 0x21c]
call fcn.00419580
mov ebx, dword [ebp - 0x230]
lea ecx, [ebp - 0x220]
call dword [0x55a6c4]
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x230]
call fcn.00413720
mov esi, eax
lea eax, [ebp - 0x230]
call fcn.00413720
mov ecx, dword [esi + 0x30]
push ecx
mov edx, dword [eax + 0x2c]
push edx
push str._i.contact_id_s_AND_i.contact_net_s_
lea eax, [ebp - 0x220]
push eax
call edi
add esp, 0x10
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x224]
call dword [0x55a4e8]
test ebx, ebx
jne 0x4c0ebc
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
xor ecx, ecx
mov edx, dword [ecx + 0x1c]
add edx, dword [eax + 0x18]
cmp dword [ebp - 0x22c], edx
jb 0x4c0e5a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
inc dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx + 0x18]
mov esi, dword [ecx + 0x1c]
add esi, eax
cmp eax, esi
jbe 0x4c0e7e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx]
test ebx, ebx
je 0x4c0e88
cmp ebx, eax
je 0x4c0e8e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp - 0x22c], esi
je 0x4c0ec2
push 0x584460
lea ecx, [ebp - 0x224]
call dword [0x55a294]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4c0de0
mov eax, dword [ebx]
mov ecx, eax
jmp 0x4c0e46
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x220]
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 eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x224]
push edx
push str.SELECT_i.index_id__i.contact_id__i.start_time__i.contact_net__COUNT_d.index_id__FROM_wtw_chat_index_i__wtw_chat_data_d_WHERE__d.entry_flags__64___0_AND_i.index_id__d.index_id_AND___s__AND__s__s_GROUP_BY_i.index_id_ORDER_BY_i.start_time_DESC_
lea eax, [ebp - 0x254]
push eax
call edi
add esp, 0x14
cmp dword [ebp - 0x234], 0
je 0x4c0f27
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x250]
push edx
mov eax, dword [ebp - 0x224]
push eax
push str.SELECT_i.index_id__d.entry_text__d.entry_time__d.chat_id_FROM_wtw_chat_index_i__wtw_chat_data_d_WHERE_d.marker__1_AND__d.entry_flags__64___0_AND_i.index_id__d.index_id_AND___s__AND__s__s_GROUP_BY_d.chat_id_ORDER_BY_i.start_time_DESC_
lea ecx, [ebp - 0x248]
push ecx
call edi
add esp, 0x14
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x224]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4c0f7b
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x250]
push eax
push str.SELECT_i.index_id__i.contact_id__i.start_time__i.contact_net__COUNT_d.index_id__FROM_wtw_chat_index_i__wtw_chat_data_d_WHERE__d.entry_flags__64___0_AND_i.index_id__d.index_id_AND__s__s_GROUP_BY_i.index_id_ORDER_BY_i.start_time_DESC_
lea ecx, [ebp - 0x254]
push ecx
call edi
add esp, 0x10
test esi, esi
je 0x4c0f7b
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x250]
push eax
push str.SELECT_d.index_id__d.entry_text__d.entry_time__d.chat_id_FROM_wtw_chat_data_d__wtw_chat_index_i_WHERE_d.marker__1_AND_i.index_id__d.index_id_AND__d.entry_flags__64___0_AND__s__s_GROUP_BY_d.chat_id_ORDER_BY_d.entry_time_DESC_
lea ecx, [ebp - 0x248]
push ecx
call edi
add esp, 0x10
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Lock
mov edx, dword [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x284]
push eax
lea ecx, [ebp - 0x2d4]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x280]
push ecx
lea ecx, [ebp - 0x2d4]
call dword [sym.imp.libWTW.module_public:_class_wtw::db::CReader___thiscall_wtw::db::CCommand::executeReader_void_]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Lock
lea ecx, [ebp - 0x280]
mov ebx, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
test esi, esi
je 0x4c1450
lea ecx, [ebp - 0x21c]
call dword [0x55a6c4]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x22c]
call dword [0x55a6c4]
mov byte [ebp - 4], 0xe
push 0
push 0
lea edx, [ebp - 0x290]
push edx
push 0
lea ecx, [ebp - 0x280]
mov ebx, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__long_long___int64____long_long___int64__]
call ebx
mov eax, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push eax
mov ecx, dword [0x55a6c4]
push ecx
push 7
push 4
lea edx, [ebp - 0x2c0]
push edx
call fcn.00532989
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x28c]
push eax
mov ecx, dword [ebp - 0x290]
push ecx
push str._lld
lea edx, [ebp - 0x21c]
push edx
call edi
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Lock
push 0x55ae9c
lea ecx, [ebp - 0x220]
push ecx
push 3
lea ecx, [ebp - 0x280]
mov esi, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__wchar_t_const____wchar_t_const__]
call esi
mov edx, dword [ebp - 0x220]
push edx
lea ecx, [ebp - 0x238]
call dword [0x55a504]
mov byte [ebp - 4], 0x11
push 0x55ae9c
lea eax, [ebp - 0x220]
push eax
push 1
lea ecx, [ebp - 0x280]
call esi
mov ecx, dword [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x224]
call dword [0x55a504]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x224]
push eax
push str._s__s
lea ecx, [ebp - 0x21c]
push ecx
call edi
add esp, 0x10
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x2bc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov eax, dword [0x5c7044]
add eax, 0x810
lea ecx, [ebp - 0x238]
lea edx, [ebp - 0x224]
call fcn.00414f10
test eax, eax
je 0x4c1166
add eax, 0xa0
push eax
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
xor eax, eax
mov word [ebp - 0x218], ax
push 0x1fc
push eax
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Lock
push 0
push 0
lea edx, [ebp - 0x270]
push edx
push 2
lea ecx, [ebp - 0x280]
call ebx
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
cmp dword [ebp - 0x26c], 0
jl 0x4c13c3
jg 0x4c11cd
cmp dword [ebp - 0x270], 1
jbe 0x4c13c3
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.MSVCR90.dll__localtime64]
add esp, 4
mov ecx, 9
mov esi, eax
lea edi, [ebp - 0x308]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x308]
push ecx
push str._a___c
push 0xff
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCR90.dll_wcsftime]
add esp, 0x10
mov dword [ebp - 4], 0x12
jmp 0x4c1242
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x2b4]
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 [ebp - 0x270]
mov dword [ebp - 0x2a0], edx
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x29c], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Lock
push 0
push 0
lea ecx, [ebp - 0x298]
push ecx
push 4
lea ecx, [ebp - 0x280]
call ebx
mov edx, dword [ebp + 0x10]
push str.wtwArchive
cmp dword [edx - 0xc], 0
jne 0x4c12f3
lea ecx, [ebp - 0x264]
call dword [0x55a504]
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x294]
push eax
mov ecx, dword [ebp - 0x298]
push ecx
push str.Messages:__lld
push 0x3f0
lea edx, [ebp - 0x264]
push edx
mov eax, dword [0x5c6f7c]
call fcn.00504820
push eax
lea eax, [ebp - 0x21c]
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, 0x10
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x264]
jmp 0x4c1347
lea ecx, [ebp - 0x24c]
call dword [0x55a504]
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x294]
push ecx
mov edx, dword [ebp - 0x298]
push edx
push str.Found:__lld
push 0x3f1
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [0x5c6f7c]
call fcn.00504820
push eax
lea ecx, [ebp - 0x21c]
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, 0x10
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x24c]
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, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x2b0]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov ebx, dword [ebp - 0x25c]
mov eax, dword [ebx + 0x1c]
inc eax
cmp dword [ebx + 0x14], eax
ja 0x4c137f
call fcn.004c3fa0
mov esi, dword [ebx + 0x18]
add esi, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x14]
cmp eax, esi
ja 0x4c138e
sub esi, eax
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + esi*4], 0
jne 0x4c13a7
push 0x30
call sub.mfc90u.dll_new
add esp, 4
mov edx, dword [ebx + 0x10]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + esi*4]
lea edi, [ebp - 0x2c0]
call fcn.004c4390
mov eax, ebx
inc dword [eax + 0x1c]
mov edi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x224]
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 [ebp - 4], 0x10
lea ecx, [ebp - 0x238]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Lock
lea ecx, [ebp - 0x280]
mov ebx, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
mov byte [ebp - 4], 0xe
mov ecx, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push ecx
push 7
push 4
lea edx, [ebp - 0x2c0]
push edx
call fcn.005327e3
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x22c]
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 [ebp - 4], 0xc
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4c0ff5
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x280]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
cmp dword [ebp - 0x234], 0
je 0x4c1848
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Lock
mov eax, dword [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x2f8]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x280]
push edx
lea ecx, [ebp - 0x2f8]
call dword [sym.imp.libWTW.module_public:_class_wtw::db::CReader___thiscall_wtw::db::CCommand::executeReader_void_]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Lock
lea ecx, [ebp - 0x280]
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
test esi, esi
je 0x4c1828
mov esi, dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_void_]
nop
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Lock
push 0
push 0
lea eax, [ebp - 0x268]
push eax
push 0
lea ecx, [ebp - 0x280]
mov edi, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__long_long___int64____long_long___int64__]
call edi
push 0x55ae9c
lea ecx, [ebp - 0x22c]
push ecx
push 1
lea ecx, [ebp - 0x280]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_int__wchar_t_const____wchar_t_const__]
push 0
push 0
lea edx, [ebp - 0x270]
push edx
push 2
lea ecx, [ebp - 0x280]
call edi
push 0
push 0
lea eax, [ebp - 0x290]
push eax
push 3
lea ecx, [ebp - 0x280]
call edi
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
lea ecx, [ebp - 0x2b8]
call dword [0x55a6c4]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x2b4]
call dword [0x55a6c4]
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x2b0]
call dword [0x55a6c4]
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x298], ecx
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x294], edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x25c]
call dword [0x55a504]
mov bl, 0x1e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24c]
push ecx
lea edi, [ebp - 0x25c]
call fcn.0051dc30
add esp, 4
mov byte [ebp - 4], 0x1f
push eax
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24c]
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 [ebp - 4], 0x1d
mov ecx, edi
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 edx, dword [ebp - 0x290]
mov dword [ebp - 0x2a8], edx
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 0x2a0], ecx
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x29c], edx
lea ecx, [ebp - 0x2e4]
call esi
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x238]
call dword [0x55a6c4]
mov byte [ebp - 4], 0x21
mov eax, dword [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x268]
push ecx
push str.SELECT_contact_id_FROM_wtw_chat_index_WHERE_index_id_lld
lea edx, [ebp - 0x238]
push edx
mov edi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
call edi
add esp, 0x10
lea eax, [ebp - 0x2e4]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
mov ebx, dword [ebp - 0x284]
mov ecx, ebx
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::executeAndRead_wchar_t_const___class_wtw::CString__]
lea ecx, [ebp - 0x2e4]
call dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::c_str_void_const]
push eax
lea ecx, [ebp - 0x2b0]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x238]
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 [ebp - 4], 0x1d
lea ecx, [ebp - 0x2e4]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::CString::destructor_void_]
lea ecx, [ebp - 0x2d0]
call esi
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x220]
call dword [0x55a6c4]
mov byte [ebp - 4], 0x23
mov edx, dword [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x268]
push eax
push str.SELECT_contact_net_FROM_wtw_chat_index_WHERE_index_id_lld
lea ecx, [ebp - 0x220]
push ecx
call edi
add esp, 0x10
lea edx, [ebp - 0x2d0]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, ebx
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::executeAndRead_wchar_t_const___class_wtw::CString__]
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::c_str_void_const]
push eax
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x220]
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 [ebp - 4], 0x1d
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::CString::destructor_void_]
mov ebx, dword [ebp - 0x234]
mov ecx, dword [ebx + 0x1c]
inc ecx
cmp dword [ebx + 0x14], ecx
ja 0x4c177c
call fcn.005051a0
mov edi, dword [ebx + 0x1c]
add edi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
cmp eax, edi
ja 0x4c178b
sub edi, eax
mov edx, dword [ebx + 0x10]
cmp dword [edx + edi*4], 0
jne 0x4c17a4
push 0x28
call sub.mfc90u.dll_new
add esp, 4
mov ecx, dword [ebx + 0x10]
mov dword [ecx + edi*4], eax
mov edx, dword [ebx + 0x10]
mov edi, dword [edx + edi*4]
mov byte [ebp - 4], 0x24
test edi, edi
je 0x4c17be
push edi
lea edi, [ebp - 0x2b8]
call fcn.004c44b0
mov byte [ebp - 4], 0x1d
inc dword [ebx + 0x1c]
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Lock
lea ecx, [ebp - 0x280]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
mov edi, eax
neg edi
sbb edi, edi
inc edi
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x2b0]
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 [ebp - 4], 0x25
lea ecx, [ebp - 0x2b4]
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 [ebp - 4], 0x19
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test edi, edi
jne 0x4c1500
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x280]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2f8]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
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 [ebp - 4], 4
lea ecx, [ebp - 0x258]
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 [ebp - 4], 3
lea ecx, [ebp - 0x228]
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 [ebp - 4], 2
lea ecx, [ebp - 0x250]
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 [ebp - 4], 1
lea ecx, [ebp - 0x254]
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 [ebp - 4], 0
lea ecx, [ebp - 0x244]
call sub.mfc90u.dll_CSingleLock::Unlock
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 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]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00532776
mov esp, ebp
pop ebp
ret 0x10