Function at 0x100bfdc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x2c], 0
mov esi, ecx
mov dword [ebp - 0xc], esi
cmp byte [edi + 0x4f], 0
jne 0x100bfe64
mov edx, dword [esi]
test edx, edx
je 0x100bfe22
cmp dword [edi + 0x1e8], 0
je 0x100bfdf9
mov ecx, edi
call fcn.1004c3d0
jmp 0x100bfe22
cmp edx, dword [edi + 0x138]
jb 0x100bfe19
cmp edx, dword [edi + 0x13c]
jae 0x100bfe19
mov eax, dword [edi + 0x134]
mov dword [edx], eax
mov dword [edi + 0x134], edx
jmp 0x100bfe22
push edx
call fcn.1004c320
add esp, 4
push 0
push 0x28
mov ecx, edi
call fcn.1004c780
add esp, 8
test eax, eax
je 0x100bfe56
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x101c3e18]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x101c3e28]
movq qword [eax + 0x20], xmm0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0xac], 1
jle 0x100bff0a
mov ecx, dword [esi]
test ecx, ecx
je 0x100bfeb4
cmp dword [edi + 0x1e8], 0
je 0x100bfe8b
mov edx, ecx
mov ecx, edi
call fcn.1004c3d0
jmp 0x100bfeb4
cmp ecx, dword [edi + 0x138]
jb 0x100bfeab
cmp ecx, dword [edi + 0x13c]
jae 0x100bfeab
mov eax, dword [edi + 0x134]
mov dword [ecx], eax
mov dword [edi + 0x134], ecx
jmp 0x100bfeb4
push ecx
call fcn.1004c320
add esp, 4
push 0
push 0x2b
mov ecx, edi
call fcn.1004c780
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x100bfefc
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x101c3e40]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x101c3e50]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x101c3e58]
mov word [ecx + 0x28], ax
mov al, byte [0x101c3e5a]
mov byte [ecx + 0x2a], al
mov dword [esi], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov edx, dword [edi + 0x3c]
mov dword [ebp - 0x1c], edx
test ebx, ebx
je 0x100bfff6
movzx ecx, word [ebx + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x101ab648], 3
je 0x100bffa5
mov ecx, dword [esi]
test ecx, ecx
je 0x100bff70
cmp dword [edi + 0x1e8], 0
je 0x100bff47
mov edx, ecx
mov ecx, edi
call fcn.1004c3d0
jmp 0x100bff70
cmp ecx, dword [edi + 0x138]
jb 0x100bff67
cmp ecx, dword [edi + 0x13c]
jae 0x100bff67
mov eax, dword [edi + 0x134]
mov dword [ecx], eax
mov dword [edi + 0x134], ecx
jmp 0x100bff70
push ecx
call fcn.1004c320
add esp, 4
push 0
push 0x12
mov ecx, edi
call fcn.1004c780
add esp, 8
test eax, eax
je 0x100bff97
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x101c3e6c]
mov word [eax + 0x10], cx
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x100bffc9
cmp byte [ebx + 0xa], 1
jne 0x100bffc9
mov ecx, dword [ebx + 0x10]
mov eax, edx
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x100bfffb
test cl, 1
je 0x100bffdd
mov eax, edx
xor ecx, ecx
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x100bfffb
mov dl, 1
mov ecx, ebx
call fcn.1006d330
mov ecx, eax
mov eax, dword [edi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x100bfffb
mov ecx, 0x101a51a4
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x24]
mov esi, dword [edi + 0x64]
mov dword [ebp - 0x34], edx
and edx, 0xefffaf7f
mov dword [ebp - 0x30], eax
or edx, 0x201
mov dword [edi + 0x20], edx
or eax, 6
mov edx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], ebx
mov bl, byte [edi + 0x58]
shl edx, 4
mov byte [edi + 0x58], 0
mov byte [ebp - 3], bl
mov ebx, dword [ebp - 0x28]
mov dword [edi + 0x24], ebx
mov ebx, dword [eax + edx]
mov dword [ebp - 0x10], ebx
mov ebx, dword [eax + edx + 4]
push ecx
mov dword [ebp - 0x38], esi
mov esi, dword [edi + 0x68]
mov eax, dword [ebx + 4]
push str.ATTACH__Q_AS_vacuum_db
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0xc]
mov eax, dword [eax]
push esi
push edi
mov dword [ebp + 8], edx
mov al, byte [eax + 0xc]
mov byte [ebp - 2], al
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x24], eax
call fcn.100bfb90
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x3c], eax
test esi, esi
jne 0x100c05bc
mov eax, dword [ebp - 0x24]
shl eax, 4
add eax, dword [edi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x2c], eax
mov esi, dword [eax + 4]
mov dword [ebp - 8], esi
je 0x100c0185
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [ebp - 0x20], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100c0181
mov esi, dword [ecx + 0x18]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, esi
call dword [0x1018a4d4]
call esi
add esp, 8
test eax, eax
jne 0x100c00eb
cmp dword [ebp - 0x1c], eax
jl 0x100c017e
jg 0x100c00eb
cmp dword [ebp - 0x20], eax
jbe 0x100c017e
mov eax, dword [ebp - 0xc]
mov esi, 1
mov ecx, dword [eax]
test ecx, ecx
je 0x100c0136
cmp dword [edi + 0x1e8], 0
je 0x100c010d
mov edx, ecx
mov ecx, edi
call fcn.1004c3d0
jmp 0x100c0136
cmp ecx, dword [edi + 0x138]
jb 0x100c012d
cmp ecx, dword [edi + 0x13c]
jae 0x100c012d
mov eax, dword [edi + 0x134]
mov dword [ecx], eax
mov dword [edi + 0x134], ecx
jmp 0x100c0136
push ecx
call fcn.1004c320
add esp, 4
push 0
push 0x1b
mov ecx, edi
call fcn.1004c780
mov edx, eax
add esp, 8
test edx, edx
je 0x100c0174
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x101c3e98]
movq qword [edx + 0x10], xmm0
mov cx, word [0x101c3ea0]
mov word [edx + 0x18], cx
mov al, byte [0x101c3ea2]
mov byte [edx + 0x1a], al
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
jmp 0x100c05bc
mov esi, dword [ebp - 8]
or dword [edi + 0x18], 8
mov cl, byte [ebx + 9]
test cl, cl
je 0x100c019f
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100c019f
mov ecx, ebx
call fcn.1005f920
mov cl, byte [ebx + 9]
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [ebp - 0x14], edx
test cl, cl
je 0x100c01bc
add dword [ebx + 0xc], 0xffffffff
jne 0x100c01bc
mov ecx, ebx
call fcn.1005f8f0
mov eax, dword [edi + 0x10]
mov ecx, esi
mov edx, dword [ebp + 8]
mov edx, dword [eax + edx + 0xc]
mov edx, dword [edx + 0x50]
call fcn.10061f20
mov cl, byte [ebx + 9]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 1], cl
test cl, cl
je 0x100c01fc
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
mov byte [ebp - 1], cl
jne 0x100c01fc
mov ecx, ebx
call fcn.1005f920
mov al, byte [ebx + 9]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xd4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + 0x10]
test eax, eax
jns 0x100c0232
mov eax, dword [ecx + 0x1c]
add eax, dword [ecx + 0x18]
cdq
mov esi, eax
mov eax, ecx
push edx
mov edx, 0xfffffc00
push esi
mov eax, dword [eax + 0x10]
imul edx
push edx
push eax
call fcn.1014e210
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x14]
cmp eax, ecx
cmovge ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x1c], ecx
je 0x100c0253
add dword [ebx + 0xc], 0xffffffff
jne 0x100c0253
mov ecx, ebx
call fcn.1005f8f0
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
mov ecx, esi
call fcn.10061fb0
cmp byte [esi + 9], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
je 0x100c027b
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100c027b
mov ecx, esi
call fcn.1005f920
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
xor edx, edx
mov dword [ecx + 7], 1
cmp byte [ecx + 8], dl
mov byte [ecx + 0xb], 0
movzx eax, byte [ecx + 0xb]
cmovne eax, edx
and byte [ecx + 0x14], 0xfe
mov byte [ecx + 0xb], al
cmp byte [esi + 9], dl
je 0x100c02ad
add dword [esi + 0xc], 0xffffffff
jne 0x100c02ad
mov ecx, esi
call fcn.1005f8f0
mov edx, dword [ebp - 0xc]
mov ecx, edi
push str.BEGIN
call fcn.100bfab0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c05b9
xor edx, edx
mov ecx, ebx
cmp dword [ebp + 0xc], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.10062750
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c05b9
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x100c0302
mov dword [edi + 0x5c], 0
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0x20]
mov ecx, esi
push 0
push dword [ebp - 0x14]
call fcn.10062120
add esp, 8
test eax, eax
jne 0x100c05b2
cmp byte [ebp - 2], al
jne 0x100c033a
mov edx, dword [edi + 0x5c]
mov ecx, esi
push eax
push dword [ebp - 0x14]
call fcn.10062120
add esp, 8
test eax, eax
jne 0x100c05b2
cmp byte [edi + 0x51], 0
jne 0x100c05b2
mov al, byte [edi + 0x54]
test al, al
js 0x100c0350
movsx edx, al
jmp 0x100c039c
mov cl, byte [ebx + 9]
test cl, cl
je 0x100c036a
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100c036a
mov ecx, ebx
call fcn.1005f920
mov cl, byte [ebx + 9]
mov edx, dword [ebx + 4]
cmp byte [edx + 0x11], 0
jne 0x100c037c
mov dword [ebp - 0x1c], 0
jmp 0x100c0388
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x1c], eax
test cl, cl
je 0x100c0399
add dword [ebx + 0xc], 0xffffffff
jne 0x100c0399
mov ecx, ebx
call fcn.1005f8f0
mov edx, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10062240
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0xc]
mov byte [edi + 0xa4], al
push edi
call fcn.100bfb90
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c05b9
push dword [ebp - 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [ebp - 0xc]
push edi
call fcn.100bfb90
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c05b9
push dword [ebp - 0x10]
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 dword [ebp - 0xc]
push edi
call fcn.100bfb90
and dword [edi + 0x18], 0xfffffffb
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c05b9
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 - 0xc]
push edi
call fcn.100bfb90
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c05b9
mov dword [ebp - 0x10], eax
nop word [eax + eax]
movzx edx, byte [eax + 0x101a6f7c]
mov cl, byte [ebx + 9]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
test cl, cl
je 0x100c0470
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100c0470
mov ecx, ebx
call fcn.1005f920
mov cl, byte [ebx + 9]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
cmp edx, 0xf
jne 0x100c047f
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
add eax, dword [ebx + 0x14]
jmp 0x100c048b
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + edx*4 + 0x24]
bswap eax
mov dword [ebp - 0x24], eax
test cl, cl
je 0x100c049f
add dword [ebx + 0xc], 0xffffffff
jne 0x100c049f
mov ecx, ebx
call fcn.1005f8f0
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x101a6f7d]
add eax, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x101a6f7c]
mov ecx, esi
push eax
call fcn.10069ec0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c05b9
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
cmp eax, 0xa
jl 0x100c0440
cmp dword [ebp + 0xc], 0
jne 0x100c04f5
mov edx, esi
mov ecx, ebx
call fcn.1006c0f0
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c05b9
cmp byte [esi + 9], 0
je 0x100c050b
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100c050b
mov ecx, esi
call fcn.1005f920
xor edx, edx
mov ecx, esi
call fcn.10063570
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c0527
xor edx, edx
mov ecx, esi
call fcn.10063710
mov dword [ebp - 8], eax
cmp byte [esi + 9], 0
je 0x100c053a
add dword [esi + 0xc], 0xffffffff
jne 0x100c053a
mov ecx, esi
call fcn.1005f8f0
cmp dword [ebp - 8], 0
jne 0x100c05b9
cmp dword [ebp + 0xc], 0
jne 0x100c05b9
mov cl, byte [esi + 9]
test cl, cl
je 0x100c0560
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100c0560
mov ecx, esi
call fcn.1005f920
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x100c0572
mov dword [ebp - 0x24], 0
jmp 0x100c057e
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x24], eax
test cl, cl
je 0x100c058f
add dword [esi + 0xc], 0xffffffff
jne 0x100c058f
mov ecx, esi
call fcn.1005f8f0
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10062240
mov eax, dword [esi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.10062120
add esp, 8
mov esi, eax
jmp 0x100c05bc
mov esi, 7
jmp 0x100c05bc
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, ebx
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x68], eax
mov al, byte [ebp - 3]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xa4], 0
mov byte [edi + 0x58], al
call fcn.10062120
mov ebx, dword [ebp - 0x2c]
add esp, 8
mov byte [edi + 0x4f], 1
test ebx, ebx
je 0x100c0619
mov ecx, dword [ebx + 4]
call fcn.10061d60
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, edi
call fcn.10092060
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret