Function at 0x10060902
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10060916
xor eax, eax
jmp 0x10060b42
mov eax, edi
call fcn.10027233
test eax, eax
jne 0x10060931
push 0x1a841
call fcn.10061e88
pop ecx
jmp 0x10060b42
push ebx
push dword [edi + 0x44]
call fcn.10024610
push 0xffffffffffffffff
mov ebx, edi
call fcn.10046ff3
push 0x44
call fcn.100594dd
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 0x88], ebx
je 0x10060961
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
jmp 0x100609e1
xor edx, edx
cmp dword [edi + 4], ebx
jle 0x10060982
mov eax, dword [edi + 8]
add eax, 4
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10060979
cmp dword [ecx + 0x10], ebx
jne 0x100609dc
inc edx
add eax, 0x10
cmp edx, dword [edi + 4]
jl 0x1006096e
push esi
mov esi, edi
call fcn.100608a8
cmp dword [edi + 4], ebx
jle 0x100609bb
and dword [ebp + 8], ebx
mov esi, dword [edi + 8]
add esi, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x100609b1
call fcn.100308c3
and dword [esi + 4], 0
cmp ebx, 1
je 0x100609b1
and dword [esi + 0xc], 0
add dword [ebp + 8], 0x10
inc ebx
cmp ebx, dword [edi + 4]
jl 0x10060992
push 0xffffffffffffffff
mov ebx, edi
call fcn.10046ff3
lea eax, [edi + 0x140]
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x17
mov eax, dword [ebp + 8]
mov esi, dword [eax]
jmp 0x10060a21
push 0x1009bd40
push 5
mov eax, edi
call fcn.10026707
push dword [edi + 0x44]
call fcn.1002462e
inc dword [ebx + 0x56a0cc4]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 8], eax
push edi
mov eax, esi
call fcn.100608e1
mov ebx, dword [esi + 8]
push esi
push edi
call fcn.10024c83
add esp, 0xc
mov esi, ebx
test ebx, ebx
jne 0x10060a03
mov esi, dword [ebp - 8]
test esi, esi
jne 0x100609fd
add dword [ebp + 8], 4
dec dword [ebp - 4]
jne 0x100609d5
mov esi, dword [edi + 0x1a4]
jmp 0x10060a68
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea ebx, [eax + 0x10]
mov dword [ebp + 8], 3
mov ecx, dword [ebx]
test ecx, ecx
je 0x10060a55
push dword [ebx - 8]
call ecx
mov eax, dword [ebp - 8]
pop ecx
add ebx, 0x14
dec dword [ebp + 8]
jne 0x10060a46
push eax
push edi
call fcn.10024c83
mov esi, dword [esi]
pop ecx
pop ecx
test esi, esi
jne 0x10060a36
lea esi, [edi + 0x19c]
call 0x10027421
mov esi, dword [edi + 0x128]
jmp 0x10060a9a
mov ebx, dword [esi + 8]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10060a8f
push dword [ebx + 8]
call eax
pop ecx
push ebx
push edi
call fcn.10024c83
mov esi, dword [esi]
pop ecx
pop ecx
test esi, esi
jne 0x10060a7f
lea esi, [edi + 0x120]
call 0x10027421
xor ebx, ebx
push ebx
push ebx
mov eax, edi
call fcn.10026707
mov esi, dword [edi + 0xd4]
pop ecx
pop ecx
cmp esi, ebx
je 0x10060ac5
call fcn.10036efb
xor esi, esi
cmp dword [edi + 0x80], ebx
jle 0x10060ae9
mov ecx, dword [edi + 0x84]
push dword [ecx + esi*4]
mov eax, dword [edi]
push eax
call dword [eax + 0x34]
inc esi
cmp esi, dword [edi + 0x80]
pop ecx
pop ecx
jl 0x10060acf
push dword [edi + 0x84]
push edi
call fcn.10024c83
mov eax, dword [edi + 8]
mov dword [edi + 0x38], 0xb5357930
push dword [eax + 0x1c]
push edi
call fcn.10024c83
push dword [edi + 0x44]
call fcn.1002462e
push dword [edi + 0x44]
mov dword [edi + 0x38], 0x9f3c2d33
call fcn.10024602
add esp, 0x18
cmp byte [edi + 0xeb], 0
mov edi, 0xeb
add byte [esi + 0x74], bl
invalid
push dword [edi + 0x104]
call fcn.10024c28
pop ecx
push edi