Function at 0x47e200
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, edx
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ebx
cmp byte [edi + 0x3f], al
jne 0x47e292
mov edx, dword [ebx]
test edx, edx
je 0x47e260
cmp dword [edi + 0x208], eax
je 0x47e231
mov ecx, edi
call fcn.0041f410
jmp 0x47e260
cmp edx, dword [edi + 0x114]
jb 0x47e257
cmp edx, dword [edi + 0x118]
jae 0x47e257
mov eax, dword [edi + 0x110]
mov dword [edx], eax
dec dword [edi + 0xfc]
mov dword [edi + 0x110], edx
jmp 0x47e260
push edx
call fcn.0041f3a0
add esp, 4
push 0
push 0x28
mov ecx, edi
call fcn.0041f6d0
mov esi, eax
add esp, 8
test esi, esi
je 0x47e284
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.004de5a0
add esp, 0xc
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x94], 1
jle 0x47e303
mov ecx, dword [ebx]
test ecx, ecx
je 0x47e2e3
cmp dword [edi + 0x208], eax
je 0x47e2b4
mov edx, ecx
mov ecx, edi
call fcn.0041f410
jmp 0x47e2e3
cmp ecx, dword [edi + 0x114]
jb 0x47e2da
cmp ecx, dword [edi + 0x118]
jae 0x47e2da
mov eax, dword [edi + 0x110]
mov dword [ecx], eax
dec dword [edi + 0xfc]
mov dword [edi + 0x110], ecx
jmp 0x47e2e3
push ecx
call fcn.0041f3a0
add esp, 4
push 0
push 0x2b
mov ecx, edi
call fcn.0041f6d0
mov esi, eax
add esp, 8
test esi, esi
je 0x47e284
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x47e27b
mov eax, dword [edi + 0x18]
mov edx, ebx
mov ecx, dword [edi + 0x50]
mov dword [ebp - 0x24], eax
and eax, 0xfff5ffff
or eax, 0x202800
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x54]
cmp byte [edi + 0x40], 2
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0xb0]
mov dword [edi + 0xb0], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], ecx
mov ecx, str.ATTACH_:memory:_AS_vacuum_db_
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov al, byte [eax + 0xf]
mov byte [ebp - 1], al
mov eax, str.ATTACH__AS_vacuum_db_
cmove eax, ecx
mov ecx, edi
push eax
call fcn.0047df90
mov ecx, dword [edi + 0x14]
add esp, 4
mov ebx, eax
cmp ecx, esi
jle 0x47e383
mov eax, dword [edi + 0x10]
mov edx, ecx
shl edx, 4
add eax, 0xfffffff0
add eax, edx
mov dword [ebp - 0x14], eax
test ebx, ebx
jne 0x47e739
mov eax, dword [edi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 - 0xc]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00433760
mov esi, dword [ebp - 0x10]
mov cl, byte [esi + 9]
test cl, cl
je 0x47e3ba
inc dword [esi + 0xc]
cmp byte [esi + 0xa], bl
jne 0x47e3ba
mov ecx, esi
call fcn.0042fe10
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [ebp - 0x10], edx
test cl, cl
je 0x47e3d7
add dword [esi + 0xc], 0xffffffff
jne 0x47e3d7
mov ecx, esi
call fcn.0042fdd0
mov edx, dword [ebp - 8]
mov ecx, edi
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.0047df90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e73c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.BEGIN_
call fcn.0047df90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e73c
lea edx, [eax + 2]
mov ecx, esi
call fcn.004327e0
mov ebx, eax
test ebx, ebx
jne 0x47e73c
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x47e434
mov dword [edi + 0x48], ebx
mov edx, dword [esi + 4]
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x20]
push 0
push dword [ebp - 0x10]
call fcn.004321b0
add esp, 8
test eax, eax
jne 0x47e732
cmp byte [ebp - 1], al
jne 0x47e46f
mov edx, dword [edi + 0x48]
mov ecx, ebx
push eax
push dword [ebp - 0x10]
call fcn.004321b0
add esp, 8
test eax, eax
jne 0x47e732
cmp byte [edi + 0x41], 0
jne 0x47e732
mov al, byte [edi + 0x43]
test al, al
js 0x47e485
movsx eax, al
jmp 0x47e48c
mov ecx, esi
call fcn.004323c0
mov edx, eax
mov ecx, ebx
call fcn.00432340
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.0047e050
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e73c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.0047e050
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e73c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.0047e050
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e73c
mov edx, dword [ebp - 8]
mov ecx, edi
or dword [edi + 0x18], 0x8000000
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.0047e050
and dword [edi + 0x18], 0xf7ffffff
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e73c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.0047e050
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e73c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.0047e050
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e73c
mov edx, dword [ebp - 8]
mov ecx, edi
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
call fcn.0047df90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e73c
mov dword [ebp - 8], ebx
nop word [eax + eax]
movzx edx, byte [ebx + 0x51ffd4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00439020
movzx eax, byte [ebx + 0x51ffd5]
add esp, 4
add eax, dword [ebp - 0x1c]
movzx edx, byte [ebx + 0x51ffd4]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.00439080
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e73c
mov ebx, dword [ebp - 8]
add ebx, 2
mov dword [ebp - 8], ebx
cmp ebx, 0xa
jl 0x47e570
cmp byte [esi + 9], al
je 0x47e5ce
inc dword [esi + 0xc]
cmp byte [esi + 0xa], al
jne 0x47e5ce
mov ecx, esi
call fcn.0042fe10
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 9], 0
je 0x47e5e8
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x47e5e8
call fcn.0042fe10
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebx, dword [eax + 0x3c]
cmp dword [ebx], 0
je 0x47e62f
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x20]
cdq
push edx
push eax
push 0
push ecx
call fcn.004dd120
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
push 0xb
push ebx
mov eax, dword [eax + 0x28]
call eax
mov ebx, eax
add esp, 0xc
cmp ebx, 0xc
je 0x47e62f
test ebx, ebx
jne 0x47e6cb
mov ecx, dword [ebp - 0xc]
xorps xmm0, xmm0
push closesocket
mov dword [ebp - 0x60], 0
movlpd qword [ebp - 0x58], xmm0
mov eax, dword [ecx]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x50], 1
call fcn.0043a730
lea eax, [ebp - 0x60]
push eax
call fcn.0043ae20
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x47e692
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x47e6cb
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xf], 0
jne 0x47e6cb
cmp byte [ecx + 0xc], 0
jne 0x47e6cb
inc dword [ecx + 0x64]
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x47e6be
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x47e6b0
mov ecx, dword [ecx + 0xcc]
xor edx, edx
call fcn.00427a20
mov eax, dword [ebp - 0xc]
cmp byte [eax + 9], 0
je 0x47e6e1
add dword [eax + 0xc], 0xffffffff
jne 0x47e6e1
mov ecx, eax
call fcn.0042fdd0
cmp byte [esi + 9], 0
je 0x47e6f4
add dword [esi + 0xc], 0xffffffff
jne 0x47e6f4
mov ecx, esi
call fcn.0042fdd0
test ebx, ebx
jne 0x47e73c
mov ecx, dword [ebp - 0xc]
call fcn.00433760
mov ebx, eax
test ebx, ebx
jne 0x47e73c
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.004323c0
mov edx, eax
mov ecx, esi
call fcn.00432340
mov eax, dword [ebx + 4]
mov ecx, esi
push 1
push dword [ebp - 0x10]
mov edx, dword [eax + 0x20]
call fcn.004321b0
add esp, 8
mov ebx, eax
jmp 0x47e73c
mov ebx, 7
jmp 0x47e73c
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, esi
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x30]
push 1
push 0xffffffffffffffff
mov dword [edi + 0xb0], eax
call fcn.004321b0
mov esi, dword [ebp - 0x14]
add esp, 8
mov byte [edi + 0x3f], 1
test esi, esi
je 0x47e789
mov ecx, dword [esi + 4]
call fcn.00431e60
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, edi
call fcn.00459a10
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret