Function at 0x44de93
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x44
mov eax, dword [0x490004]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebx, ecx
mov ecx, dword [esp + 0x58]
xor ebp, ebp
push edi
mov edi, edx
mov dword [esp + 0x1c], ecx
cmp byte [edi + 0x4f], 0
jne 0x44ded2
push str.cannot_VACUUM_from_within_a_transaction
mov ecx, ebx
call fcn.00404bf3
xor eax, eax
pop ecx
inc eax
jmp 0x44e2c6
cmp dword [edi + 0xb0], 1
jle 0x44dee2
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x44dec2
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x44df1b
movzx eax, word [ecx + 8]
and eax, 0x3f
cmp byte [eax + 0x484600], 3
je 0x44df04
push str.non_text_filename
jmp 0x44dec2
mov dl, 1
call fcn.0041bd87
mov ecx, dword [edi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x44df20
mov edx, 0x487af8
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x34], eax
or eax, 6
mov dword [edi + 0x18], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x64]
and eax, 0xefffaf7f
or eax, 0x201
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 0x68]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x10]
shl esi, 4
mov dword [esp + 0x3c], ecx
mov cl, byte [edi + 0x58]
mov byte [edi + 0x58], 0
mov byte [esp + 0x1b], cl
mov ecx, dword [esi + eax]
mov eax, dword [esi + eax + 4]
mov dword [esp + 0x10], eax
push edx
push str.ATTACH__Q_AS_vacuum_db
mov eax, dword [eax + 4]
push ebx
push edi
mov dword [esp + 0x34], esi
mov eax, dword [eax]
mov dword [esp + 0x24], ecx
mov al, byte [eax + 0xc]
mov byte [esp + 0x2a], al
mov eax, dword [edi + 0x14]
mov dword [esp + 0x38], eax
call fcn.0044dd75
mov esi, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [edi + 0x3c], eax
test esi, esi
jne 0x44e264
mov ebp, dword [esp + 0x28]
mov edx, dword [edi + 0x10]
shl ebp, 4
add ebp, edx
cmp dword [esp + 0x1c], 0
mov esi, dword [ebp + 4]
mov dword [esp + 0x20], esi
je 0x44e025
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [esp + 0x40], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x44e01e
lea edx, [esp + 0x40]
push edx
push eax
call dword [ecx + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x44e007
cmp dword [esp + 0x44], eax
jl 0x44e01e
jg 0x44e007
cmp dword [esp + 0x40], eax
jbe 0x44e01e
xor esi, esi
mov edx, edi
push str.output_file_already_exists
mov ecx, ebx
inc esi
call fcn.00404bf3
pop ecx
jmp 0x44e264
or dword [edi + 0x18], 8
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 4]
mov edx, dword [eax + edx + 0xc]
mov ecx, dword [ecx]
mov edx, dword [edx + 0x50]
call fcn.0040d86a
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.00413a17
mov edx, eax
mov ecx, esi
call fcn.00413a17
mov ecx, dword [esi + 4]
push 0x21
pop edx
mov ecx, dword [ecx]
call fcn.0040d8f3
push str.BEGIN
mov edx, ebx
mov ecx, edi
call fcn.0044dcb9
mov esi, eax
pop ecx
test esi, esi
jne 0x44e264
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp dword [esp + 0x1c], edx
push eax
push 2
pop eax
cmove edx, eax
call fcn.00413ec3
mov esi, eax
pop ecx
test esi, esi
jne 0x44e264
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x44e0bb
and dword [edi + 0x5c], esi
mov edx, dword [ecx + 4]
mov esi, dword [esp + 0x20]
mov ecx, esi
mov edx, dword [edx + 0x20]
push 0
push dword [esp + 0x44]
call fcn.00413a67
pop ecx
pop ecx
test eax, eax
jne 0x44e261
cmp byte [esp + 0x1a], al
jne 0x44e0f8
mov edx, dword [edi + 0x5c]
mov ecx, esi
push eax
push dword [esp + 0x44]
call fcn.00413a67
pop ecx
pop ecx
test eax, eax
jne 0x44e261
cmp byte [edi + 0x51], 0
jne 0x44e261
mov al, byte [edi + 0x54]
test al, al
js 0x44e10e
movsx edx, al
jmp 0x44e123
mov eax, dword [esp + 0x10]
xor edx, edx
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], dl
je 0x44e123
cmp byte [eax + 0x12], dl
setne dl
inc edx
mov ecx, esi
call fcn.00413b1d
push dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push ebx
push edi
mov byte [edi + 0xa4], al
call fcn.0044dd75
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x44e264
push dword [esp + 0x14]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push ebx
push edi
call fcn.0044dd75
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x44e264
push dword [esp + 0x14]
mov byte [edi + 0xa4], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push ebx
push edi
call fcn.0044dd75
and dword [edi + 0x18], 0xfffffffb
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x44e264
push dword [esp + 0x14]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ebx
push edi
call fcn.0044dd75
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x44e264
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
movzx esi, byte [eax + 0x47eb14]
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, esi
push eax
call fcn.0041981c
mov eax, dword [esp + 0x18]
mov edx, esi
pop ecx
mov ecx, ebx
movzx eax, byte [eax + 0x47eb15]
add eax, dword [esp + 0x24]
push eax
call fcn.00419846
mov esi, eax
pop ecx
test esi, esi
jne 0x44e264
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x14], eax
cmp eax, 0xa
jl 0x44e1ba
cmp dword [esp + 0x1c], esi
jne 0x44e219
mov ecx, dword [esp + 0x10]
mov edx, ebx
call fcn.0041af5f
mov esi, eax
test esi, esi
jne 0x44e264
mov ecx, ebx
call fcn.004148d1
mov esi, eax
test esi, esi
jne 0x44e264
cmp dword [esp + 0x1c], eax
jne 0x44e264
mov eax, dword [ebx + 4]
xor edx, edx
cmp byte [eax + 0x11], dl
je 0x44e23d
cmp byte [eax + 0x12], dl
setne dl
inc edx
mov ecx, dword [esp + 0x10]
call fcn.00413b1d
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
push 1
push dword [esp + 0x44]
mov edx, dword [eax + 0x20]
call fcn.00413a67
pop ecx
pop ecx
mov esi, eax
jmp 0x44e264
push 7
pop esi
mov eax, dword [esp + 0x34]
or edx, 0xffffffff
mov ecx, dword [esp + 0x10]
xor ebx, ebx
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x68], eax
mov al, byte [esp + 0x1b]
push 1
push edx
mov byte [edi + 0xa4], bl
mov byte [edi + 0x58], al
call fcn.00413a67
mov byte [edi + 0x4f], 1
pop ecx
pop ecx
test ebp, ebp
je 0x44e2bd
mov ecx, dword [ebp + 4]
call fcn.004139a7
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], ebx
mov ecx, edi
call fcn.00433f15
mov eax, esi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004614f6
add esp, 0x44
ret