Function at 0x100264c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e5c05
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x1011d1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x1011de3c]
cmp eax, 0x1011de3c
je 0x1002651c
test byte [eax + 0x1c], 0x10
je 0x1002651c
cmp byte [eax + 0x19], 5
jb 0x1002651c
push 0
push dword [eax + 0x14]
mov edx, 0x10102b84
mov ecx, 0x10
push dword [eax + 0x10]
call fcn.10022cf0
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
call fcn.10026370
mov dword [ebp - 4], 0
mov ecx, dword [0x10122dfc]
push 0
mov eax, dword [ecx]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push str.SELECT_DbVersion__UsingAdditionalSemiUniqueID__LastMaintenanceTimestamp_FROM_CacheDbInfo_LIMIT_1_
push dword [ebx + 4]
push ecx
mov ecx, esi
call dword [0x100f5330]
call esi
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x10026588
mov ecx, dword [0x10122dfc]
push dword [ebp - 0x10]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x3c]
mov ecx, esi
call dword [0x100f5330]
call esi
mov edi, eax
mov dword [ebp - 0x18], eax
cmp edi, 0x64
jne 0x10026a53
mov ecx, dword [0x10122dfc]
push dword [ebp - 0x10]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x44]
mov ecx, esi
call dword [0x100f5330]
call esi
cmp eax, 3
jne 0x10026a53
mov ecx, dword [0x10122dfc]
push 0
push dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x100f5330]
call esi
cmp eax, 1
jne 0x10026a53
mov ecx, dword [0x10122dfc]
push 1
push dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x100f5330]
call esi
cmp eax, 1
jne 0x10026a53
mov ecx, dword [0x10122dfc]
push 2
push dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x100f5330]
call esi
cmp eax, 1
jne 0x10026a53
mov ecx, dword [0x10122dfc]
push 0
push dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x5c]
mov ecx, esi
call dword [0x100f5330]
call esi
mov edx, dword [0x10122dfc]
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [edx]
push edx
mov esi, dword [ecx + 0x5c]
mov ecx, esi
call dword [0x100f5330]
call esi
mov edx, dword [0x10122dfc]
push 2
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx]
push edx
mov esi, dword [ecx + 0x60]
mov ecx, esi
call dword [0x100f5330]
call esi
mov esi, dword [0x10122dfc]
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push esi
mov ecx, dword [esi]
mov dword [ebp - 0x20], edx
mov edi, dword [ecx + 0x40]
mov ecx, edi
call dword [0x100f5330]
call edi
mov edi, eax
mov dword [ebp - 0x10], 0
test edi, edi
jne 0x10026a60
cmp dword [ebp - 0x18], 2
jne 0x10026a4c
movzx eax, byte [ebx + 8]
xor ecx, ecx
cmp dword [ebp - 0x14], 1
sete cl
cmp eax, ecx
jne 0x10026a4c
xorps xmm0, xmm0
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
call fcn.10026b10
mov edi, eax
test edi, edi
jne 0x10026a60
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
sbb eax, dword [ebp - 0x20]
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
test eax, eax
jg 0x1002672a
jl 0x1002670f
cmp ecx, 0x93a80
jae 0x1002672a
push str.PRAGMA_quick_check_
mov ecx, ebx
call fcn.10028480
mov edi, eax
test edi, edi
je 0x10026a34
jmp 0x10026a60
push str.ATTACH_DATABASE_:memory:_AS_TempDb_
mov ecx, ebx
call fcn.10028480
mov edi, eax
test edi, edi
jne 0x10026a60
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x30]
call fcn.10026ab0
mov byte [ebp - 4], 1
mov ecx, ebx
push str.CREATE_TABLE_TempDb.MsgCacheRowsToDelete_MsgRowid_INTEGER_PRIMARY_KEY__
call fcn.10028480
mov edi, eax
test edi, edi
jne 0x10026a38
mov ecx, dword [0x10122dfc]
push edi
mov eax, dword [ecx]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push str.INSERT_INTO_TempDb.MsgCacheRowsToDelete_SELECT_MsgRowid_FROM_MsgCache_WHERE_LastUsedTimestamp_____OR_LastUsedTimestamp_____OR_MsgPrefixID_NOT_IN__SELECT_MsgPrefixID_FROM_MsgPrefix__
push dword [ebx + 4]
push ecx
mov ecx, esi
call dword [0x100f5330]
call esi
mov edx, eax
test edx, edx
jne 0x10026819
mov eax, dword [ebp + 0x14]
test eax, eax
jg 0x100267bb
jl 0x100267ab
mov edi, dword [ebp + 0x10]
cmp edi, 0x278d00
jae 0x100267be
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
jmp 0x100267c9
mov edi, dword [ebp + 0x10]
sub edi, 0x278d00
mov edx, eax
sbb edx, 0
mov ecx, dword [0x10122dfc]
push edx
push edi
push 1
mov eax, dword [ecx]
push dword [ebp - 0x10]
push ecx
mov esi, dword [eax + 0x34]
mov ecx, esi
call dword [0x100f5330]
call esi
mov edx, eax
test edx, edx
jne 0x10026819
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add esi, 0x278d00
mov edx, dword [0x10122dfc]
adc ecx, eax
push ecx
push esi
mov eax, dword [edx]
push 2
push dword [ebp - 0x10]
mov edi, dword [eax + 0x34]
mov ecx, edi
push edx
call dword [0x100f5330]
call edi
mov edx, eax
mov ecx, dword [0x10122dfc]
push edx
push dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0xdc]
mov ecx, esi
call dword [0x100f5330]
call esi
mov edi, eax
mov dword [ebp - 0x10], 0
test edi, edi
jne 0x10026a38
push str.DELETE_FROM_MsgCache_WHERE_MsgRowid_IN__SELECT_MsgRowid_FROM_TempDb.MsgCacheRowsToDelete__
mov ecx, ebx
call fcn.10028480
mov edi, eax
mov dword [ebp - 0x10], 0
test edi, edi
jne 0x10026a38
push eax
call fcn.100ce604
mov ecx, edx
add esp, 4
test ecx, ecx
jg 0x1002688d
jl 0x1002687a
cmp eax, 0x3c
jae 0x1002688d
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x24]
jmp 0x1002689a
mov edx, eax
mov esi, ecx
sub edx, 0x3c
sbb esi, 0
mov dword [ebp - 0x14], esi
add eax, 0x3c
mov dword [ebp - 0x18], edx
push str.CREATE_TABLE_TempDb.MsgPrefixRowsToDelete_MsgPrefixID_INTEGER_PRIMARY_KEY__
adc ecx, 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov ecx, ebx
call fcn.10028480
mov edi, eax
test edi, edi
jne 0x10026a38
mov ecx, dword [0x10122dfc]
push edi
mov eax, dword [ecx]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push str.INSERT_INTO_TempDb.MsgPrefixRowsToDelete_SELECT_MsgPrefixID_FROM_MsgPrefix_WHERE_MsgPrefixID_NOT_IN__SELECT_DISTINCT_MsgPrefixID_FROM_MsgCache__AND__JustCreatedFlag__0_OR_JustCreatedFlag_____OR_JustCreatedFlag______
push dword [ebx + 4]
push ecx
mov ecx, esi
call dword [0x100f5330]
call esi
mov edx, eax
test edx, edx
jne 0x10026934
push dword [ebp - 0x14]
mov ecx, dword [0x10122dfc]
push dword [ebp - 0x18]
push 1
mov eax, dword [ecx]
push dword [ebp - 0x10]
push ecx
mov esi, dword [eax + 0x34]
mov ecx, esi
call dword [0x100f5330]
call esi
mov edx, eax
test edx, edx
jne 0x10026934
push dword [ebp - 0x20]
mov ecx, dword [0x10122dfc]
push dword [ebp - 0x1c]
push 2
mov eax, dword [ecx]
push dword [ebp - 0x10]
push ecx
mov esi, dword [eax + 0x34]
mov ecx, esi
call dword [0x100f5330]
call esi
mov edx, eax
mov ecx, dword [0x10122dfc]
push edx
push dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0xdc]
mov ecx, esi
call dword [0x100f5330]
call esi
mov edi, eax
mov dword [ebp - 0x10], 0
test edi, edi
jne 0x10026a38
push str.DELETE_FROM_MsgPrefix_WHERE_MsgPrefixID_IN__SELECT_MsgPrefixID_FROM_TempDb.MsgPrefixRowsToDelete__
mov ecx, ebx
call fcn.10028480
mov edi, eax
test edi, edi
jne 0x10026a38
mov byte [ebp - 4], al
cmp byte [ebp - 0x30], al
jne 0x10026988
mov ecx, dword [ebp - 0x2c]
call fcn.100263d0
xor esi, esi
nop word [eax + eax]
push str.VACUUM_
mov ecx, ebx
call fcn.10028480
test eax, eax
je 0x100269a9
inc esi
cmp esi, 0x3e8
jl 0x10026990
mov ecx, dword [0x10122dfc]
push 0
mov eax, dword [ecx]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push str.UPDATE_CacheDbInfo_SET_LastMaintenanceTimestamp____
push dword [ebx + 4]
push ecx
mov ecx, esi
call dword [0x100f5330]
call esi
mov edx, eax
test edx, edx
jne 0x100269f8
push dword [ebp + 0x14]
mov ecx, dword [0x10122dfc]
push dword [ebp + 0x10]
push 1
mov eax, dword [ecx]
push dword [ebp - 0x10]
push ecx
mov esi, dword [eax + 0x34]
mov ecx, esi
call dword [0x100f5330]
call esi
mov edx, eax
mov ecx, dword [0x10122dfc]
push edx
push dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0xdc]
mov ecx, esi
call dword [0x100f5330]
call esi
mov edi, eax
mov dword [ebp - 0x10], 0
test edi, edi
jne 0x10026a60
push str.PRAGMA_integrity_check_
mov ecx, ebx
call fcn.10028480
mov edi, eax
test edi, edi
jne 0x10026a60
xor edi, edi
jmp 0x10026a60
mov byte [ebp - 4], 0
cmp byte [ebp - 0x30], 0
jne 0x10026a60
mov ecx, dword [ebp - 0x2c]
call fcn.100263d0
jmp 0x10026a60
mov edi, 0xc9
jmp 0x10026a60
mov eax, dword [ebp - 0x18]
mov edi, 0xc9
test eax, eax
cmovne edi, eax
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x38], 0
jne 0x10026a96
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
test eax, eax
je 0x10026a96
mov ecx, dword [0x10122dfc]
push eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x40]
mov ecx, esi
call dword [0x100f5330]
call esi
mov ecx, dword [ebp - 0x34]
mov dword [ecx], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10