Function at 0x484210
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x64], 0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x60], ebx
cmp byte [ebx + 0x47], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], edi
jne 0x484323
mov esi, dword [edi]
test esi, esi
je 0x4842d7
cmp dword [ebx + 0x1d0], 0
je 0x48425f
mov edx, esi
mov ecx, ebx
call fcn.00405430
jmp 0x4842d7
cmp esi, dword [ebx + 0x128]
jb 0x48427f
cmp esi, dword [ebx + 0x12c]
jae 0x48427f
mov eax, dword [ebx + 0x124]
mov dword [esi], eax
mov dword [ebx + 0x124], esi
jmp 0x4842d7
cmp dword [0x55a418], 0
je 0x4842cd
mov eax, dword [0x560268]
test eax, eax
je 0x48429b
push eax
call dword [0x55a474]
add esp, 4
push esi
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push esi
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x4842d7
push eax
call dword [0x55a47c]
jmp 0x4842d4
push esi
call dword [0x55a448]
add esp, 4
push 0
push 0x28
mov ecx, ebx
call fcn.004058c0
add esp, 8
test eax, eax
je 0x48430b
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x54a98c]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x54a99c]
movq qword [eax + 0x20], xmm0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xa0], 1
jle 0x484426
mov esi, dword [edi]
test esi, esi
je 0x4843c6
cmp dword [ebx + 0x1d0], 0
je 0x48434e
mov edx, esi
mov ecx, ebx
call fcn.00405430
jmp 0x4843c6
cmp esi, dword [ebx + 0x128]
jb 0x48436e
cmp esi, dword [ebx + 0x12c]
jae 0x48436e
mov eax, dword [ebx + 0x124]
mov dword [esi], eax
mov dword [ebx + 0x124], esi
jmp 0x4843c6
cmp dword [0x55a418], 0
je 0x4843bc
mov eax, dword [0x560268]
test eax, eax
je 0x48438a
push eax
call dword [0x55a474]
add esp, 4
push esi
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push esi
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x4843c6
push eax
call dword [0x55a47c]
jmp 0x4843c3
push esi
call dword [0x55a448]
add esp, 4
push 0
push 0x2b
mov ecx, ebx
call fcn.004058c0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x48440e
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x54a9b4]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x54a9c4]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x54a9cc]
mov word [ecx + 0x28], ax
mov al, byte [0x54a9ce]
mov byte [ecx + 0x2a], al
mov dword [edi], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x1c]
movzx edx, word [ebx + 0x18]
or dword [ebx + 0x18], 6
mov dword [ebp - 0x6c], eax
and eax, 0xffffaf7f
or eax, 0x201
mov dword [ebp - 0x68], edx
mov edx, dword [ebx + 0x5c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x70], edx
mov edx, dword [ebx + 0x60]
shl ecx, 4
mov dword [ebp - 0x74], edx
mov dl, byte [ebx + 0x50]
mov byte [ebx + 0x50], 0
mov esi, dword [eax + ecx + 4]
mov byte [ebp - 0x4e], dl
mov edx, dword [eax + ecx]
mov dword [ebp - 0x54], ecx
mov ecx, ebx
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], edx
mov edx, edi
push str.ATTACHAS_vacuum_db
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [ebp - 0x4d], al
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x4c], eax
call fcn.00483e60
mov ecx, eax
add esp, 4
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48498a
mov eax, dword [ebp - 0x4c]
shl eax, 4
add eax, dword [ebx + 0x10]
mov dword [ebp - 0x64], eax
mov edi, dword [eax + 4]
cmp byte [edi + 9], cl
je 0x4844bf
inc dword [edi + 0xc]
cmp byte [edi + 0xa], cl
jne 0x4844bf
mov ecx, edi
call fcn.004198d0
xor edx, edx
mov ecx, edi
call fcn.0041dd70
test eax, eax
jne 0x4844d5
xor edx, edx
mov ecx, edi
call fcn.0041df60
cmp byte [edi + 9], 0
je 0x4844e8
add dword [edi + 0xc], 0xffffffff
jne 0x4844e8
mov ecx, edi
call fcn.004198b0
cmp byte [esi + 9], 0
je 0x4844fe
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4844fe
mov ecx, esi
call fcn.004198d0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
cmp byte [esi + 9], 0
mov dword [ebp - 0x5c], ecx
je 0x48451d
add dword [esi + 0xc], 0xffffffff
jne 0x48451d
mov ecx, esi
call fcn.004198b0
mov eax, dword [ebx + 0x10]
mov ecx, edi
mov edx, dword [ebp - 0x54]
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.0041c520
xor edx, edx
mov ecx, esi
call fcn.0041c5a0
mov edx, eax
mov ecx, edi
call fcn.0041c5a0
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], eax
je 0x484562
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x484562
mov ecx, edi
call fcn.004198d0
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
mov dword [eax + 7], 1
and byte [eax + 0x14], 0xfe
mov byte [eax + 0xb], 0
cmp byte [edi + 9], 0
je 0x484586
add dword [edi + 0xc], 0xffffffff
jne 0x484586
mov ecx, edi
call fcn.004198b0
mov edx, dword [ebp - 0x58]
mov ecx, ebx
push str.BEGIN
call fcn.00483e60
mov ecx, eax
add esp, 4
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48498a
lea edx, [eax + 2]
mov ecx, esi
call fcn.0041cd40
mov ecx, eax
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48498a
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x4845ca
mov dword [ebx + 0x54], ecx
mov eax, dword [esi + 4]
mov ecx, edi
push 0
push dword [ebp - 0x5c]
mov edx, dword [eax + 0x20]
call fcn.0041c750
add esp, 8
test eax, eax
jne 0x484983
cmp byte [ebp - 0x4d], al
jne 0x484605
mov edx, dword [ebx + 0x54]
mov ecx, edi
push eax
push dword [ebp - 0x5c]
call fcn.0041c750
add esp, 8
test eax, eax
jne 0x484983
cmp byte [ebx + 0x49], 0
jne 0x484983
mov al, byte [ebx + 0x4c]
test al, al
js 0x48461b
movsx edx, al
jmp 0x484667
mov cl, byte [esi + 9]
test cl, cl
je 0x484635
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x484635
mov ecx, esi
call fcn.004198d0
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x484647
mov dword [ebp - 0x48], 0
jmp 0x484653
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x48], eax
test cl, cl
je 0x484664
add dword [esi + 0xc], 0xffffffff
jne 0x484664
mov ecx, esi
call fcn.004198b0
mov edx, dword [ebp - 0x48]
mov ecx, edi
call fcn.0041c870
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0x58]
mov byte [ebx + 0x9c], al
push ebx
call fcn.00483ff0
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48498a
push dword [ebp - 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
push dword [ebp - 0x58]
push ebx
call fcn.00483ff0
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48498a
push dword [ebp - 0x10]
mov byte [ebx + 0x9c], 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 dword [ebp - 0x58]
push ebx
call fcn.00483ff0
and dword [ebx + 0x18], 0xfffffffb
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48498a
push dword [ebp - 0x10]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 0x58]
push ebx
call fcn.00483ff0
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48498a
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
movzx edx, byte [eax + 0x54b660]
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x4c], eax
test cl, cl
je 0x484740
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x484740
mov ecx, esi
call fcn.004198d0
mov cl, byte [esi + 9]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
cmp edx, 0xf
jne 0x48474f
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
add eax, dword [esi + 0x14]
jmp 0x48475b
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + edx*4 + 0x24]
bswap eax
mov dword [ebp - 0x4c], eax
test cl, cl
je 0x48476f
add dword [esi + 0xc], 0xffffffff
jne 0x48476f
mov ecx, esi
call fcn.004198b0
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x54b661]
add eax, dword [ebp - 0x4c]
movzx edx, byte [ecx + 0x54b660]
mov ecx, edi
push eax
call fcn.00425690
mov ecx, eax
add esp, 4
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48498a
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
cmp eax, 0xa
jl 0x484710
cmp byte [esi + 9], cl
je 0x4847c1
inc dword [esi + 0xc]
cmp byte [esi + 0xa], cl
jne 0x4847c1
mov ecx, esi
call fcn.004198d0
cmp byte [edi + 9], 0
je 0x4847d7
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4847d7
mov ecx, edi
call fcn.004198d0
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x54], eax
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x484827
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x20]
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x4c]
push 0xb
push dword [ebp - 0x54]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0x28]
call eax
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x48], ecx
cmp ecx, 0xc
je 0x484827
test ecx, ecx
jne 0x48489b
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push 0x7fffffff
push eax
mov dword [ebp - 0x44], 0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], 1
call fcn.004271e0
lea eax, [ebp - 0x44]
push eax
call fcn.00427ac0
add esp, 0xc
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x484888
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x48489b
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x48489b
call fcn.00411a50
cmp byte [edi + 9], 0
je 0x4848ae
add dword [edi + 0xc], 0xffffffff
jne 0x4848ae
mov ecx, edi
call fcn.004198b0
cmp byte [esi + 9], 0
je 0x4848c1
add dword [esi + 0xc], 0xffffffff
jne 0x4848c1
mov ecx, esi
call fcn.004198b0
cmp dword [ebp - 0x48], 0
jne 0x48498a
cmp byte [edi + 9], 0
je 0x4848e1
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4848e1
mov ecx, edi
call fcn.004198d0
xor edx, edx
mov ecx, edi
call fcn.0041dd70
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4848fd
xor edx, edx
mov ecx, edi
call fcn.0041df60
mov dword [ebp - 0x48], eax
cmp byte [edi + 9], 0
je 0x484910
add dword [edi + 0xc], 0xffffffff
jne 0x484910
mov ecx, edi
call fcn.004198b0
cmp dword [ebp - 0x48], 0
jne 0x48498a
mov cl, byte [edi + 9]
test cl, cl
je 0x484930
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x484930
mov ecx, edi
call fcn.004198d0
mov cl, byte [edi + 9]
mov edx, dword [edi + 4]
cmp byte [edx + 0x11], 0
jne 0x484942
mov dword [ebp - 0x4c], 0
jmp 0x48494e
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x4c], eax
test cl, cl
je 0x48495f
add dword [edi + 0xc], 0xffffffff
jne 0x48495f
mov ecx, edi
call fcn.004198b0
mov edx, dword [ebp - 0x4c]
mov ecx, esi
call fcn.0041c870
mov eax, dword [edi + 4]
mov ecx, esi
push 1
push dword [ebp - 0x5c]
mov edx, dword [eax + 0x20]
call fcn.0041c750
add esp, 8
mov dword [ebp - 0x48], eax
jmp 0x48498a
mov dword [ebp - 0x48], 7
mov eax, dword [ebp - 0x68]
movzx eax, ax
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0x60], eax
mov al, byte [ebp - 0x4e]
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0x50], al
cmp byte [esi + 9], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x4c], eax
je 0x4849d1
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4849d1
mov ecx, esi
call fcn.004198d0
mov eax, dword [ebp - 0x4c]
test byte [eax + 0x16], 2
je 0x4849ec
cmp byte [esi + 9], 0
je 0x484a2a
add dword [esi + 0xc], 0xffffffff
jne 0x484a2a
mov ecx, esi
call fcn.004198b0
jmp 0x484a2a
mov edi, dword [eax + 0x20]
lea ebx, [eax + 0x20]
sub edi, dword [eax + 0x24]
mov edx, ebx
mov ecx, dword [eax]
push edi
call fcn.004137f0
mov ecx, dword [ebx]
add esp, 4
movzx eax, di
sub ecx, eax
mov eax, dword [ebp - 0x4c]
or word [eax + 0x16], 2
mov dword [eax + 0x24], ecx
cmp byte [esi + 9], 0
je 0x484a27
add dword [esi + 0xc], 0xffffffff
jne 0x484a27
mov ecx, esi
call fcn.004198b0
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
mov byte [ebx + 0x47], 1
test esi, esi
je 0x484a4b
mov ecx, dword [esi + 4]
call fcn.0041c2b0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.00450350
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f49c2
mov esp, ebp
pop ebp
ret