Function at 0x100ac740
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
push ebx
push ebp
mov ebx, edx
mov dword [esp + 0x34], 0
push esi
push edi
mov edi, ecx
cmp byte [ebx + 0x55], 0
mov dword [esp + 0x14], edi
jne 0x100ac7ad
push 0
push 0x28
mov ecx, ebx
call fcn.10025f80
mov esi, eax
add esp, 8
test esi, esi
je 0x100ac793
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x1014b234]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x1014b244]
movq qword [esi + 0x20], xmm0
push dword [edi]
push ebx
call fcn.10025c40
add esp, 8
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
cmp dword [ebx + 0xbc], 1
jle 0x100ac800
push 0
push 0x2b
mov ecx, ebx
call fcn.10025f80
mov esi, eax
add esp, 8
test esi, esi
je 0x100ac793
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x1014b25c]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x1014b26c]
movq qword [esi + 0x20], xmm0
mov ax, word [0x1014b274]
mov word [esi + 0x28], ax
mov al, byte [0x1014b276]
mov byte [esi + 0x2a], al
jmp 0x100ac793
mov esi, dword [esp + 0x94]
mov ebp, dword [ebx + 0x3c]
mov dword [esp + 0x20], ebp
test esi, esi
je 0x100ac8ab
movzx ecx, word [esi + 0x10]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x10143768], 3
je 0x100ac85a
push 0
push 0x12
mov ecx, ebx
call fcn.10025f80
mov esi, eax
add esp, 8
test esi, esi
je 0x100ac793
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [esi], xmm0
mov cx, word [0x1014b288]
mov word [esi + 0x10], cx
jmp 0x100ac793
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x100ac87e
cmp byte [esi + 0x12], 1
jne 0x100ac87e
mov edx, dword [esi + 8]
mov eax, ebp
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x100ac8b0
test cl, 1
je 0x100ac892
mov eax, ebp
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x100ac8b0
mov dl, 1
mov ecx, esi
call fcn.1004a4b0
mov edx, eax
mov eax, dword [ebx + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x100ac8b0
mov edx, 0x1014475b
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x68]
mov ebp, dword [ebx + 0x24]
mov dword [esp + 0x38], ecx
mov cl, byte [ebx + 0x5e]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x38]
and ecx, 0xefffafff
mov dword [esp + 0x40], eax
or ecx, 0x201
mov dword [esp + 0x48], esi
mov esi, dword [ebx + 0x6c]
or eax, 6
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x90]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x10]
shl ecx, 4
mov dword [esp + 0x4c], esi
mov esi, dword [ebx + 0x70]
mov dword [esp + 0x44], ebp
and ebp, 0xfffffffe
mov dword [ebx + 0x24], ebp
mov byte [ebx + 0x5e], 0
mov ebp, dword [ecx + eax]
mov dword [esp + 0x50], esi
mov esi, dword [ebx + 0x74]
mov dword [esp + 0x54], esi
mov esi, dword [ecx + eax + 4]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x18], ebp
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
jne 0x100ac943
cmp byte [eax + 0x10], 0
mov dword [esp + 0x2c], 0
je 0x100ac94b
mov dword [esp + 0x2c], 1
mov eax, dword [ebx + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push edi
push ebx
mov dword [esp + 0x40], eax
call fcn.100ac550
mov ebp, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x3c], eax
test ebp, ebp
jne 0x100acfc7
mov eax, dword [esp + 0x30]
shl eax, 4
add eax, dword [ebx + 0x10]
mov dword [esp + 0x3c], eax
mov edi, dword [eax + 4]
cmp dword [esp + 0x94], ebp
je 0x100aca4a
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100aca2d
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x100ac9cc
cmp dword [esp + 0x24], eax
jl 0x100aca2d
jg 0x100ac9cc
cmp dword [esp + 0x20], eax
jbe 0x100aca2d
push 0
push 0x1b
mov ecx, ebx
mov ebp, 1
call fcn.10025f80
mov edx, eax
add esp, 8
mov dword [esp + 0x30], edx
test edx, edx
je 0x100aca13
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x1014b2b4]
movq qword [edx + 0x10], xmm0
mov cx, word [0x1014b2bc]
mov word [edx + 0x18], cx
mov al, byte [0x1014b2be]
mov byte [edx + 0x1a], al
mov edi, dword [esp + 0x14]
push dword [edi]
push ebx
call fcn.10025c40
mov eax, dword [esp + 0x38]
add esp, 8
mov dword [edi], eax
jmp 0x100acfc7
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x90]
or dword [ebx + 0x18], 8
movzx ebp, byte [ecx + eax + 8]
mov eax, dword [ebx + 0x20]
and eax, 0x38
or ebp, eax
jmp 0x100aca4f
mov ebp, 1
mov cl, byte [esi + 9]
test cl, cl
je 0x100aca69
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100aca69
mov ecx, esi
call fcn.1003bcc0
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
movzx edx, byte [eax + 0x16]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x24]
sub edx, dword [eax + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
test cl, cl
je 0x100aca97
add dword [esi + 0xc], 0xffffffff
jne 0x100aca97
mov ecx, esi
call fcn.1003bca0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp edx, eax
mov ecx, dword [esp + 0x90]
cmovg eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov edx, dword [ecx + eax + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.1003e300
xor edx, edx
mov ecx, esi
call fcn.1003e3a0
mov edx, eax
mov ecx, edi
call fcn.1003e3a0
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x20], eax
je 0x100acaef
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100acaef
mov ecx, edi
call fcn.1003bcc0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
or ebp, 0x20
mov edx, ebp
call fcn.100349b0
cmp byte [edi + 9], 0
je 0x100acb0e
add dword [edi + 0xc], 0xffffffff
jne 0x100acb0e
mov ecx, edi
call fcn.1003bca0
mov edx, dword [esp + 0x14]
mov ecx, ebx
push str.BEGIN
call fcn.100ac470
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100acfc7
mov ecx, dword [esp + 0x94]
xor edx, edx
test ecx, ecx
mov eax, 2
cmove edx, eax
cmp byte [esi + 9], 0
jne 0x100acb57
mov al, byte [esi + 8]
test al, al
je 0x100acb57
cmp al, 1
jne 0x100acbd8
test ecx, ecx
jne 0x100acb74
push 0
mov ecx, esi
call fcn.1003e9b0
add esp, 4
mov ebp, eax
test ebp, ebp
jne 0x100acfc7
mov ecx, dword [esp + 0x94]
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x100acb89
test ecx, ecx
jne 0x100acb89
mov dword [ebx + 0x64], ecx
mov edx, dword [esi + 4]
mov ebp, dword [esp + 0x1c]
mov ecx, edi
mov edx, dword [edx + 0x24]
push 0
push ebp
call fcn.1003e460
add esp, 8
test eax, eax
jne 0x100acfc2
cmp dword [esp + 0x2c], eax
jne 0x100acbc2
mov edx, dword [ebx + 0x64]
mov ecx, edi
push eax
push ebp
call fcn.1003e460
add esp, 8
test eax, eax
jne 0x100acfc2
cmp byte [ebx + 0x57], 0
jne 0x100acfc2
mov al, byte [ebx + 0x5a]
test al, al
js 0x100acc05
movsx ebp, al
jmp 0x100acc4c
test ecx, ecx
jne 0x100acb74
mov eax, dword [esi]
mov edx, dword [eax + 0x1f8]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
cmp edx, dword [ecx + 0x68]
jle 0x100acbfe
cmp byte [ecx + 6], 0
je 0x100acbfe
call fcn.10037120
jmp 0x100acb63
xor ebp, ebp
jmp 0x100acb65
mov cl, byte [esi + 9]
test cl, cl
je 0x100acc1f
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100acc1f
mov ecx, esi
call fcn.1003bcc0
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x100acc2c
xor ebp, ebp
jmp 0x100acc3b
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [esp + 0x2c], eax
mov ebp, eax
test cl, cl
je 0x100acc4c
add dword [esi + 0xc], 0xffffffff
jne 0x100acc4c
mov ecx, esi
call fcn.1003bca0
mov edx, ebp
mov ecx, edi
call fcn.1003e5a0
push dword [esp + 0x18]
mov eax, dword [esp + 0x34]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
mov byte [ebx + 0xb0], al
push ebx
call fcn.100ac550
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100acfc7
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x1c]
push ebx
call fcn.100ac550
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100acfc7
push dword [esp + 0x18]
mov byte [ebx + 0xb0], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
push ebx
call fcn.100ac550
and dword [ebx + 0x18], 0xfffffffb
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100acfc7
push dword [esp + 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x1c]
push ebx
call fcn.100ac550
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100acfc7
mov dword [esp + 0x1c], eax
nop dword [eax]
mov cl, byte [esi + 9]
movzx ebp, byte [eax + 0x1013bd94]
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
test cl, cl
je 0x100acd1c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100acd1c
mov ecx, esi
call fcn.1003bcc0
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x30]
cmp ebp, 0xf
jne 0x100acd2b
mov eax, dword [eax]
mov ebp, dword [eax + 0x6c]
add ebp, dword [esi + 0x14]
jmp 0x100acd37
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebp, dword [eax + ebp*4 + 0x24]
bswap ebp
test cl, cl
je 0x100acd48
add dword [esi + 0xc], 0xffffffff
jne 0x100acd48
mov ecx, esi
call fcn.1003bca0
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ecx + 0x1013bd95]
movzx edx, byte [ecx + 0x1013bd94]
add eax, ebp
push eax
mov ecx, edi
call fcn.10046cc0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100acfc7
mov eax, dword [esp + 0x1c]
add eax, 2
mov dword [esp + 0x1c], eax
cmp eax, 0xa
jl 0x100accf0
cmp dword [esp + 0x94], ebp
jne 0x100acebe
cmp byte [esi + 9], 0
je 0x100acda8
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100acda8
mov ecx, esi
call fcn.1003bcc0
cmp byte [edi + 9], 0
je 0x100acdbe
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100acdbe
mov ecx, edi
call fcn.1003bcc0
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebp, dword [eax + 0x40]
cmp dword [ebp], 0
je 0x100ace0b
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x24]
cdq
push edx
push eax
push 0
push ecx
call fcn.10128690
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebp]
mov dword [esp + 0x38], edx
push 0xb
push ebp
mov eax, dword [eax + 0x28]
call eax
xor ebp, ebp
add esp, 0xc
cmp eax, 0xc
cmovne ebp, eax
test ebp, ebp
jne 0x100ace90
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x58]
push 0x7fffffff
push eax
mov dword [esp + 0x60], 0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x78], edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], 1
call fcn.10048610
lea eax, [esp + 0x60]
push eax
call fcn.10048c90
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x100ace7c
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x18], cx
jmp 0x100ace90
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x100ace90
call fcn.10032ea0
cmp byte [edi + 9], 0
je 0x100acea3
add dword [edi + 0xc], 0xffffffff
jne 0x100acea3
mov ecx, edi
call fcn.1003bca0
cmp byte [esi + 9], 0
je 0x100aceb6
add dword [esi + 0xc], 0xffffffff
jne 0x100aceb6
mov ecx, esi
call fcn.1003bca0
test ebp, ebp
jne 0x100acfc7
cmp byte [edi + 9], 0
je 0x100aced4
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100aced4
mov ecx, edi
call fcn.1003bcc0
xor edx, edx
mov ecx, edi
call fcn.1003f860
mov ebp, eax
test ebp, ebp
jne 0x100aceee
xor edx, edx
mov ecx, edi
call fcn.1003f9d0
mov ebp, eax
cmp byte [edi + 9], 0
je 0x100acf01
add dword [edi + 0xc], 0xffffffff
jne 0x100acf01
mov ecx, edi
call fcn.1003bca0
test ebp, ebp
jne 0x100acfc7
cmp dword [esp + 0x94], ebp
jne 0x100acfc7
mov cl, byte [edi + 9]
test cl, cl
je 0x100acf30
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100acf30
mov ecx, edi
call fcn.1003bcc0
mov cl, byte [edi + 9]
mov edx, dword [edi + 4]
cmp byte [edx + 0x11], 0
jne 0x100acf3d
xor ebp, ebp
jmp 0x100acf4c
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [esp + 0x30], eax
mov ebp, eax
test cl, cl
je 0x100acf5d
add dword [edi + 0xc], 0xffffffff
jne 0x100acf5d
mov ecx, edi
call fcn.1003bca0
mov edx, ebp
mov ecx, esi
call fcn.1003e5a0
mov al, byte [edi + 9]
test al, al
je 0x100acf80
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100acf80
mov ecx, edi
call fcn.1003bcc0
mov al, byte [edi + 9]
mov edx, dword [edi + 4]
mov ebp, dword [edx + 0x24]
movzx ecx, byte [edx + 0x16]
sub ebp, dword [edx + 0x28]
mov dword [esp + 0x30], ecx
test al, al
je 0x100acfa9
add dword [edi + 0xc], 0xffffffff
jne 0x100acfa9
mov ecx, edi
call fcn.1003bca0
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [edx + 0x24]
cmp ecx, ebp
push 1
cmovg ebp, ecx
mov ecx, esi
push ebp
call fcn.1003e460
add esp, 8
mov ebp, eax
jmp 0x100acfc7
mov ebp, 7
mov eax, dword [esp + 0x40]
or edx, 0xffffffff
mov dword [ebx + 0x18], eax
mov ecx, esi
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x50]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x74], eax
mov al, byte [esp + 0x13]
push 1
push 0
mov byte [ebx + 0xb0], 0
mov byte [ebx + 0x5e], al
call fcn.1003e460
mov esi, dword [esp + 0x44]
add esp, 8
mov byte [ebx + 0x55], 1
test esi, esi
je 0x100ad039
mov ecx, dword [esi + 4]
call fcn.1003e1a0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.10074c60
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x7c
ret