Function at 0x1001d340
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10134056
mov eax, dword fs:[0]
push eax
sub esp, 0x50
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
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3c], vtable.CppSQLite3DB.0
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0xea60
push ecx
mov esi, esp
mov eax, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], esp
call fcn.1001e930
lea eax, [ebp - 0x3c]
push eax
push edi
call fcn.1001ea50
cmp eax, ebx
je 0x1001d654
lea ecx, [ebp - 0x14]
call dword [0x1013762c]
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push str.SELECT_id_title_gtype_counts_FROM_my_keyword_list_WHERE_user_id_ld_ORDER_BY_gtype_ASC
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, 0xc
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
lea esi, [ebp - 0x3c]
call dword [0x1013761c]
lea ecx, [ebp - 0x5c]
push ecx
push edi
mov ecx, esi
call fcn.10020a50
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.10019f40
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 0x20], ecx
jle 0x1001d57d
xor eax, eax
mov dword [ebp + 0xc], eax
cmp eax, ecx
jge 0x1001d57d
lea ecx, [ebp - 0x5c]
call fcn.1001a0f0
push 0x10370438
lea eax, [ebp - 0x5c]
call fcn.1001a090
test al, al
je 0x1001d429
or ebx, 0xffffffff
jmp 0x1001d443
push 0x10370438
lea edx, [ebp - 0x5c]
push edx
call fcn.10019f90
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov ebx, eax
push 0
push str.title
lea eax, [ebp - 0x5c]
call fcn.1001a090
test al, al
je 0x1001d45d
mov eax, 0x10138e32
jmp 0x1001d46b
push str.title
lea eax, [ebp - 0x5c]
push eax
call fcn.10019f90
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call dword [0x101377ac]
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_GetWCString_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____unsigned_int_
add esp, 0xc
push 0
push str.gtype
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.1001a090
test al, al
je 0x1001d4a2
mov eax, 0x10370738
jmp 0x1001d4b0
push str.gtype
lea edx, [ebp - 0x5c]
push edx
call fcn.10019f90
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call dword [0x101377ac]
lea eax, [ebp - 0x18]
push eax
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 str.counts
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.1001a090
test al, al
je 0x1001d4e2
xor edi, edi
jmp 0x1001d4fc
push str.counts
lea ecx, [ebp - 0x5c]
push ecx
call fcn.10019f90
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov edi, eax
push 0x20
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x1001d548
push edi
push ecx
lea edx, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x28], esp
push edx
call dword [0x1013761c]
push ecx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call dword [0x1013761c]
push ebx
mov ecx, esi
mov byte [ebp - 4], 6
call sym.NirvanaBiz.dll_public:_void___thiscall_CMyKeywordList::constructor_int__class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____int_
mov esi, eax
jmp 0x1001d54a
xor esi, esi
mov eax, dword [ebp + 0x10]
push ebx
mov byte [ebp - 4], 5
call fcn.100149d0
lea ecx, [ebp - 0x18]
mov dword [eax], esi
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]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
jmp 0x1001d403
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.10019e40
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]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.CppSQLite3DB.0
test eax, eax
je 0x1001d66b
push 0
jmp 0x1001d663
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x1001d66b
push ebx
call fcn.10082060
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc