Function at 0x4968a4
Capabilities:
Reference sql statements

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
or edi, 0xffffffff
add dword [esi + 0x28], 1
adc dword [esi + 0x2c], ebx
cmp dword [esi + 0x30], 0xb
je 0x49697c
nop
mov eax, dword [esi + 0x30]
dec eax
cmp eax, 8
ja case.0x49689d.2
jmp dword [eax*4 + 0x496b10]
mov eax, dword [esi + 0x34]
cmp eax, 0x88
jl 0x4968c4
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 7
or edi, 0xffffffff
jmp 0x496ad1
lea ecx, [eax + 1]
mov dword [esi + 0x34], ecx
cmp eax, 0x87
ja 0x4968ec
movzx edx, word [eax*2 + 0x5e8a50]
add edx, str.REINDEXEDESCAPEACHECKEYBEFOREIGNOREGEXPLAINSTEADDATABASELECTABLEFTHENDEFERRABLELSEXCEPTRANSACTIONATURALTERAISEXCLUSIVEXISTSAVEPOINTERSECTRIGGEREFERENCESCONSTRAINTOFFSETEMPORARYUNIQUERYWITHOUTERELEASEATTACHAVINGROUPDATEBEGINNERANGEBETWEENOTHINGLOBYCASCADELETECASECOLLATECREATECURRENT_DATEDETACHIMMEDIATEJOINSERTLIKEMATCHPLANALYZEPRAGMABORTVALUESVIRTUALIMITWHENOTNULLWHERECURSIVEAFTERENAMEANDEFAULTAUTOINCREMENTCASTCOLUMNCOMMITCONFLICTCROSSCURRENT_TIMESTAMPARTITIONDEFERREDISTINCTDROPRECEDINGFAILFILTEREPLACEFOLLOWINGFROMFULLIFISNULLORDERESTRICTOVERIGHTROLLBACKROWSUNBOUNDEDUNIONUSINGVACUUMVIEWINDOWINITIALLYPRIMARY
mov dword [esi + 0x18], edx
movzx eax, byte [eax + 0x5e89c8]
mov dword [esi + 0x1c], eax
or edi, 0xffffffff
jmp 0x496ad1
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jne 0x496919
push 0
push eax
mov eax, dword [esi + 4]
push 0
push 0x80
push 0xffffffffffffffff
push str.PRAGMA_database_list
call fcn.00501540
add esp, 0x18
mov edi, 1
lea ebx, [edi + 7]
mov eax, dword [esi + 0x20]
push eax
call fcn.004d1cc0
add esp, 4
cmp eax, 0x64
jne 0x496adc
mov ecx, dword [esi + 0x20]
push edi
push ecx
call fcn.004d2500
mov edx, dword [esi + 0x20]
push edi
push edx
mov dword [esi + 0x18], eax
call fcn.004d2240
add esp, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x49697c
cmp eax, dword [esi + 0x1c]
jg 0x496af2
mov ecx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0x18]
push eax
push ecx
call fcn.004ae830
add esp, 0xc
test eax, eax
jne 0x496af2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [esi + 0x20], 0
jne 0x496a1e
mov eax, dword [esi + 4]
xor edi, edi
push edi
lea ecx, [esp + 0x1c]
push ecx
push edi
push 0x80
push 0xffffffffffffffff
push str.PRAGMA_database_list
mov ebp, 0x5e1790
call fcn.00501540
mov ebx, dword [esp + 0x30]
push ebx
call fcn.004d1cc0
add esp, 0x1c
cmp eax, 0x64
jne 0x4969f7
push 1
push ebx
call fcn.004d2500
push eax
push ebp
push edi
push str._z_sSELECT_name_FROM___w_.sqlite_master
call fcn.004ad880
mov edi, eax
add esp, 0x18
test edi, edi
je 0x496b04
push ebx
mov ebp, str._UNION
call fcn.004d1cc0
add esp, 4
cmp eax, 0x64
je 0x4969c2
push ebx
call fcn.004d0dd0
push 0
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 4]
push 0
push 0x80
push 0xffffffffffffffff
push edi
call fcn.00501540
push edi
call fcn.004ab490
add esp, 0x20
xor edi, edi
lea ebx, [edi + 9]
jmp 0x496921
cmp dword [esi + 0x20], 0
jne 0x496abf
mov eax, dword [esi + 4]
xor edi, edi
push edi
lea edx, [esp + 0x14]
push edx
push edi
push 0x80
push 0xffffffffffffffff
push str.PRAGMA_database_list
mov ebp, 0x5e1790
call fcn.00501540
mov ebx, dword [esp + 0x28]
push ebx
call fcn.004d1cc0
add esp, 0x1c
cmp eax, 0x64
jne 0x496a98
push 1
push ebx
call fcn.004d2500
push eax
push eax
push ebp
push edi
push str._z_sSELECT_pti.name_FROM___w_.sqlite_master_AS_sm_JOIN_pragma_table_info_sm.name__Q__AS_pti_WHERE_sm.typetable
call fcn.004ad880
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x496b04
push ebx
mov ebp, str._UNION
call fcn.004d1cc0
add esp, 4
cmp eax, 0x64
je 0x496a66
push ebx
call fcn.004d0dd0
push 0
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 4]
push 0
push 0x80
push 0xffffffffffffffff
push edi
call fcn.00501540
push edi
call fcn.004ab490
add esp, 0x20
xor edi, edi
lea ebx, [edi + 0xb]
jmp 0x496921
test edi, edi
jge 0x496921
cmp dword [esi + 0x18], 0
je 0x496af2
jmp 0x496953
mov edx, dword [esi + 0x20]
push edx
call fcn.004d0dd0
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x30], 0xb
jne 0x496890
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
pop ecx
ret