Function at 0x4c1911
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x38], eax
mov eax, dword [eax + 8]
test ecx, ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], eax
jne 0x4c193e
cmp dword [ebp + 8], 0
je 0x4c1d10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4c1963
inc dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
jmp 0x4c1957
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.PRAGMA_index_list_Q
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.004b886a
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4c19af
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
xor esi, esi
call fcn.004b8974
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
jmp 0x4c1b13
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4c1992
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 1
mov dword [ebp - 0x1c], 0
mov dword [esp], eax
call fcn.0041feb6
test eax, eax
je 0x4c198c
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x4c19f0
mov dword [edx + 0xc], 0
mov edx, dword [edx + 0x18]
jmp 0x4c19e0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], str.PRAGMA_index_xInfo_Q
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.004b886a
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4c1a2c
mov ebx, 1
jmp 0x4c1ae6
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4c1a22
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00411c8f
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00411c8f
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.0041feb6
cmp dword [ebp - 0x3c], edi
mov edx, eax
jle 0x4c1abb
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x4c1ac8
cmp dword [edi + 0xc], 0
jne 0x4c1ab6
cmp esi, dword [edi + 8]
jne 0x4c1ab6
mov dword [esp + 4], edx
mov eax, dword [edi]
mov dword [ebp - 0x40], edx
mov dword [esp], eax
call fcn.004019f3
test eax, eax
mov edx, dword [ebp - 0x40]
jne 0x4c1ab6
mov dword [edi + 0xc], 1
jmp 0x4c1a1c
mov edi, dword [edi + 0x18]
jmp 0x4c1a83
test ebx, ebx
je 0x4c1a1c
cmp esi, dword [ebx + 8]
je 0x4c1acc
xor ebx, ebx
jmp 0x4c1ae6
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004019f3
test eax, eax
jne 0x4c1ac8
mov ebx, dword [ebx + 0x18]
jmp 0x4c1a1c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
call fcn.004b8974
cmp dword [ebp - 0x20], 0
jne 0x4c198c
test ebx, ebx
je 0x4c198c
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00458aaf
jmp 0x4c1d10
cmp dword [ebp - 0x2c], 0
je 0x4c1b39
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebx + 8]
mov edx, esi
mov dword [esp], eax
lea eax, [ebp - 0x28]
call fcn.004c1838
mov esi, eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x2c], eax
jmp 0x4c1b13
cmp dword [ebp + 8], 0
je 0x4c1b5f
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 8]
mov edx, esi
mov dword [esp], eax
lea eax, [ebp - 0x28]
call fcn.004c1838
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebp + 8], eax
jmp 0x4c1b39
cmp dword [ebp - 0x28], 0
jne 0x4c1d08
mov eax, dword [ebp - 0x34]
xor ebx, ebx
xor edi, edi
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
call fcn.004c17e5
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
movsx eax, byte [esi + edx]
test al, al
je 0x4c1ba4
lea eax, [eax + edi*8]
inc edx
mov dword [ebp - 0x1c], edx
add edi, eax
jmp 0x4c1b8e
mov dword [esp], ebx
call fcn.0040b268
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], edi
mov dword [esp], str._s_idx__08x
mov dword [esp + 4], eax
call fcn.004440e8
test eax, eax
mov ebx, eax
je 0x4c1c5d
mov dword [esp + 4], eax
mov dword [esp], str.SELECT_count___FROM_sqlite_schema_WHERE_name_Q_AND_type_in__index_table_view_
call fcn.004440e8
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x4b7ec9
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00477ee4
test eax, eax
mov dword [ebp - 0x28], eax
je 0x4c1c33
mov dword [esp + 8], 0x2d11
mov dword [esp + 4], str.shell.c
mov dword [esp], str.rcSQLITE_OK
call fcn.004eaa60
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.0040b268
cmp dword [ebp - 0x1c], 0
je 0x4c1c65
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x32
jne 0x4c1b87
mov dword [ebp - 0x28], 0x305
jmp 0x4c1d08
cmp dword [ebp - 0x2c], 0
je 0x4c1c69
jmp 0x4c1c51
test ebx, ebx
jne 0x4c1c75
mov dword [ebp - 0x28], 7
jmp 0x4c1d08
cmp dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x34]
mov edx, str.CREATE_INDEX__s_ON__s__s_
mov eax, str.CREATE_INDEX___w__ON___w___s_
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
cmove eax, edx
mov dword [esp], eax
call fcn.004440e8
test eax, eax
mov edi, eax
jne 0x4c1cac
mov dword [ebp - 0x28], 7
jmp 0x4c1cf8
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00477ee4
test eax, eax
mov dword [ebp - 0x28], eax
je 0x4c1ce5
mov dword [ebp - 0x28], 0x305
jmp 0x4c1cf8
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x28]
mov dword [esp], edi
mov ecx, ebx
add edx, 0x2c
call fcn.004bb6e9
mov dword [esp], ebx
call fcn.0040b268
mov dword [esp], edi
call fcn.0040b268
mov dword [esp], esi
call fcn.0040b268
mov eax, dword [ebp - 0x28]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret