Function at 0x1001db90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10133f59
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x103b2018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x60], vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const___class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const__.0
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], 0x11
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0xa
push 0x10137da4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call dword [0x10137604]
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + 8]
xor esi, esi
cmp eax, edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x34], esi
jg 0x1001dcb6
lea ecx, [ebp - 0x28]
call dword [0x1013762c]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x28]
push str.SELECT_tkeyword_id_keyword_FROM_fc_keyword_list_WHERE_user_id_ld_AND_keyword_IN___s_
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 byte [ebp - 4], 8
lea edx, [ebp - 0x28]
mov ecx, esp
mov dword [ebp + 0x14], esp
push edx
xor esi, esi
call dword [0x1013761c]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x7c]
push eax
push edi
mov ecx, esi
call fcn.10020a50
mov byte [ebp - 4], 9
cmp dword [ebp - 0x6c], esi
jne 0x1001de83
push str.Null_Results_pointer
push 0x3e8
push str.CPPSQLITE_ERROR
push str._s__d_:__s
mov dword [ebp - 0x8c], vtable.CppSQLite3Exception.0
mov dword [ebp - 0x88], 0x3e8
call sym.NirvanaBiz.dll_sqlite3_mprintf
add esp, 0x10
push 0x10393ee8
lea ecx, [ebp - 0x8c]
push ecx
mov dword [ebp - 0x84], eax
call sub.MSVCR90.dll__CxxThrowException
jmp 0x1001dcb0
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp + 0x14]
push 0x10137da4
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x1001dcd6
push 0x10370cf0
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
cmp esi, edi
jl 0x1001de7e
cmp esi, dword [ebx + 8]
jge 0x1001de7e
mov eax, dword [ebx + 4]
lea edi, [esi*4]
add eax, edi
push eax
lea ecx, [ebp - 0x2c]
call dword [0x1013761c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Trim]
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call dword [0x1013761c]
lea ecx, [ebp - 0x1c]
push ecx
call sub.NirvanaUtils.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_FixQuote_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x18]
cmp esi, dword [eax + 8]
jge 0x1001de7e
mov eax, dword [eax + 4]
add eax, edi
push eax
lea ecx, [ebp - 0x30]
call dword [0x1013761c]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Trim]
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1c]
mov ebx, 0x1036fc34
call fcn.10009690
add esp, 4
push eax
lea eax, [ebp - 0x80]
push eax
mov edi, ebx
mov byte [ebp - 4], 5
call fcn.100095f0
add esp, 8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x80]
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 - 0x40]
mov byte [ebp - 4], 4
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 - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov esi, eax
call sub.mfc90u.dll_HashKey_wchar_t_const__
xor edx, edx
mov ebx, eax
div dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x38], edx
test eax, eax
je 0x1001ddf9
mov edi, dword [eax + edx*4]
test edi, edi
je 0x1001ddf5
lea esp, [esp]
cmp dword [edi + 0xc], ebx
jne 0x1001ddeb
push esi
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
neg eax
sbb eax, eax
add eax, 1
jne 0x1001de7a
mov edi, dword [edi + 8]
test edi, edi
jne 0x1001ddd0
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x1001de07
mov edi, dword [ebp - 0x58]
lea esi, [ebp - 0x60]
call fcn.1009c920
mov eax, dword [ebp - 0x5c]
xor edx, edx
test eax, eax
setne dl
mov eax, edx
test eax, eax
je 0x1001de7e
mov eax, dword [ebp - 0x20]
push eax
lea esi, [ebp - 0x60]
call fcn.10005460
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0xc], ebx
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x5c]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x24]
add eax, 4
push ecx
mov ecx, eax
call dword [0x10137600]
lea ecx, [ebp - 0x30]
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 - 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, [ebp - 0x2c]
mov byte [ebp - 4], 1
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 - 0x34]
inc eax
xor edi, edi
cmp eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], eax
jl 0x1001dcb0
jmp 0x1001dc0c
mov eax, edi
jmp 0x1001de35
call sub.mfc90u.dll_AfxThrowInvalidArgException
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x64], eax
test eax, eax
jle 0x1001e16a
push 1
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.begin_IMMEDIATE_transaction_
xor esi, esi
call dword [0x10137604]
push edi
mov ecx, esi
call fcn.10020700
test al, al
jne 0x1001decb
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.Transaction_error:_commit_cache
call dword [0x10137604]
mov ecx, dword [edi + 0x44]
call sub.NirvanaUtils.dll_public:_long_int___thiscall_GLog::WriteLogTime_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
xor eax, eax
cmp eax, dword [ebp - 0x64]
mov dword [ebp - 0x1c], eax
jge 0x1001e14e
lea ecx, [ebp - 0x7c]
call fcn.1001a0f0
cmp dword [ebp - 0x6c], 0
jne 0x1001df2e
push str.Null_Results_pointer
push 0x3e8
push str.CPPSQLITE_ERROR
push str._s__d_:__s
mov dword [ebp - 0x98], vtable.CppSQLite3Exception.0
mov dword [ebp - 0x94], 0x3e8
call sym.NirvanaBiz.dll_sqlite3_mprintf
add esp, 0x10
push 0x10393ee8
lea edx, [ebp - 0x98]
push edx
mov dword [ebp - 0x90], eax
call sub.MSVCR90.dll__CxxThrowException
push str.keyword_id
lea eax, [ebp - 0x7c]
push eax
call fcn.10019f90
test eax, eax
sete al
test al, al
je 0x1001df4e
mov eax, 0xffffffff
or edx, eax
jmp 0x1001df66
push str.keyword_id
lea ecx, [ebp - 0x7c]
push ecx
call fcn.10019f90
push eax
call dword [sym.imp.MSVCR90.dll__atoi64]
add esp, 4
cmp dword [ebp - 0x6c], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
push 0
jne 0x1001dfbb
push str.Null_Results_pointer
push 0x3e8
push str.CPPSQLITE_ERROR
push str._s__d_:__s
mov dword [ebp - 0xa4], vtable.CppSQLite3Exception.0
mov dword [ebp - 0xa0], 0x3e8
call sym.NirvanaBiz.dll_sqlite3_mprintf
add esp, 0x10
push 0x10393ee8
lea edx, [ebp - 0xa4]
push edx
mov dword [ebp - 0x9c], eax
call sub.MSVCR90.dll__CxxThrowException
push str.keyword
lea eax, [ebp - 0x7c]
push eax
call fcn.10019f90
test eax, eax
sete al
test al, al
je 0x1001dfd9
mov eax, 0x10138e32
jmp 0x1001dfe7
push str.keyword
lea ecx, [ebp - 0x7c]
push ecx
call fcn.10019f90
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call dword [0x101377ac]
lea edx, [ebp + 0xc]
push edx
call sub.NirvanaUtils.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetWCString_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____unsigned_int_
add esp, 0xc
push 0x10137da4
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xa
call dword [0x10137604]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp + 0xc]
push eax
mov edi, eax
call sub.mfc90u.dll_HashKey_wchar_t_const__
xor edx, edx
mov ebx, eax
div dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x1001e0ff
mov esi, dword [eax + edx*4]
test esi, esi
je 0x1001e0ff
cmp dword [esi + 0xc], ebx
jne 0x1001e059
push edi
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
jne 0x1001e05e
mov esi, dword [esi + 8]
jmp 0x1001e036
add esi, 4
push esi
lea ecx, [ebp + 0x14]
call dword [0x101375f4]
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
push edx
push edi
call fcn.10020d30
push esi
mov ecx, eax
call dword [0x10137600]
lea ecx, [ebp + 0x18]
call dword [0x1013762c]
mov bl, 0xc
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x40]
push eax
push edi
push ecx
lea edx, [ebp + 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
call dword [0x1013761c]
lea eax, [ebp - 0x24]
push eax
call sub.NirvanaUtils.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_FixQuote_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
add esp, 8
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
push ecx
lea edx, [ebp + 0x18]
push 0x10370dc0
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, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
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 1
push ecx
lea eax, [ebp + 0x18]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
xor esi, esi
call dword [0x1013761c]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.10020700
lea ecx, [ebp + 0x18]
jmp 0x1001e126
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp + 0xc]
mov ebx, str.can_not_find_:
call fcn.10009690
add esp, 4
push 0
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
push 0
push eax
call sub.mfc90u.dll_AfxMessageBox
lea ecx, [ebp - 0x38]
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 + 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]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
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 - 0x1c]
mov edi, dword [ebp + 8]
inc eax
jmp 0x1001decd
xor esi, esi
push esi
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.commit_transaction_
call dword [0x10137604]
push edi
mov ecx, esi
call fcn.10020700
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0xc]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.10019e40
lea ecx, [ebp - 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]
lea ecx, [ebp - 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 dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const___class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const__.0
call fcn.100052d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14