Function at 0x1010fe30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x10155004]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov eax, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], edi
lea ecx, [edi + 7]
mov dword [esp + 0x10], eax
lea ecx, [eax + ecx*4]
mov dword [esp + 0x14], ecx
cmp dword [ecx], ebx
jne 0x1011006f
mov esi, dword [eax]
mov dword [esp + 0x20], str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov dword [esp + 0x24], str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_DESC
mov dword [esp + 0x28], str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov dword [esp + 0x2c], str.INSERT_INTO__Q._q_content_VALUES__s_
mov dword [esp + 0x30], str.REPLACE_INTO__Q._q_content_VALUES__s_
mov dword [esp + 0x34], str.DELETE_FROM__Q._q_content_WHERE_id_
mov dword [esp + 0x38], str.REPLACE_INTO__Q._q_docsize_VALUES_____s_
mov dword [esp + 0x3c], str.DELETE_FROM__Q._q_docsize_WHERE_id_
mov dword [esp + 0x40], str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
mov dword [esp + 0x44], str.REPLACE_INTO__Q._q_config_VALUES_____
mov dword [esp + 0x48], str.SELECT__s_FROM__s_AS_T
cmp edi, 0xa
ja case.0x1010fed8.5
jmp dword [edi*4 + 0x10110098]
push dword [esi + 0x28]
push dword [esi + 0x38]
push str.SELECT__s_FROM__s_AS_T
jmp 0x1010ffeb
mov eax, dword [esi + 0x2c]
push eax
push eax
push eax
push dword [esi + 0x28]
push dword [esi + 0x38]
push dword [esp + edi*4 + 0x34]
call fcn.100285d0
add esp, 0x18
jmp 0x1010fff3
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x38]
push str.SELECT__s_FROM__s_T_WHERE_T._Q_
call fcn.100285d0
add esp, 0x10
jmp 0x1010fff3
mov ebx, dword [esi + 0xc]
inc ebx
call fcn.100cb360
test eax, eax
jne 0x1010fff9
lea eax, [ebx + ebx]
cdq
add eax, 1
adc edx, 0
push edx
push eax
call fcn.10025910
mov edi, eax
add esp, 8
test edi, edi
je 0x1010fff9
xor eax, eax
test ebx, ebx
jle 0x1010ff6b
nop dword [eax]
mov word [edi + eax*2], 0x2c3f
inc eax
cmp eax, ebx
jl 0x1010ff60
mov byte [edi + eax*2 - 1], 0
mov eax, dword [esp + 0xc]
push edi
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + eax*4 + 0x2c]
call fcn.100285d0
push edi
mov ebx, eax
call fcn.10025b30
mov edi, dword [esp + 0x20]
add esp, 0x14
jmp 0x1010fff5
cmp dword [esi + 0x24], ebx
mov ecx, 0x1014475b
mov eax, 0x1014f17c
cmove eax, ecx
push eax
push dword [esi + 8]
push dword [esi + 4]
push str.REPLACE_INTO__Q._q_docsize_VALUES_____s_
call fcn.100285d0
add esp, 0x10
jmp 0x1010fff3
push dword [esi + 8]
cmp dword [esi + 0x24], ebx
mov ecx, 0x1014475b
push dword [esi + 4]
mov eax, str._origin
cmove eax, ecx
push eax
push str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
call fcn.100285d0
add esp, 0x10
jmp 0x1010fff3
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + edi*4 + 0x28]
call fcn.100285d0
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x10110000
mov ebx, 7
jmp 0x1011006f
mov eax, dword [esp + 0x10]
mov edx, ebx
push 0
push dword [esp + 0x18]
mov eax, dword [eax]
push 0
inc dword [eax + 0x44]
xor eax, eax
mov ecx, dword [esi]
cmp edi, 2
setg al
lea eax, [eax*4 + 0x81]
push eax
push 0xffffffffffffffff
call fcn.100966f0
mov dword [esp + 0x20], eax
add esp, 0x14
mov eax, dword [esp + 0x10]
push ebx
mov ecx, dword [eax]
dec dword [ecx + 0x44]
call fcn.10025b30
mov ebx, dword [esp + 0x10]
add esp, 4
test ebx, ebx
je 0x1011006f
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1011006f
push dword [esi]
call fcn.100cdad0
add esp, 4
push eax
push 0x101468ec
call fcn.100285d0
add esp, 8
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push eax
mov dword [ecx], eax
call fcn.1004fd70
mov ecx, dword [esp + 0x50]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10115f0d
mov esp, ebp
pop ebp
ret