Function at 0x4cb0a5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x3c]
sub esp, 0x9c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x68], 0
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x64], eax
xor eax, eax
test eax, eax
jne 0x4cb3e7
mov edx, dword [ebp - 0x64]
cmp dword [ebp - 0x68], edx
je 0x4cb3e7
mov dword [ebp - 0x5c], edx
xor eax, eax
test eax, eax
jne 0x4cb3d6
mov edx, dword [ebp - 0x68]
cmp dword [ebp - 0x5c], edx
je 0x4cb3d6
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.SELECT_CREATE_TEMP__substr_sql__7__FROM_sqlite_schema_WHERE_tbl_name___Q_AND_type_IN__table__trigger__ORDER_BY_type_
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.004b886a
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4cb154
mov edx, dword [ebp - 0x40]
mov eax, edi
call fcn.004b8974
cmp dword [ebp - 0x3c], 0
jne 0x4cb1fb
jmp 0x4cb1a3
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4cb13e
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041feb6
test eax, eax
je 0x4cb138
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.00477ee4
jmp 0x4cb135
mov dword [esp + 4], esi
mov dword [esp + 8], str.t592690916721053953805701627921227776
mov dword [esp], str.ALTER_TABLE_temp._Q_RENAME_TO__Q
call fcn.004440e8
test eax, eax
mov esi, eax
jne 0x4cb1ca
mov dword [ebp - 0x3c], 7
jmp 0x4cb1fb
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.00477ee4
mov dword [esp], esi
mov dword [ebp - 0x3c], eax
call fcn.0040b268
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
cmp eax, 0x12
je 0x4cb235
cmp eax, 0x17
jne 0x4cb2ef
mov dword [esp + 0xc], str.t592690916721053953805701627921227776
mov dword [esp + 8], str.UPDATE__Q_SET
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.004bb619
xor edx, edx
mov esi, eax
jmp 0x4cb2a3
mov dword [esp + 0xc], str.t592690916721053953805701627921227776
mov dword [esp + 8], str.INSERT_INTO__Q_VALUES_
xor esi, esi
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.004bb619
mov ecx, dword [ebp - 0x60]
cmp esi, dword [ecx]
jge 0x4cb288
test esi, esi
mov ecx, 0x507f06
mov edx, 0x506d14
cmovne edx, ecx
mov dword [esp + 8], 0x509e6b
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp], edi
inc esi
call fcn.004bb619
jmp 0x4cb257
mov dword [esp + 8], 0x50891a
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004bb619
mov esi, eax
jmp 0x4cb339
mov eax, dword [ebp - 0x60]
cmp edx, dword [eax]
jge 0x4cb339
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x6c], edx
imul eax, edx, 0xc
add eax, dword [ecx + 8]
test edx, edx
mov ecx, 0x507f06
mov eax, dword [eax]
mov dword [esp + 4], esi
mov dword [esp + 8], str._s_Q_
mov dword [esp], edi
mov dword [esp + 0x10], eax
mov eax, 0x506d14
cmovne eax, ecx
mov dword [esp + 0xc], eax
call fcn.004bb619
mov edx, dword [ebp - 0x6c]
mov esi, eax
inc edx
jmp 0x4cb2a3
cmp eax, 9
je 0x4cb310
mov dword [esp + 8], 0x2e6b
mov dword [esp + 4], str.shell.c
mov dword [esp], str.pWrite__eOpSQLITE_DELETE
call fcn.004eaa60
xor esi, esi
cmp dword [ebp - 0x3c], 0
jne 0x4cb339
mov dword [esp + 4], str.t592690916721053953805701627921227776
mov dword [esp], str.DELETE_FROM__Q
call fcn.004440e8
test eax, eax
mov esi, eax
jne 0x4cb339
mov dword [ebp - 0x3c], 7
cmp dword [ebp - 0x3c], 0
jne 0x4cb38a
lea eax, [ebp - 0x38]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [ebp - 0x38], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.0048b371
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, edi
call fcn.004b8974
cmp dword [ebp - 0x3c], 0
je 0x4cb38a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp + 0xc]
call fcn.004b87ee
mov dword [esp], esi
call fcn.0040b268
cmp dword [ebp - 0x3c], 0
jne 0x4cb3c5
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DROP_TABLE_t592690916721053953805701627921227776
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.00477ee4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x5c], ecx
jmp 0x4cb0df
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x64], ecx
jmp 0x4cb0c6
test eax, eax
mov dword [ebp - 0x54], eax
jne 0x4cb422
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x4cb41d
test eax, eax
jne 0x4cb41d
xor ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.004c1d1b
test eax, eax
jne 0x4cb418
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4cb418
mov edx, esi
mov eax, ebx
call fcn.004c1d1b
mov esi, dword [esi + 0x1c]
jmp 0x4cb3f1
mov dword [ebp - 0x54], eax
jmp 0x4cb448
cmp eax, 0x305
jne 0x4cb448
cmp dword [ebp + 0xc], 0
je 0x4cb440
mov dword [esp], str.Cannot_find_a_unique_index_name_to_propose.
call fcn.004440e8
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0x54]
jmp 0x4cbca5
cmp dword [ebp - 0x54], 0
jne 0x4cbc34
mov eax, dword [ebx]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
test eax, eax
je 0x4cbc31
mov eax, dword [ebx + 8]
lea edi, [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
mov dword [esp], str.SELECT_max_i.seqno__FROM___sqlite_schema_AS_s____pragma_index_list_s.name__AS_l____pragma_index_info_l.name__AS_i_WHERE_s.type__table
mov dword [ebp - 0x3c], 0
mov edx, edi
mov dword [ebp - 0x38], 0
call fcn.004b8817
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x4cb4a8
xor esi, esi
jmp 0x4cb4ce
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4cb4a4
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00411c8f
lea esi, [eax + 1]
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
call fcn.004b8974
mov eax, dword [ebp - 0x3c]
test esi, esi
mov dword [ebp - 0x50], eax
jle 0x4cbc31
test eax, eax
jne 0x4cbc31
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ANALYZE__PRAGMA_writable_schema1
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.00477ee4
test eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0
jne 0x4cb539
imul edx, esi, 0x28
lea eax, [ebp - 0x50]
add edx, 0x30
call fcn.004b9c37
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x50], 0
jne 0x4cb58e
cmp dword [ebx], 0x64
jne 0x4cb549
mov eax, dword [ebx + 4]
jmp 0x4cb54c
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x60]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4bd14c
mov dword [esp + 0xc], 1
mov dword [esp + 8], 2
mov dword [esp + 0x10], ecx
mov dword [esp + 4], 0x509fd3
mov dword [esp], eax
call fcn.0042d609
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4cb5d6
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4bd096
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.sample
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0042d609
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4cb5fa
mov eax, dword [ebp - 0x60]
inc esi
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x4c]
mov dword [eax], esi
mov eax, dword [ebx + 8]
mov dword [esp], str.SELECT_s.rowid__s.name__l.name_FROM___sqlite_schema_AS_s____pragma_index_list_s.name__AS_l_WHERE_s.type__table
call fcn.004b8817
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4cb618
mov eax, dword [ebx + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x48]
mov dword [esp], str.SELECT_name__coll_FROM_pragma_index_xinfo____WHERE_key
call fcn.004b8817
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4cb636
mov eax, dword [ebx + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x44]
mov dword [esp], str.INSERT_INTO_sqlite_stat1_VALUES_________
call fcn.004b8817
mov dword [ebp - 0x50], eax
mov esi, 0xfffe7960
or edi, 0xffffffff
cmp dword [ebp - 0x50], 0
je 0x4cb653
cmp dword [ebp - 0x50], 0
je 0x4cbb4f
jmp 0x4cbb82
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4cb644
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00411cbb
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], 1
mov dword [ebp - 0x80], edx
mov dword [esp], eax
call fcn.0041feb6
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.0041feb6
cmp dword [ebp - 0x70], 0
mov dword [ebp - 0x68], eax
je 0x4cb63e
test eax, eax
je 0x4cb63e
xor esi, dword [ebp - 0x7c]
xor edi, dword [ebp - 0x80]
mov eax, dword [ebx]
or esi, edi
je 0x4cb6c3
cmp eax, 0x63
jle 0x4cb704
cmp dword [ebx], 0
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x6c], eax
jg 0x4cb7ae
mov dword [esp + 8], 0x2f74
mov dword [esp + 4], str.shell.c
mov dword [esp], str.p__iSample_0
call fcn.004eaa60
jmp 0x4cb7ae
fld dword [0x514b04]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x38], eax
mov dword [esp + 0x10], 0
fidivr dword [ebp - 0x5c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
fstp qword [ebp - 0x30]
fldz
fst qword [ebp - 0x28]
fstp qword [ebp - 0x20]
call fcn.00477ee4
test eax, eax
jne 0x4cb79e
mov eax, dword [ebp - 0x70]
mov dword [esp], str.CREATE_TABLE_temp.t592690916721053953805701627921227776_AS_SELECT__FROM__Q
mov dword [esp + 4], eax
call fcn.004440e8
mov esi, eax
mov eax, 7
test esi, esi
je 0x4cb79e
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.00477ee4
mov dword [esp], esi
mov edi, eax
call fcn.0040b268
mov eax, edi
test eax, eax
mov dword [ebp - 0x50], eax
je 0x4cb6c3
jmp 0x4cb644
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x10], 0
xor esi, esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0042e1f2
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x3c], 0
je 0x4cb804
mov dword [esp], edi
xor edi, edi
call fcn.0045a638
cmp dword [ebp - 0x3c], 0
jne 0x4cb8ea
jmp 0x4cb8af
mov dword [esp], edi
call fcn.0047778f
cmp eax, 0x64
jne 0x4cb7eb
test esi, esi
mov edx, 0x506d14
mov eax, 0x507f06
cmove eax, edx
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [ebp - 0x74], eax
call fcn.0041feb6
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [ebp - 0x78], eax
call fcn.0041feb6
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x78]
mov dword [esp + 4], esi
mov dword [esp + 8], str._sx._Q_IS_rem__d__x._Q__COLLATE__s
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004bb619
inc dword [ebp - 0x5c]
mov esi, eax
mov dword [esp + 8], str._s_d
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004bb619
mov dword [ebp - 0x64], eax
jmp 0x4cb7e5
cmp dword [ebx], 0x64
mov eax, dword [ebp - 0x64]
jne 0x4cb8d4
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], esi
mov dword [esp], str.SELECT__s_FROM__Q_x_ORDER_BY__s
mov dword [esp + 8], eax
call fcn.004440e8
jmp 0x4cb8e8
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], str.SELECT__s_FROM_temp.t592690916721053953805701627921227776_x_ORDER_BY__s
call fcn.004440e8
mov edi, eax
mov dword [esp], esi
call fcn.0040b268
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call fcn.0040b268
cmp dword [ebp - 0x3c], 0
jne 0x4cb921
cmp dword [ebx], 0x64
jne 0x4cb90d
mov eax, dword [ebx + 4]
jmp 0x4cb910
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x40]
mov dword [esp], edi
call fcn.004b8817
mov dword [ebp - 0x3c], eax
mov dword [esp], edi
call fcn.0040b268
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x64], 0
jne 0x4cb94b
mov eax, dword [ebp - 0x5c]
lea edx, [eax*4 + 4]
lea eax, [ebp - 0x3c]
call fcn.004b9c37
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x3c], 0
jne 0x4cbb28
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4cbb28
xor eax, eax
mov edi, dword [ebp - 0x64]
mov dword [edi + eax*4], 1
inc eax
cmp dword [ebp - 0x5c], eax
jge 0x4cb96b
cmp dword [ebp - 0x3c], 0
je 0x4cb98f
xor esi, esi
cmp dword [ebp - 0x3c], 0
jne 0x4cba3d
jmp 0x4cb9d0
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4cb981
mov eax, dword [ebp - 0x64]
xor esi, esi
inc dword [eax]
cmp dword [ebp - 0x5c], esi
je 0x4cb97b
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00411c8f
test eax, eax
je 0x4cb9c1
inc esi
jmp 0x4cb9a6
cmp dword [ebp - 0x5c], esi
jle 0x4cb97b
mov eax, dword [ebp - 0x64]
inc dword [eax + esi*4 + 4]
inc esi
jmp 0x4cb9c1
mov eax, dword [ebp - 0x64]
mov edi, 1
mov eax, dword [eax]
mov dword [esp], 0x50a1e6
mov dword [esp + 4], eax
mov dword [ebp - 0x74], eax
call fcn.004440e8
test eax, eax
mov esi, eax
jne 0x4cba37
mov dword [ebp - 0x3c], 7
jmp 0x4cba3d
cmp dword [ebp - 0x5c], edi
jl 0x4cba3d
mov eax, dword [ebp - 0x64]
mov ecx, 2
mov eax, dword [eax + edi*4]
mov dword [esp + 4], esi
inc edi
mov dword [esp + 8], 0x50a1e9
cdq
mov dword [ebp - 0x78], eax
idiv ecx
add eax, dword [ebp - 0x74]
cdq
idiv dword [ebp - 0x78]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004bb619
mov esi, eax
cmp dword [ebp - 0x3c], 0
je 0x4cb9fc
cmp dword [ebp - 0x3c], 0
jne 0x4cbadb
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call fcn.0042e1f2
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call fcn.0042e1f2
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.0042e1f2
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call fcn.0047778f
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call fcn.0045a638
mov dword [ebp - 0x3c], eax
mov edi, dword [ebp - 0x68]
xor eax, eax
or ecx, 0xffffffff
mov edx, dword [ebp - 0x68]
repne scasb al, byte es:[edi]
lea eax, [ebx + 0x2c]
not ecx
dec ecx
call fcn.004c505e
test eax, eax
mov edi, eax
je 0x4cbb20
cmp dword [eax + 8], 0
je 0x4cbb1b
mov dword [esp + 8], 0x2fbb
mov dword [esp + 4], str.shell.c
mov dword [esp], str.pEntry__zVal20
call fcn.004eaa60
mov dword [edi + 8], esi
jmp 0x4cbb28
mov dword [esp], esi
call fcn.0040b268
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call fcn.0040b268
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.004b8974
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x80]
mov dword [ebp - 0x50], eax
jmp 0x4cb63e
cmp dword [ebx], 0x63
jg 0x4cbb82
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.00477ee4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x50]
xor esi, esi
call fcn.004b8974
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x50]
call fcn.004b8974
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x50]
call fcn.004b8974
cmp dword [ebp - 0x60], 0
je 0x4cbbcf
mov eax, dword [ebp - 0x60]
cmp esi, dword [eax]
jge 0x4cbbc7
imul eax, esi, 0x28
mov edi, dword [ebp - 0x60]
inc esi
mov eax, dword [edi + eax + 0x28]
mov dword [esp], eax
call fcn.0040b268
jmp 0x4cbbab
mov dword [esp], eax
call fcn.0040b268
cmp dword [ebp - 0x50], 0
jne 0x4cbc03
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ANALYZE_sqlite_schema
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.00477ee4
mov dword [ebp - 0x50], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00477ee4
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov esi, dword [ebx + 0x2c]
lea edi, [ebp - 0x54]
test esi, esi
je 0x4cbc84
mov edx, dword [esi + 8]
mov ecx, 0x506d14
mov eax, str.____stat1:
test edx, edx
mov dword [esp + 0x14], edx
cmove eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esp + 8], str._s__s_s_n
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x102c]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004bb619
mov esi, dword [esi + 0x10]
mov dword [ebx + 0x102c], eax
jmp 0x4cbc3a
cmp dword [ebp - 0x54], 0
jne 0x4cbc97
mov edx, dword [ebp + 0xc]
mov eax, ebx
call fcn.004c50e4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x4cbca5
mov dword [ebx + 0x20], 1
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret