Function at 0x4e6970
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x104
mov eax, dword [esp + 0x108]
push ebx
push ebp
xor ebx, ebx
mov cl, byte [eax + 0x39]
push esi
test cl, cl
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
jne 0x4e6ce2
mov ebp, dword [eax]
test byte [ebp + 0xc8], 8
je 0x4e69ba
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.004c4780
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 4]
mov eax, dword [eax + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4e6ce2
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea edx, [ebx + 0x64]
push edx
call fcn.004c4410
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
je 0x4e6ce2
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4e6a0e
mov dword [esp + 0x10], 0
lea edi, [ebx + edi + 1]
mov eax, dword [esp + 0x18]
xor esi, esi
mov byte [ebx + eax], 0x2d
call fcn.004c5d20
xor edx, edx
mov ecx, 0x24
div ecx
inc esi
cmp esi, 0x14
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi + esi - 1], dl
jl 0x4e6a2e
mov esi, dword [esp + 0x18]
push esi
call fcn.004cb720
add esp, 4
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4e6a6d
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jl 0x4e6a24
jmp 0x4e6a72
cmp eax, 0xa
jl 0x4e6a8c
mov eax, dword [esp + 0x118]
push str.unable_to_create_a_temporary_database_file_in_the_same_directory_as_the_original_database
push eax
call fcn.004c4780
add esp, 8
jmp 0x4e6cae
lea ecx, [esp + 0x14]
push ecx
push 0
push esi
call fcn.004c34f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4e6ac2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x118]
push edx
push esi
push str.unable_to_open_a_temporary_database_at__s____s
push eax
call fcn.004c4780
add esp, 0x10
jmp 0x4e6ca1
push ebp
call fcn.004c5610
add esp, 4
test eax, eax
je 0x4e6ae9
mov ecx, dword [esp + 0x118]
push str.library_routines_called_out_of_sequence
push ecx
call fcn.004c4780
add esp, 8
jmp 0x4e6ca1
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0
push 0
push str.BEGIN
push ebp
call fcn.004c40b0
add esp, 0x14
test eax, eax
je 0x4e6b35
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x118]
push eax
push 0x545740
push ecx
call fcn.004c4780
mov edx, dword [esp + 0x1c]
push edx
call fcn.004c4230
add esp, 0x10
jmp 0x4e6c76
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push 0
push str.PRAGMA_synchronousoff__BEGIN
push edi
call fcn.004c40b0
add esp, 0x14
test eax, eax
je 0x4e6b81
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x118]
push ecx
push 0x545740
push edx
call fcn.004c4780
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c4230
add esp, 0x10
jmp 0x4e6c76
mov ebx, dword [esp + 0x118]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
xor esi, esi
cmp esi, 8
jae 0x4e6be5
mov ecx, dword [esi + 0x568110]
lea edx, [esp + 0x4c]
push ecx
push str.PRAGMA__s_
push edx
call fcn.004e8361
mov eax, dword [esi + 0x568110]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x2c]
mov dword [esp + 0x3c], eax
push ecx
push edx
lea eax, [esp + 0x60]
push 0x4e74a0
push eax
push ebp
call fcn.004c40b0
add esp, 0x20
add esi, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4e6b96
jmp 0x4e6c54
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4e6c54
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
push 0x4e6cf0
push str.SELECT_type__name__sql_FROM_sqlite_master_WHERE_sql_NOT_NULL
push ebp
call fcn.004c40b0
add esp, 0x14
test eax, eax
jne 0x4e6c54
mov eax, dword [ebp + 4]
mov edx, dword [edi + 4]
mov eax, dword [eax + 4]
mov edx, dword [edx + 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
push 0
push 0
push 0
push str.COMMIT
push ebp
mov esi, eax
call fcn.004c40b0
push 0
push 0
push 0
push str.ROLLBACK
push ebp
call fcn.004c40b0
push 0
push ebp
call fcn.004c6270
add esp, 0x38
test esi, esi
je 0x4e6c72
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4e6c72
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e6c72
push eax
push str.unable_to_vacuum_database____s
push ebx
call fcn.004c4780
add esp, 0xc
mov esi, dword [esp + 0x18]
push 0
push 0
push 0
push str.COMMIT
push ebp
call fcn.004c40b0
push 0
push 0
push 0
push str.ROLLBACK
push ebp
call fcn.004c40b0
push ebp
call fcn.004c55b0
add esp, 0x2c
test edi, edi
je 0x4e6cae
push edi
call fcn.004c3c80
add esp, 4
push esi
call fcn.004cb710
push esi
call fcn.004c4480
mov eax, dword [esp + 0x3c]
push eax
call fcn.004c4480
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004c4480
mov eax, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x4e6ce2
push eax
call fcn.004c4230
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret