Function at 0x470f9a
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 0x47100c
nop
mov eax, dword [esi + 0x30]
dec eax
cmp eax, 8
ja case.0x470f2d.2
jmp dword [eax*4 + 0x4711a0]
mov eax, dword [esi + 0x34]
cmp eax, 0x88
jl 0x470f54
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 7
or edi, 0xffffffff
jmp 0x471161
lea ecx, [eax + 1]
mov dword [esi + 0x34], ecx
cmp eax, 0x87
ja 0x470f7c
movzx edx, word [eax*2 + 0x50f228]
add edx, str.REINDEXEDESCAPEACHECKEYBEFOREIGNOREGEXPLAINSTEADDATABASELECTABLEFTHENDEFERRABLELSEXCEPTRANSACTIONATURALTERAISEXCLUSIVEXISTSAVEPOINTERSECTRIGGEREFERENCESCONSTRAINTOFFSETEMPORARYUNIQUERYWITHOUTERELEASEATTACHAVINGROUPDATEBEGINNERANGEBETWEENOTHINGLOBYCASCADELETECASECOLLATECREATECURRENT_DATEDETACHIMMEDIATEJOINSERTLIKEMATCHPLANALYZEPRAGMABORTVALUESVIRTUALIMITWHENOTNULLWHERECURSIVEAFTERENAMEANDEFAULTAUTOINCREMENTCASTCOLUMNCOMMITCONFLICTCROSSCURRENT_TIMESTAMPARTITIONDEFERREDISTINCTDROPRECEDINGFAILFILTEREPLACEFOLLOWINGFROMFULLIFISNULLORDERESTRICTOVERIGHTROLLBACKROWSUNBOUNDEDUNIONUSINGVACUUMVIEWINDOWINITIALLYPRIMARY
mov dword [esi + 0x18], edx
movzx eax, byte [eax + 0x50f1a0]
mov dword [esi + 0x1c], eax
or edi, 0xffffffff
jmp 0x471161
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jne 0x470fa9
push 0
push eax
mov eax, dword [esi + 4]
push 0
push 0x80
push 0xffffffffffffffff
push str.PRAGMA_database_list
call fcn.004c8260
add esp, 0x18
mov edi, 1
lea ebx, [edi + 7]
mov eax, dword [esi + 0x20]
push eax
call fcn.00499710
add esp, 4
cmp eax, 0x64
jne 0x47116c
mov ecx, dword [esi + 0x20]
push edi
push ecx
call fcn.00499ec0
mov edx, dword [esi + 0x20]
push edi
push edx
mov dword [esi + 0x18], eax
call fcn.00499c00
add esp, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x47100c
cmp eax, dword [esi + 0x1c]
jg 0x471182
mov ecx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0x18]
push eax
push ecx
call fcn.004782e0
add esp, 0xc
test eax, eax
jne 0x471182
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [esi + 0x20], 0
jne 0x4710ae
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, 0x511b20
call fcn.004c8260
mov ebx, dword [esp + 0x30]
push ebx
call fcn.00499710
add esp, 0x1c
cmp eax, 0x64
jne 0x471087
push 1
push ebx
call fcn.00499ec0
push eax
push ebp
push edi
push str._z_sSELECT_name_FROM___w_.sqlite_master
call fcn.004773d0
mov edi, eax
add esp, 0x18
test edi, edi
je 0x471194
push ebx
mov ebp, str._UNION
call fcn.00499710
add esp, 4
cmp eax, 0x64
je 0x471052
push ebx
call fcn.00498900
push 0
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 4]
push 0
push 0x80
push 0xffffffffffffffff
push edi
call fcn.004c8260
push edi
call fcn.004750b0
add esp, 0x20
xor edi, edi
lea ebx, [edi + 9]
jmp 0x470fb1
cmp dword [esi + 0x20], 0
jne 0x47114f
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, 0x511b20
call fcn.004c8260
mov ebx, dword [esp + 0x28]
push ebx
call fcn.00499710
add esp, 0x1c
cmp eax, 0x64
jne 0x471128
push 1
push ebx
call fcn.00499ec0
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.004773d0
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x471194
push ebx
mov ebp, str._UNION
call fcn.00499710
add esp, 4
cmp eax, 0x64
je 0x4710f6
push ebx
call fcn.00498900
push 0
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 4]
push 0
push 0x80
push 0xffffffffffffffff
push edi
call fcn.004c8260
push edi
call fcn.004750b0
add esp, 0x20
xor edi, edi
lea ebx, [edi + 0xb]
jmp 0x470fb1
test edi, edi
jge 0x470fb1
cmp dword [esi + 0x18], 0
je 0x471182
jmp 0x470fe3
mov edx, dword [esi + 0x20]
push edx
call fcn.00498900
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x30], 0xb
jne 0x470f20
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