Function at 0x101200c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x10165004]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov eax, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
push edi
lea ecx, [esi + 7]
mov dword [esp + 0xc], esi
lea ecx, [eax + ecx*4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp dword [ecx], ebx
jne 0x10120367
mov edi, 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_____
mov dword [esp + 0x3c], str.DELETE_FROM__Q._q_docsize_WHERE_id_
mov dword [esp + 0x40], str.SELECT_sz_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 esi, 0xa
ja case.0x1012016f.5
movzx eax, byte [esi + 0x101203a4]
jmp dword [eax*4 + 0x10120390]
push dword [edi + 0x24]
push dword [edi + 0x34]
push dword [esp + esi*4 + 0x28]
call fcn.10021360
add esp, 0xc
mov ebx, eax
jmp 0x1012027c
mov eax, dword [edi + 0x28]
push eax
push eax
push eax
push dword [edi + 0x24]
push dword [edi + 0x34]
push dword [esp + esi*4 + 0x34]
call fcn.10021360
add esp, 0x18
mov ebx, eax
jmp 0x1012027c
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x34]
push dword [esp + esi*4 + 0x2c]
call fcn.10021360
add esp, 0x10
mov ebx, eax
jmp 0x1012027c
mov ebx, dword [edi + 0xc]
inc ebx
call fcn.100cad40
test eax, eax
jne 0x10120280
lea eax, [ebx + ebx]
cdq
add eax, 1
adc edx, 0
push edx
push eax
call fcn.1001e1a0
mov esi, eax
add esp, 8
test esi, esi
je 0x10120280
xor eax, eax
test ebx, ebx
jle 0x1012020b
nop
mov word [esi + eax*2], 0x2c3f
inc eax
cmp eax, ebx
jl 0x10120200
mov byte [esi + eax*2 - 1], 0
mov eax, dword [esp + 0xc]
push esi
push dword [edi + 8]
push dword [edi + 4]
push dword [esp + eax*4 + 0x2c]
call fcn.10021360
add esp, 0x10
mov ebx, eax
cmp dword [0x10165af8], 0
je 0x1012028a
mov eax, dword [0x10168b40]
test eax, eax
je 0x10120245
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x10120278
push eax
call dword [0x10165b50]
add esp, 4
mov esi, dword [esp + 0xc]
test ebx, ebx
jne 0x101202a9
mov ebx, 7
jmp 0x10120367
push esi
call dword [0x10165b1c]
jmp 0x10120275
push dword [edi + 8]
push dword [edi + 4]
push dword [esp + esi*4 + 0x28]
call fcn.10021360
add esp, 0xc
mov ebx, eax
jmp 0x1012027c
mov eax, dword [esp + 0x10]
mov edx, ebx
push 0
push dword [esp + 0x18]
mov eax, dword [eax]
push 0
inc dword [eax + 0x40]
xor eax, eax
mov ecx, dword [edi]
cmp esi, 2
setg al
lea eax, [eax*4 + 0x81]
push eax
push 0xffffffffffffffff
call fcn.100931f0
mov dword [esp + 0x20], eax
add esp, 0x14
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
dec dword [ecx + 0x40]
cmp dword [0x10165af8], 0
je 0x10120333
mov eax, dword [0x10168b40]
test eax, eax
je 0x10120301
push eax
call dword [0x10165b48]
add esp, 4
push ebx
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push ebx
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x1012033d
push eax
call dword [0x10165b50]
jmp 0x1012033a
push ebx
call dword [0x10165b1c]
add esp, 4
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x10120367
mov esi, dword [esp + 0x18]
test esi, esi
je 0x10120367
push dword [edi]
call fcn.100cd5c0
add esp, 4
push eax
push 0x101586d8
call fcn.10021360
add esp, 8
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push eax
mov dword [ecx], eax
call fcn.10048bc0
mov ecx, dword [esp + 0x50]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10129131
mov esp, ebp
pop ebp
ret