Function at 0x4cbda9
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov edx, 0x1030
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x30]
sub esp, 0x8c
mov dword [ebp - 0x30], 0
call fcn.004b9c37
cmp dword [ebp - 0x30], 0
mov ebx, eax
jne 0x4cbdf3
mov eax, dword [ebp + 8]
mov dword [ebx], 0x64
mov dword [ebx + 4], eax
lea eax, [ebx + 0xc]
mov dword [esp], str.:memory:
mov dword [esp + 4], eax
call fcn.004b2505
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4cbe36
lea eax, [ebx + 8]
mov dword [esp], str.:memory:
mov dword [esp + 4], eax
call fcn.004b2505
test eax, eax
mov dword [ebp - 0x30], eax
jne 0x4cbe36
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x3f0
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.00414b32
cmp dword [ebp - 0x30], 0
jne 0x4cbecd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], str.SELECT_sql_FROM_sqlite_schema_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_CREATE_VIRTUAL___
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.004b886a
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4cbe7e
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
call fcn.004b8974
jmp 0x4cbecd
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4cbe71
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041feb6
test eax, eax
je 0x4cbe6b
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.00477ee4
jmp 0x4cbe68
cmp dword [ebp - 0x30], 0
jne 0x4cc3f6
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x4f1980
mov dword [esp + 4], str.expert
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.0042441e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 4]
mov dword [esp], str.SELECT_type__name__sql__1_FROM_sqlite_schema_WHERE_type_IN__table_view__AND_name_NOT_LIKE_sqlite_____UNION_ALL_SELECT_type__name__sql__2_FROM_sqlite_schema_WHERE_type__trigger__AND_tbl_name_IN_SELECT_name_FROM_sqlite_schema_WHERE_type__view__ORDER_BY_4__1
mov dword [ebp - 0x28], 0
call fcn.004b8817
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4cbf34
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
call fcn.004b8974
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jmp 0x4cc3f6
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4cbf1e
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041feb6
mov esi, eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0041feb6
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.0041feb6
test esi, esi
je 0x4cbf18
cmp dword [ebp - 0x44], 0
sete dl
je 0x4cbf18
cmp byte [esi], 0x76
je 0x4cbf9a
cmp byte [esi + 1], 0x72
jne 0x4cbfcd
test eax, eax
je 0x4cbf18
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.00477ee4
jmp 0x4cbf15
mov eax, dword [ebx + 4]
mov edi, dword [ebp - 0x44]
or ecx, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 0x48], eax
mov al, dl
repne scasb al, byte es:[edi]
mov dword [esp + 0xc], str.PRAGMA_table_xinfo_Q
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x5c], eax
lea eax, [ecx + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.004b886a
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4cc10c
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4cc10c
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0041feb6
test eax, eax
mov edx, eax
mov dword [ebp - 0x1c], 0
jne 0x4cc070
mov dword [ebp - 0x20], 1
jmp 0x4cc10c
xor eax, eax
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
lea eax, [ebp - 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
not ecx
add ecx, dword [ebp - 0x40]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.main
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
call fcn.00490c89
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
jne 0x4cc0d6
mov dword [ebp - 0x1c], str.binary
mov edi, dword [ebp - 0x1c]
xor eax, eax
or ecx, 0xffffffff
inc esi
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 5
not ecx
add ecx, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [ebp - 0x40], ecx
call fcn.00411c8f
test eax, eax
setg al
movzx eax, al
add dword [ebp - 0x50], eax
jmp 0x4cc026
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.0045a638
cmp dword [ebp - 0x20], 0
jne 0x4cc120
mov dword [ebp - 0x20], eax
imul edi, esi, 0xc
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], 0
jne 0x4cc140
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x20]
add edx, edi
call fcn.004b9c37
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x40], 0
jne 0x4cc28e
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x54], 0
add eax, 0x10
mov dword [edx], esi
mov dword [edx + 8], eax
add eax, edi
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x20], 0
jne 0x4cc28e
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
jne 0x4cc28e
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0041feb6
test eax, eax
mov edx, eax
mov dword [ebp - 0x1c], 0
je 0x4cc16b
mov edi, edx
xor eax, eax
mov dword [ebp - 0x60], edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
imul eax, dword [ebp - 0x54], 0xc
not ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x58]
add esi, dword [eax + 8]
mov eax, dword [ebp - 0x40]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 5
mov dword [esp], eax
call fcn.00411c8f
cmp dword [ebp - 0x50], 1
mov edx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x40]
sete cl
dec eax
sete al
movzx eax, al
and eax, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 8], eax
lea eax, [ebp - 0x1c]
mov esi, edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.main
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x40], edi
mov dword [esp], eax
call fcn.00490c89
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x4cc286
cmp dword [ebp - 0x1c], 0
jne 0x4cc261
mov dword [ebp - 0x1c], str.binary
mov esi, dword [ebp - 0x1c]
xor eax, eax
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4c]
mov edi, esi
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x58]
not ecx
mov eax, dword [eax + 8]
mov dword [eax + edi + 4], edx
mov edi, edx
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x40], edi
inc dword [ebp - 0x54]
jmp 0x4cc16b
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.004b8974
cmp dword [ebp - 0x20], 0
je 0x4cc2b3
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.0040b268
mov dword [ebp - 0x3c], 0
jmp 0x4cc2f0
cmp dword [ebp - 0x3c], 0
jne 0x4cc2c3
mov dword [esp + 8], 0x2c26
jmp 0x4cc2dc
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
test esi, esi
mov dword [eax + 4], esi
jne 0x4cc425
mov dword [esp + 8], 0x2c28
mov dword [esp + 4], str.shell.c
mov dword [esp], 0x507e7a
call fcn.004eaa60
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0x2c], eax
jne 0x4cbf18
mov eax, dword [ebx + 0x10]
mov esi, dword [ebp - 0x3c]
lea edi, [ebp - 0x2c]
mov dword [esi + 0xc], eax
mov dword [ebx + 0x10], esi
xor esi, esi
mov dword [esp + 8], str.CREATE_TABLE_x_
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.004bb619
mov edx, dword [ebp - 0x3c]
cmp esi, dword [edx]
jge 0x4cc374
mov ecx, dword [ebp - 0x3c]
imul edx, esi, 0xc
add edx, dword [ecx + 8]
test esi, esi
mov ecx, dword [edx + 4]
mov edx, dword [edx]
mov dword [esp + 8], str._s_Q_COLLATE__s
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [ebp - 0x40], ecx
mov dword [esp + 0x10], edx
mov ecx, 0x507f06
mov edx, 0x506d14
cmovne edx, ecx
mov ecx, dword [ebp - 0x40]
inc esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
call fcn.004bb619
jmp 0x4cc327
lea edi, [ebp - 0x2c]
mov dword [esp + 8], 0x50891a
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004bb619
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [ebp - 0x44]
mov dword [esp], edi
mov dword [esp + 8], str.CREATE_VIRTUAL_TABLE__Q_USING_expert__Q_
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
call fcn.004bb619
cmp dword [ebp - 0x2c], 0
mov edi, eax
jne 0x4cc3e1
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.00477ee4
mov dword [ebp - 0x2c], eax
mov dword [esp], esi
call fcn.0040b268
mov dword [esp], edi
call fcn.0040b268
jmp 0x4cbf18
cmp dword [ebp - 0x30], 0
jne 0x4cc413
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4bc859
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.004043ba
cmp dword [ebp - 0x30], 0
je 0x4cc435
mov dword [esp], ebx
xor ebx, ebx
call fcn.004cbd19
jmp 0x4cc435
mov ecx, dword [ebp - 0x5c]
mov edi, esi
mov esi, dword [ebp - 0x44]
inc ecx
rep movsb byte es:[edi], byte [esi]
jmp 0x4cc2f0
add esp, 0x8c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret