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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
mov ebx, edx
mov dword [esp + 0x24], 0
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp byte [ebx + 0x51], 0
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], esi
jne 0x48ebde
mov edx, dword [edi]
test edx, edx
je 0x48eb8e
mov ecx, ebx
call fcn.00404680
push 0
push 0x28
mov ecx, ebx
call fcn.00404a90
add esp, 8
test eax, eax
je 0x48ebc2
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x4e082c]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x4e083c]
movq qword [eax + 0x20], xmm0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004bf1a3
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xbc], 1
jle 0x48ec58
mov edx, dword [edi]
test edx, edx
je 0x48ebf4
mov ecx, ebx
call fcn.00404680
push 0
push 0x2b
mov ecx, ebx
call fcn.00404a90
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x48ec3c
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x4e0854]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x4e0864]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x4e086c]
mov word [ecx + 0x28], ax
mov al, byte [0x4e086e]
mov byte [ecx + 0x2a], al
mov dword [edi], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004bf1a3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x20], eax
test esi, esi
je 0x48ed1c
movzx ecx, word [esi + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x4e60e0], 3
je 0x48ecc9
mov edx, dword [edi]
test edx, edx
je 0x48ec86
mov ecx, ebx
call fcn.00404680
push 0
push 0x12
mov ecx, ebx
call fcn.00404a90
add esp, 8
test eax, eax
je 0x48ecad
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x4e0880]
mov word [eax + 0x10], cx
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004bf1a3
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x48ecee
cmp byte [esi + 0xa], 1
jne 0x48ecee
mov ecx, dword [ebx + 0x3c]
mov edx, dword [esi + 0x10]
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x48ed21
test cl, 1
je 0x48ed03
mov ecx, dword [ebx + 0x3c]
xor edx, edx
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x48ed21
mov dl, 1
mov ecx, esi
call fcn.00429ed0
mov ecx, dword [ebx + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x48ed21
mov edx, 0x4db4e0
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x68]
mov dword [esp + 0x28], ecx
mov cl, byte [ebx + 0x5a]
mov dword [esp + 0x34], esi
and esi, 0xfffffffe
mov dword [ebx + 0x24], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x30], eax
or eax, 6
mov byte [esp + 0x1f], cl
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x18], eax
and ecx, 0xefffafff
mov eax, dword [ebx + 0x10]
or ecx, 0x201
shl esi, 4
mov dword [ebx + 0x20], ecx
mov byte [ebx + 0x5a], 0
mov dword [esp + 0xc], esi
mov ecx, dword [eax + esi]
mov esi, dword [eax + esi + 4]
mov dword [esp + 0x38], edi
mov edi, dword [ebx + 0x6c]
mov dword [esp + 0x3c], edi
mov eax, dword [esi + 4]
mov edi, dword [ebx + 0x70]
mov dword [esp + 0x40], edi
mov edi, dword [ebx + 0x74]
mov eax, dword [eax]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp byte [eax + 0xc], 0
jne 0x48edb5
cmp byte [eax + 0x10], 0
mov dword [esp + 0x80], 0
je 0x48edc0
mov dword [esp + 0x80], 1
mov eax, dword [ebx + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push edi
push ebx
mov dword [esp + 0x20], eax
call fcn.0048e8a0
mov edi, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x3c], eax
test edi, edi
jne 0x48f3fa
mov eax, dword [esp + 0x10]
shl eax, 4
add eax, dword [ebx + 0x10]
cmp dword [esp + 0x24], 0
mov dword [esp + 0x2c], eax
mov edi, dword [eax + 4]
je 0x48ee9e
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [esp + 0x78], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x48ee9a
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x48ee3b
cmp dword [esp + 0x7c], eax
jl 0x48ee9a
jg 0x48ee3b
cmp dword [esp + 0x78], eax
jbe 0x48ee9a
mov eax, dword [esp + 0x14]
mov edi, 1
mov edx, dword [eax]
test edx, edx
je 0x48ee51
mov ecx, ebx
call fcn.00404680
push 0
push 0x1b
mov ecx, ebx
call fcn.00404a90
mov edx, eax
add esp, 8
test edx, edx
je 0x48ee8f
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x4e08ac]
movq qword [edx + 0x10], xmm0
mov cx, word [0x4e08b4]
mov word [edx + 0x18], cx
mov al, byte [0x4e08b6]
mov byte [edx + 0x1a], al
mov eax, dword [esp + 0x14]
mov dword [eax], edx
jmp 0x48f3fa
or dword [ebx + 0x18], 8
cmp byte [esi + 9], 0
je 0x48eeb4
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x48eeb4
mov ecx, esi
call fcn.0041a4e0
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x24]
sub edx, dword [eax + 0x28]
cmp byte [esi + 9], 0
movzx ecx, byte [eax + 0x16]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x20], edx
je 0x48eee4
sub dword [esi + 0xc], 1
jne 0x48eee4
mov ecx, esi
call fcn.0041a4c0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x10]
cmp ecx, edx
cmovg edx, ecx
mov ecx, edi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xc]
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.0041d160
xor edx, edx
mov ecx, esi
call fcn.0041d200
mov edx, eax
mov ecx, edi
call fcn.0041d200
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x78], eax
je 0x48ef35
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x48ef35
mov ecx, edi
call fcn.0041a4e0
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov dword [eax + 7], 1
and byte [eax + 0x15], 0xfe
mov byte [eax + 0xb], 0
cmp byte [edi + 9], 0
je 0x48ef59
sub dword [edi + 0xc], 1
jne 0x48ef59
mov ecx, edi
call fcn.0041a4c0
mov edx, dword [esp + 0x14]
mov ecx, ebx
push str.BEGIN
call fcn.0048e6b0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48f3f6
xor edx, edx
mov ecx, esi
cmp dword [esp + 0x24], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.0041da00
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48f3f6
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x48efb6
cmp dword [esp + 0x24], 0
jne 0x48efb6
mov dword [ebx + 0x60], 0
mov eax, dword [esi + 4]
mov ecx, edi
push 0
push dword [esp + 0x24]
mov edx, dword [eax + 0x24]
call fcn.0041d3d0
add esp, 8
test eax, eax
jne 0x48f3ef
cmp dword [esp + 0x80], eax
jne 0x48eff7
mov edx, dword [ebx + 0x60]
mov ecx, edi
push eax
push dword [esp + 0x24]
call fcn.0041d3d0
add esp, 8
test eax, eax
jne 0x48f3ef
cmp byte [ebx + 0x53], 0
jne 0x48f3ef
mov al, byte [ebx + 0x56]
test al, al
js 0x48f00d
movsx edx, al
jmp 0x48f063
cmp byte [esi + 9], 0
je 0x48f023
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x48f023
mov ecx, esi
call fcn.0041a4e0
mov ecx, dword [esi + 4]
cmp byte [ecx + 0x11], 0
jne 0x48f039
mov dword [esp + 0x80], 0
jmp 0x48f049
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [esp + 0x80], eax
cmp byte [esi + 9], 0
je 0x48f05c
sub dword [esi + 0xc], 1
jne 0x48f05c
mov ecx, esi
call fcn.0041a4c0
mov edx, dword [esp + 0x80]
mov ecx, edi
call fcn.0041d510
push dword [esp + 0x18]
mov eax, dword [esp + 0x14]
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.0048e8a0
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48f3f6
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x1c]
push ebx
call fcn.0048e8a0
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48f3f6
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.0048e8a0
and dword [ebx + 0x18], 0xfffffffb
mov ecx, eax
add esp, 0x10
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x48f3f6
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.0048e8a0
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48f3f6
mov dword [esp + 0x18], eax
nop dword [eax]
cmp byte [esi + 9], 0
movzx ecx, byte [eax + 0x4e178c]
mov eax, dword [esi + 4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x10], eax
je 0x48f140
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x48f140
mov ecx, esi
call fcn.0041a4e0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
cmp ecx, 0xf
jne 0x48f14f
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
add eax, dword [esi + 0x14]
jmp 0x48f15b
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + ecx*4 + 0x24]
bswap eax
cmp byte [esi + 9], 0
mov dword [esp + 0x10], eax
je 0x48f172
add dword [esi + 0xc], 0xffffffff
jne 0x48f172
mov ecx, esi
call fcn.0041a4c0
mov ecx, dword [esp + 0x18]
movzx eax, byte [ecx + 0x4e178d]
add eax, dword [esp + 0x10]
movzx edx, byte [ecx + 0x4e178c]
mov ecx, edi
push eax
call fcn.00426710
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48f3f6
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x18], eax
cmp eax, 0xa
jl 0x48f110
cmp dword [esp + 0x24], 0
jne 0x48f32c
cmp byte [esi + 9], 0
je 0x48f1d4
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x48f1d4
mov ecx, esi
call fcn.0041a4e0
cmp byte [edi + 9], 0
je 0x48f1ea
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x48f1ea
mov ecx, edi
call fcn.0041a4e0
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
je 0x48f253
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.004d4620
mov dword [esp + 0x80], eax
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x14]
push 0xb
push dword [esp + 0x80]
mov dword [esp + 0x90], edx
mov eax, dword [eax + 0x28]
call eax
xor ecx, ecx
add esp, 0xc
cmp eax, 0xc
cmovne ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x48f2fb
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x48]
push 0x7fffffff
push eax
mov dword [esp + 0x50], 0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x60], 1
call fcn.004281d0
lea eax, [esp + 0x50]
push eax
call fcn.004288c0
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48f2c0
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x18], cx
jmp 0x48f2fb
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x48f2fb
inc dword [ecx + 0x6c]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x48f2ee
nop dword [eax]
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x48f2e0
mov ecx, dword [ecx + 0xe4]
xor edx, edx
call fcn.0040fda0
cmp byte [edi + 9], 0
je 0x48f30e
sub dword [edi + 0xc], 1
jne 0x48f30e
mov ecx, edi
call fcn.0041a4c0
cmp byte [esi + 9], 0
je 0x48f321
sub dword [esi + 0xc], 1
jne 0x48f321
mov ecx, esi
call fcn.0041a4c0
cmp dword [esp + 0xc], 0
jne 0x48f3f6
cmp byte [edi + 9], 0
je 0x48f342
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x48f342
mov ecx, edi
call fcn.0041a4e0
xor edx, edx
mov ecx, edi
call fcn.0041e990
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48f360
xor edx, edx
mov ecx, edi
call fcn.0041eb90
mov dword [esp + 0xc], eax
cmp byte [edi + 9], 0
je 0x48f373
sub dword [edi + 0xc], 1
jne 0x48f373
mov ecx, edi
call fcn.0041a4c0
cmp dword [esp + 0xc], 0
jne 0x48f3f6
cmp dword [esp + 0x24], 0
jne 0x48f3f6
cmp byte [edi + 9], 0
je 0x48f397
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x48f397
mov ecx, edi
call fcn.0041a4e0
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x11], 0
jne 0x48f3aa
mov dword [esp + 0x10], 0
jmp 0x48f3b7
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [esp + 0x10], eax
cmp byte [edi + 9], 0
je 0x48f3ca
sub dword [edi + 0xc], 1
jne 0x48f3ca
mov ecx, edi
call fcn.0041a4c0
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.0041d510
mov eax, dword [edi + 4]
mov ecx, esi
push 1
push dword [esp + 0x24]
mov edx, dword [eax + 0x24]
call fcn.0041d3d0
add esp, 8
mov edi, eax
jmp 0x48f3fa
mov edi, 7
jmp 0x48f3fa
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
or edx, 0xffffffff
mov dword [ebx + 0x18], eax
mov ecx, esi
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x74], eax
mov al, byte [esp + 0x1f]
push 1
push 0
mov byte [ebx + 0xb0], 0
mov byte [ebx + 0x5a], al
call fcn.0041d3d0
mov esi, dword [esp + 0x34]
add esp, 8
mov byte [ebx + 0x51], 1
test esi, esi
je 0x48f46c
mov ecx, dword [esi + 4]
call fcn.0041cf50
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.00455e40
mov ecx, dword [esp + 0x8c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bf1a3
mov esp, ebp
pop ebp
ret