Function at 0x6093a88c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
push esi
push ebx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
or ah, 0x28
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xc], eax
cmp byte [edx + 0x1c], 0
jne 0x6093a8d0
add esp, 0xfffffffc
push 0
push 0x6093a3d0
push dword [ebp + 8]
call sym._sqlite3SetString
mov ebx, 1
jmp 0x6093ab14
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
add esp, 0xfffffff8
push 0x6093a3f8
push ecx
call sym._execSql
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
lea eax, [eax + eax*2]
shl eax, 3
mov edx, dword [edx + 8]
lea ecx, [edx + eax - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [edx + eax - 0x14]
mov dword [ebp - 0xc], edx
add esp, 0xfffffffc
add esp, 0xfffffff4
mov eax, dword [ebp - 8]
push eax
call sym._sqlite3BtreeGetReserve
push eax
add esp, 0xfffffff4
mov edx, dword [ebp - 8]
push edx
call sym._sqlite3BtreeGetPageSize
add esp, 0x10
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sym._sqlite3BtreeSetPageSize
add esp, 0x20
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x1e], 0
je 0x6093a954
mov ebx, 7
jmp 0x6093ab17
add esp, 0xfffffff8
push 0x6093a410
mov edx, dword [ebp + 0xc]
push edx
call sym._execSql
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffff8
add esp, 0xfffffff4
mov ecx, dword [ebp - 8]
push ecx
call sym._sqlite3BtreeGetAutoVacuum
push eax
mov eax, dword [ebp - 0xc]
push eax
call sym._sqlite3BtreeSetAutoVacuum
add esp, 0x20
add esp, 0xfffffff8
push 0x6093a431
mov edx, dword [ebp + 0xc]
push edx
call sym._execSql
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffff8
push 0x6093a450
mov ecx, dword [ebp + 0xc]
push ecx
call sym._execExecSql
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffff8
push 0x6093a4f0
mov eax, dword [ebp + 0xc]
push eax
call sym._execExecSql
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffff8
push 0x6093a570
mov edx, dword [ebp + 0xc]
push edx
call sym._execExecSql
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffff8
push 0x6093a5f0
mov ecx, dword [ebp + 0xc]
push ecx
call sym._execExecSql
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffff8
push 0x6093a6b0
mov eax, dword [ebp + 0xc]
push eax
call sym._execExecSql
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffff8
push 0x6093a730
mov edx, dword [ebp + 0xc]
push edx
call sym._execExecSql
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffff8
push 0x6093a7d0
mov ecx, dword [ebp + 0xc]
push ecx
call sym._execSql
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
mov dword [ebp - 0x18], 0
lea eax, [ebp - 4]
mov dword [ebp - 0x1c], eax
mov edi, 0x6093a883
add esp, 0xfffffffc
mov edx, dword [ebp - 0x1c]
push edx
movzx esi, byte [edi]
push esi
mov ecx, dword [ebp - 8]
push ecx
call sym._sqlite3BtreeGetMeta
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffffc
movzx eax, byte [edi + 1]
add eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sym._sqlite3BtreeUpdateMeta
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add edi, 2
add dword [ebp - 0x18], 2
cmp dword [ebp - 0x18], 7
jbe 0x6093aa90
add esp, 0xfffffff8
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
push ecx
call sym._sqlite3BtreeCopyFile
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffff4
mov eax, dword [ebp - 0xc]
push eax
call sym._sqlite3BtreeCommit
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6093ab17
add esp, 0xfffffff4
mov edx, dword [ebp - 8]
push edx
call sym._sqlite3BtreeCommit
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov byte [ecx + 0x1c], 1
cmp dword [ebp - 0x14], 0
je 0x6093ab4c
add esp, 0xfffffff4
mov edx, dword [ebp - 0x14]
push dword [edx + 4]
call sym._sqlite3BtreeClose
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], 0
mov dword [ecx + 0x14], 0
add esp, 0x10
add esp, 0xfffffff8
push 0
mov eax, dword [ebp + 0xc]
push eax
call sym._sqlite3ResetInternalSchema
mov eax, ebx
lea esp, [ebp - 0x38]
pop ebx
pop esi
pop edi
leave
ret