Function at 0x4dd930
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, edx
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
cmp byte [edi + 0x3f], al
jne 0x4dd9c3
mov edx, dword [ebx]
test edx, edx
je 0x4dd990
cmp dword [edi + 0x208], eax
je 0x4dd961
mov ecx, edi
call fcn.00480db0
jmp 0x4dd990
cmp edx, dword [edi + 0x114]
jb 0x4dd987
cmp edx, dword [edi + 0x118]
jae 0x4dd987
mov eax, dword [edi + 0x110]
mov dword [edx], eax
dec dword [edi + 0xfc]
mov dword [edi + 0x110], edx
jmp 0x4dd990
push edx
call fcn.00480d40
add esp, 4
push 0
push 0x28
mov ecx, edi
call fcn.00481060
mov esi, eax
add esp, 8
test esi, esi
je 0x4dd9b4
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.006435e0
add esp, 0xc
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [edi + 0x94], 1
jle 0x4dd9e6
push str.cannot_VACUUM___SQL_statements_in_progress
call fcn.004812d0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [edi + 0x18]
mov edx, ebx
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x28], eax
and eax, 0xfff5ffff
or eax, 0x202800
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x54]
cmp byte [edi + 0x40], 2
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0xb0]
mov dword [edi + 0xb0], 0
mov ebp, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov ecx, str.ATTACH_:memory:_AS_vacuum_db_
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov al, byte [eax + 0xf]
mov byte [esp + 0x13], al
mov eax, str.ATTACH__AS_vacuum_db_
cmove eax, ecx
mov ecx, edi
push eax
call fcn.004dd710
mov ecx, dword [edi + 0x14]
add esp, 4
mov ebx, eax
cmp ecx, esi
jle 0x4dda69
mov eax, dword [edi + 0x10]
mov edx, ecx
shl edx, 4
add eax, 0xfffffff0
add eax, edx
mov dword [esp + 0x24], eax
test ebx, ebx
jne 0x4dddfa
mov eax, dword [edi + 0x10]
add ecx, ecx
mov esi, dword [eax + ecx*8 - 0xc]
mov ecx, esi
mov dword [esp + 0x18], esi
call fcn.00494540
mov cl, byte [ebp + 9]
test cl, cl
je 0x4dda9e
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], bl
jne 0x4dda9e
mov ecx, ebp
call fcn.00490d90
mov cl, byte [ebp + 9]
mov eax, dword [ebp + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [esp + 0x20], edx
test cl, cl
je 0x4ddabc
add dword [ebp + 0xc], 0xffffffff
jne 0x4ddabc
mov ecx, ebp
call fcn.00490d50
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.004dd710
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dddfa
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.BEGIN_
call fcn.004dd710
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dddfa
lea edx, [eax + 2]
mov ecx, ebp
call fcn.00493630
mov ebx, eax
test ebx, ebx
jne 0x4dddfa
mov edx, dword [ebp + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x4ddb1b
mov dword [edi + 0x48], ebx
mov edx, dword [ebp + 4]
mov ebx, dword [esp + 0x20]
mov ecx, esi
mov edx, dword [edx + 0x20]
push 0
push ebx
call fcn.00493010
add esp, 8
test eax, eax
jne 0x4dddf5
cmp byte [esp + 0x13], al
jne 0x4ddb54
mov edx, dword [edi + 0x48]
mov ecx, esi
push eax
push ebx
call fcn.00493010
add esp, 8
test eax, eax
jne 0x4dddf5
cmp byte [edi + 0x41], 0
jne 0x4dddf5
mov al, byte [edi + 0x43]
test al, al
js 0x4ddb6a
movsx eax, al
jmp 0x4ddb71
mov ecx, ebp
call fcn.00493210
mov edx, eax
mov ecx, esi
call fcn.004931a0
mov esi, dword [esp + 0x14]
mov ecx, edi
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov edx, esi
call fcn.004dd780
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dddfa
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov edx, esi
mov ecx, edi
call fcn.004dd780
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dddfa
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov edx, esi
mov ecx, edi
call fcn.004dd780
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dddfa
or dword [edi + 0x18], 0x8000000
mov edx, esi
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov ecx, edi
call fcn.004dd780
and dword [edi + 0x18], 0xf7ffffff
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dddfa
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov edx, esi
mov ecx, edi
call fcn.004dd780
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dddfa
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov edx, esi
mov ecx, edi
call fcn.004dd780
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dddfa
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov edx, esi
mov ecx, edi
call fcn.004dd710
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dddfa
xor esi, esi
nop dword [eax + eax]
movzx edx, byte [esi + 0x6de6d8]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.0049a050
movzx eax, byte [esi + 0x6de6d9]
add esp, 4
add eax, dword [esp + 0x14]
movzx edx, byte [esi + 0x6de6d8]
mov ecx, dword [esp + 0x18]
push eax
call fcn.0049a0b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4dddfa
add esi, 2
cmp esi, 0xa
jl 0x4ddc50
cmp byte [ebp + 9], al
je 0x4ddcab
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], al
jne 0x4ddcab
mov ecx, ebp
call fcn.00490d90
mov esi, dword [esp + 0x18]
cmp byte [esi + 9], 0
je 0x4ddcc5
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4ddcc5
mov ecx, esi
call fcn.00490d90
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov ebx, dword [eax + 0x3c]
cmp dword [ebx], 0
je 0x4ddd0f
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x20]
cdq
push edx
push eax
push 0
push ecx
call fcn.0063e790
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx]
mov dword [esp + 0x20], edx
push 0xb
push ebx
mov eax, dword [eax + 0x28]
call eax
mov ebx, eax
add esp, 0xc
cmp ebx, 0xc
je 0x4ddd0f
test ebx, ebx
jne 0x4ddd94
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
push SysReAllocString
push eax
mov dword [esp + 0x40], 0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x58], esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], 1
call fcn.0049b750
lea eax, [esp + 0x40]
push eax
call fcn.0049bdd0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ddd7a
mov eax, dword [ebp + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x4ddd94
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xf], 0
jne 0x4ddd94
cmp byte [ecx + 0xc], 0
jne 0x4ddd94
call fcn.0048a490
cmp byte [esi + 9], 0
je 0x4ddda7
add dword [esi + 0xc], 0xffffffff
jne 0x4ddda7
mov ecx, esi
call fcn.00490d50
cmp byte [ebp + 9], 0
je 0x4dddba
add dword [ebp + 0xc], 0xffffffff
jne 0x4dddba
mov ecx, ebp
call fcn.00490d50
test ebx, ebx
jne 0x4dddfa
mov ecx, esi
call fcn.00494540
mov ebx, eax
test ebx, ebx
jne 0x4dddfa
mov ecx, esi
call fcn.00493210
mov edx, eax
mov ecx, ebp
call fcn.004931a0
mov eax, dword [esi + 4]
mov ecx, ebp
push 1
push dword [esp + 0x24]
mov edx, dword [eax + 0x20]
call fcn.00493010
add esp, 8
mov ebx, eax
jmp 0x4dddfa
mov ebx, 7
mov eax, dword [esp + 0x28]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, ebp
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x54], eax
mov eax, dword [esp + 0x34]
push 1
push 0xffffffffffffffff
mov dword [edi + 0xb0], eax
call fcn.00493010
mov ebp, dword [esp + 0x2c]
add esp, 8
mov byte [edi + 0x3f], 1
test ebp, ebp
je 0x4dde4c
mov ecx, dword [ebp + 4]
call fcn.00492cd0
mov dword [ebp + 4], 0
mov dword [ebp + 0xc], 0
mov ecx, edi
call fcn.004b9910
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x5c
ret