Function at 0x100f2560
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
lea edx, [ecx + eax*4 + 0x1c]
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], edx
cmp dword [edx], ebx
jne 0x100f2769
mov esi, dword [ecx]
mov dword [ebp - 0x30], str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov dword [ebp - 0x2c], str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_DESC
mov dword [ebp - 0x28], str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov dword [ebp - 0x24], str.INSERT_INTO__Q._q_content_VALUES__s_
mov dword [ebp - 0x20], str.REPLACE_INTO__Q._q_content_VALUES__s_
mov dword [ebp - 0x1c], str.DELETE_FROM__Q._q_content_WHERE_id_
mov dword [ebp - 0x18], str.REPLACE_INTO__Q._q_docsize_VALUES_____s_
mov dword [ebp - 0x14], str.DELETE_FROM__Q._q_docsize_WHERE_id_
mov dword [ebp - 0x10], str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
mov dword [ebp - 0xc], str.REPLACE_INTO__Q._q_config_VALUES_____
mov dword [ebp - 8], str.SELECT__s_FROM__s_AS_T
cmp eax, 0xa
ja case.0x100f25d8.5
jmp dword [eax*4 + 0x100f2788]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x38]
push eax
push ecx
push str.SELECT__s_FROM__s_AS_T
jmp 0x100f26e4
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push ecx
push ecx
push ecx
mov ecx, dword [esi + 0x38]
push edx
mov edx, dword [ebp + eax*4 - 0x30]
push ecx
push edx
call sym.MyService.dll_sqlite3_mprintf
add esp, 0x18
jmp 0x100f26ec
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x38]
push eax
push ecx
push edx
push str.SELECT__s_FROM__s_T_WHERE_T._Q_
call sym.MyService.dll_sqlite3_mprintf
add esp, 0x10
jmp 0x100f26ec
mov edi, dword [esi + 0xc]
inc edi
lea eax, [edi + edi + 1]
cdq
push edx
push eax
call sym.MyService.dll_sqlite3_malloc64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100f26f2
xor eax, eax
test edi, edi
jle 0x100f2661
mov cl, 0x2c
mov byte [ebx + eax*2], 0x3f
mov byte [ebx + eax*2 + 1], cl
inc eax
cmp eax, edi
jl 0x100f2654
mov edx, dword [ebp + 0xc]
mov byte [ebx + eax*2 - 1], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push ebx
push eax
mov eax, dword [ebp + edx*4 - 0x30]
push ecx
push eax
call sym.MyService.dll_sqlite3_mprintf
push ebx
mov edi, eax
call sym.MyService.dll_sqlite3_free
add esp, 0x14
jmp 0x100f26ee
mov eax, 0x1011b160
cmp dword [esi + 0x24], ebx
jne 0x100f2698
mov eax, 0x10112e3c
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
push str.REPLACE_INTO__Q._q_docsize_VALUES_____s_
call sym.MyService.dll_sqlite3_mprintf
add esp, 0x10
jmp 0x100f26ec
mov eax, str._origin
cmp dword [esi + 0x24], ebx
jne 0x100f26bf
mov eax, 0x10112e3c
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
push eax
push str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
call sym.MyService.dll_sqlite3_mprintf
add esp, 0x10
jmp 0x100f26ec
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, dword [ebp + eax*4 - 0x30]
push ecx
push edx
push eax
call sym.MyService.dll_sqlite3_mprintf
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x100f26f9
mov ebx, 7
jmp 0x100f2769
cmp dword [ebp + 0xc], 2
mov eax, 1
jle 0x100f2709
mov eax, 5
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
inc dword [ecx + 0x44]
mov ecx, dword [esi]
push 0
push edx
push 0
and eax, 0xf
or eax, 0x80
push eax
push 0xffffffffffffffff
push edi
push ecx
call fcn.10074b10
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
dec dword [eax + 0x44]
add esp, 0x1c
push edi
call sym.MyService.dll_sqlite3_free
add esp, 4
test ebx, ebx
je 0x100f2769
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100f2769
mov ecx, dword [esi]
push ecx
call sym.MyService.dll_sqlite3_errmsg
add esp, 4
push eax
push 0x10112e4c
call sym.MyService.dll_sqlite3_mprintf
add esp, 8
mov dword [edi], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ecx], eax
call sym.MyService.dll_sqlite3_reset
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret