Function at 0x45e5b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
cmp byte [edx + 0x4f], 0
mov esi, edx
mov edi, ecx
je 0x45e5fc
cmp dword [esi + 0xac], 2
jl 0x45e63c
mov edx, dword [edi]
test edx, edx
je 0x45e5dc
mov ecx, esi
call fcn.004352c0
mov ecx, esi
mov edx, 0x2b
push 0
call fcn.00435490
add esp, 4
mov esi, eax
test eax, eax
je 0x45e630
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x45e627
mov edx, dword [edi]
test edx, edx
je 0x45e609
mov ecx, esi
call fcn.004352c0
mov ecx, esi
mov edx, 0x28
push 0
call fcn.00435490
add esp, 4
mov esi, eax
test eax, eax
je 0x45e630
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [edi], esi
mov edi, 1
jmp 0x45ea85
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi + 0x3c]
test ecx, ecx
je 0x45e673
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x3f
cmp byte [eax + 0x50cfda], 3
jne 0x45e682
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x45e6d1
cmp byte [ecx + 0xa], 1
jne 0x45e6d1
mov eax, dword [ecx + 0x10]
mov edx, ebx
jmp 0x45e6e7
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edi
mov eax, 0x50ce6c
jmp 0x45e6f8
mov edx, dword [edi]
test edx, edx
je 0x45e68f
mov ecx, esi
call fcn.004352c0
mov ecx, esi
mov edx, 0x12
push 0
call fcn.00435490
add esp, 4
test eax, eax
je 0x45e6c5
mov word [eax + 0x10], 0x65
mov dword [eax + 0xc], 0x6d616e65
mov dword [eax + 8], 0x6c696620
mov dword [eax + 4], 0x74786574
mov dword [eax], 0x2d6e6f6e
mov dword [edi], eax
mov edi, 1
jmp 0x45ea85
xor eax, eax
test dl, 1
mov edx, ebx
jne 0x45e6e7
mov edx, 1
call fcn.0044b800
mov edx, dword [esi + 0x3c]
and edx, 0xfffffff8
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edi
or edx, 6
mov dword [esi + 0x3c], edx
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x64]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x40], ecx
mov ecx, ebx
mov dword [esp + 0x3c], ebx
mov bl, byte [esi + 0x58]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edx
or ecx, 6
mov byte [esp + 0x17], bl
mov ebx, dword [esi + 0x68]
mov dword [esi + 0x18], ecx
mov ecx, edi
mov edi, dword [ebp + 8]
and ecx, 0xfffffffe
mov dword [esi + 0x24], ecx
mov ecx, edx
and ecx, 0xefffadfe
or ecx, 0x201
shl edi, 4
mov dword [esp + 0x38], ebx
mov dword [esi + 0x20], ecx
mov byte [esi + 0x58], 0
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov edx, dword [ecx + edi + 4]
mov ecx, dword [ecx + edi]
mov dword [esp + 4], edx
mov edx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [edx]
mov dl, byte [edx + 0xc]
mov byte [esp + 0x16], dl
push eax
push str.ATTACH__Q_AS_vacuum_db
mov eax, dword [esp + 0x18]
push eax
push esi
call fcn.0046b2f0
add esp, 0x10
mov ecx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x3c], ecx
je 0x45e79c
mov ecx, dword [esp + 4]
mov edx, eax
xor ebx, ebx
mov edi, eax
jmp 0x45ea1e
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov dword [esp + 0x24], edi
mov edi, ebx
shl ecx, 4
cmp dword [ebp + 0xc], 0
mov ebx, dword [eax + ecx + 4]
lea edx, [eax + ecx]
mov dword [esp + 0xc], edx
je 0x45e7fb
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x45e7f7
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0x18]
add esp, 8
test eax, eax
jne 0x45e81e
mov eax, dword [esp + 0x28]
xor ecx, ecx
neg eax
sbb ecx, dword [esp + 0x2c]
jl 0x45e81e
or byte [esi + 0x18], 8
mov ecx, dword [esp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 0x34], edi
cmp byte [ecx + 9], 0
je 0x45e81a
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
je 0x45e83f
xor ebx, ebx
jmp 0x45e853
mov bl, 1
jmp 0x45e853
mov ecx, dword [esp + 0x10]
mov edx, esi
push str.output_file_already_exists
call fcn.00467ed0
add esp, 4
mov edi, 1
mov ecx, dword [esp + 4]
jmp 0x45ea1a
mov ecx, dword [esp + 4]
call fcn.004442e0
mov ecx, dword [esp + 4]
cmp byte [ecx + 9], 0
sete bl
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x24]
movzx edi, byte [eax + 0x16]
sub edx, dword [eax + 0x28]
test bl, bl
jne 0x45e876
dec dword [ecx + 0xc]
jne 0x45e876
mov dword [esp + 0x1c], edx
call fcn.00444370
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x24]
cmp edx, edi
cmovl edx, edi
mov dword [esp + 0x1c], edx
mov eax, dword [eax + ecx + 0xc]
mov ecx, dword [esp + 8]
mov edi, dword [eax + 0x50]
mov ebx, dword [ecx + 4]
cmp byte [ecx + 9], 0
je 0x45e8a8
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x45e8a8
call fcn.004442e0
mov eax, dword [ebx]
test edi, edi
mov eax, dword [eax + 0xd4]
mov dword [eax + 0x10], edi
mov ecx, dword [0x51d220]
mov ebx, dword [eax + 0x2c]
jns 0x45e8f3
mov dword [esp + 0x24], ecx
mov ecx, edi
xor edx, edx
sar ecx, 0x1f
shld ecx, edi, 0xa
shl edi, 0xa
neg edi
sbb edx, ecx
mov ecx, dword [eax + 0x1c]
add ecx, dword [eax + 0x18]
mov eax, ecx
sar eax, 0x1f
push eax
push ecx
push edx
push edi
call fcn.004fb230
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov edi, eax
push edi
push ebx
call ecx
add esp, 8
mov ecx, dword [esp + 8]
cmp byte [ecx + 9], 0
je 0x45e90e
dec dword [ecx + 0xc]
jne 0x45e90e
call fcn.00444370
mov ecx, dword [esp + 4]
mov edi, dword [ecx + 4]
cmp byte [ecx + 9], 0
je 0x45e931
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x45e931
mov ecx, dword [esp + 4]
call fcn.004442e0
mov ecx, dword [esp + 4]
mov eax, dword [edi]
mov ebx, dword [eax + 0xd4]
mov edi, dword [ebx + 0x10]
test edi, edi
jns 0x45e96f
mov eax, edi
xor ecx, ecx
sar eax, 0x1f
shld eax, edi, 0xa
shl edi, 0xa
neg edi
sbb ecx, eax
mov eax, dword [ebx + 0x1c]
add eax, dword [ebx + 0x18]
mov edx, eax
sar edx, 0x1f
push edx
push eax
push ecx
push edi
call fcn.004fb230
mov ecx, dword [esp + 0x14]
add esp, 0x10
mov edi, eax
mov ebx, dword [ebx + 0x14]
cmp byte [ecx + 9], 0
je 0x45e986
dec dword [ecx + 0xc]
jne 0x45e986
mov ecx, dword [esp + 4]
call fcn.00444370
cmp edi, ebx
cmovl edi, ebx
mov ebx, dword [esp + 8]
mov edx, edi
mov ecx, ebx
call fcn.0046b430
mov edi, dword [ebx + 4]
cmp byte [ebx + 9], 0
je 0x45e9b1
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x45e9b1
mov ecx, ebx
call fcn.004442e0
mov eax, dword [edi]
mov ecx, ebx
mov byte [eax + 7], 1
mov dword [eax + 8], 0
and byte [eax + 0x14], 0xfe
cmp byte [ebx + 9], 0
mov ebx, dword [esp + 0xc]
je 0x45e9d8
dec dword [ecx + 0xc]
jne 0x45e9d8
call fcn.00444370
mov edx, dword [esp + 0x10]
mov ecx, esi
push str.BEGIN
call fcn.0046b5c0
add esp, 4
test eax, eax
je 0x45e9f7
mov ecx, dword [esp + 4]
mov edi, eax
jmp 0x45ea1e
xor edx, edx
cmp dword [ebp + 0xc], 0
mov ebx, dword [esp + 4]
sete dl
mov ecx, ebx
add edx, edx
push 0
call fcn.00423190
add esp, 4
test eax, eax
je 0x45ea8f
mov edi, eax
mov ecx, ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x3c]
mov byte [esi + 0xa4], 0
mov edx, 0xffffffff
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x68], eax
mov al, byte [esp + 0x17]
mov byte [esi + 0x58], al
push 1
push 0
call fcn.00433c80
add esp, 8
test ebx, ebx
mov byte [esi + 0x4f], 1
je 0x45ea7e
mov ecx, dword [ebx + 4]
call fcn.0044a180
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.00423d80
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
cmp byte [ecx + 5], 5
jne 0x45eaa8
mov eax, dword [esp + 4]
mov dword [esi + 0x5c], 0
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x24]
mov ecx, dword [esp + 8]
push 0
push dword [esp + 0x20]
call fcn.00433c80
add esp, 8
mov ebx, dword [esp + 0xc]
mov edi, 7
test eax, eax
je 0x45ead3
mov ecx, dword [esp + 4]
jmp 0x45ea1e
cmp byte [esp + 0x16], 0
mov ecx, dword [esp + 4]
je 0x45eb98
cmp byte [esi + 0x51], 0
jne 0x45ea1e
movzx edx, byte [esi + 0x54]
test dl, dl
jns 0x45eaff
mov ecx, dword [esp + 4]
call fcn.0046b760
mov edx, eax
mov ecx, dword [esp + 8]
call fcn.0046b6f0
mov eax, dword [esp + 0x34]
mov byte [esi + 0xa4], al
push dword [esp + 0x20]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x18]
push esi
call fcn.0046b2f0
add esp, 0x10
test eax, eax
jne 0x45e9ef
push dword [esp + 0x20]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [esp + 0x18]
push esi
call fcn.0046b2f0
add esp, 0x10
test eax, eax
jne 0x45e9ef
mov byte [esi + 0xa4], 0
push dword [esp + 0x20]
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [esp + 0x18]
push esi
call fcn.0046b2f0
add esp, 0x10
and byte [esi + 0x18], 0xfb
test eax, eax
jne 0x45e9ef
push dword [esp + 0x20]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x18]
push esi
call fcn.0046b2f0
add esp, 0x10
test eax, eax
je 0x45ebbe
mov edi, eax
jmp 0x45e836
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x5c]
push 0
push dword [esp + 0x20]
call fcn.00433c80
mov ecx, dword [esp + 0xc]
add esp, 8
test eax, eax
jne 0x45ea1e
jmp 0x45eae2
mov ecx, dword [esp + 4]
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], 0xffffffff
mov edx, 1
push ebx
call fcn.004555a0
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, 1
inc eax
push eax
call fcn.00423cd0
add esp, 4
mov edi, eax
test eax, eax
jne 0x45e836
mov ecx, dword [esp + 4]
mov edx, 3
push ebx
call fcn.004555a0
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 3
push dword [esp + 0x18]
call fcn.00423cd0
add esp, 4
mov edi, eax
test eax, eax
jne 0x45e836
mov ecx, dword [esp + 4]
mov edx, 5
push ebx
call fcn.004555a0
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 5
push dword [esp + 0x18]
call fcn.00423cd0
add esp, 4
mov edi, eax
test eax, eax
jne 0x45e836
mov ecx, dword [esp + 4]
mov edx, 6
push ebx
call fcn.004555a0
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 6
push dword [esp + 0x18]
call fcn.00423cd0
add esp, 4
mov edi, eax
test eax, eax
jne 0x45e836
mov ecx, dword [esp + 4]
mov edx, 8
push ebx
call fcn.004555a0
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 8
push dword [esp + 0x18]
call fcn.00423cd0
add esp, 4
mov edi, eax
test eax, eax
jne 0x45e836
cmp dword [ebp + 0xc], 0
jne 0x45ecde
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
call fcn.0046b7b0
mov edi, eax
test eax, eax
jne 0x45e836
cmp dword [ebp + 0xc], 0
mov ecx, dword [esp + 8]
setne bl
call fcn.00467fd0
xor ecx, ecx
test eax, eax
mov edi, eax
setne cl
add ecx, ecx
test eax, eax
jne 0x45ed17
test bl, bl
jne 0x45ed17
mov ecx, dword [esp + 8]
call fcn.0046b760
mov ecx, dword [esp + 4]
mov edx, eax
call fcn.0046b6f0
xor ecx, ecx
test ecx, ecx
setne al
or al, bl
jne 0x45e836
mov eax, dword [esp + 8]
mov edi, dword [esp + 4]
mov eax, dword [eax + 4]
mov ecx, edi
mov edx, dword [eax + 0x24]
push 1
push dword [esp + 0x20]
call fcn.00433c80
mov ecx, edi
add esp, 8
mov edi, eax
jmp 0x45ea1a