Function at 0x4029b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
push 0x1030
call fcn.0041c010
add esp, 4
xor esi, esi
mov edi, eax
test eax, eax
mov eax, 0
je 0x402f35
mov esi, dword [esp + 0x44]
lea ebx, [edi + 8]
push 0x1028
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov ebp, edi
mov dword [edi + 4], esi
xor esi, esi
mov dword [edi], 0x64
add ebp, 0xc
push ebp
push 0x501896
call fcn.00432140
add esp, 8
test eax, eax
mov eax, edi
jne 0x402f35
push ebx
push 0x501896
call fcn.00432140
add esp, 8
test eax, eax
mov eax, edi
jne 0x402f35
push 0
push 1
push 0x3f0
push dword [edi + 8]
call fcn.004300f0
add esp, 0x10
mov eax, esp
mov dword [esp], 0xffffffff
push str.SELECT_sql_FROM_sqlite_master_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_CREATE_VIRTUAL___
push dword [esp + 0x4c]
push eax
push dword [edi + 4]
call fcn.00402720
add esp, 0x10
nop
test eax, eax
mov eax, dword [esp]
jne 0x402f2a
push eax
call fcn.00426830
add esp, 4
cmp eax, 0x64
mov eax, dword [esp]
jne 0x402a9c
push 0
push eax
call fcn.00428220
add esp, 8
push dword [esp + 0x48]
push 0
push 0
push eax
push dword [ebx]
call fcn.0042c9a0
add esp, 0x14
jmp 0x402a60
push eax
call fcn.00425440
add esp, 4
test eax, eax
mov eax, edi
jne 0x402f35
push edi
push 0x51d144
push str.expert
push dword [edi + 0xc]
call fcn.0042de30
add esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
mov esi, dword [edi + 4]
push 0
push eax
push 0xffffffffffffffff
push str.SELECT_type__name__sql__1_FROM_sqlite_master_WHERE_type_IN__table_view__AND_name_NOT_LIKE_sqlite_____UNION_ALL_SELECT_type__name__sql__2_FROM_sqlite_master_WHERE_type__trigger__AND_tbl_name_IN_SELECT_name_FROM_sqlite_master_WHERE_type__view__ORDER_BY_4__1
push esi
call fcn.0042cf00
add esp, 0x14
test eax, eax
je 0x402b25
mov ebx, eax
mov dword [esp + 0x10], 0
push esi
call fcn.0042cf50
add esp, 4
push eax
push 0x501b14
call fcn.0041ef10
add esp, 8
mov ecx, dword [esp + 0x48]
xor esi, esi
mov dword [ecx], eax
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x10]
jmp 0x402f2a
mov eax, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 8], 0
push eax
call fcn.00426830
add esp, 4
cmp eax, 0x64
mov eax, dword [esp + 0x10]
jne 0x402f48
push 0
push eax
call fcn.00428220
add esp, 8
mov ebx, eax
push 1
push dword [esp + 0x14]
call fcn.00428220
add esp, 8
mov dword [esp + 0x1c], eax
push 2
push dword [esp + 0x14]
call fcn.00428220
add esp, 8
cmp byte [ebx], 0x76
je 0x402b81
cmp byte [ebx + 1], 0x72
jne 0x402ba8
push dword [esp + 0x48]
push 0
push 0
push eax
push dword [ebp]
call fcn.0042c9a0
add esp, 0x14
mov ebx, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x402b33
jmp 0x402f2a
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x1c]
mov dword [esp], 0
mov dword [esp + 0x20], eax
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x24], eax
push ebx
push str.PRAGMA_table_info_Q
push dword [esp + 0x50]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x30]
call fcn.00402720
add esp, 0x14
mov ebx, eax
test eax, eax
mov eax, dword [esp]
jne 0x402f01
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], 0x10
lea esi, [ecx + 0x11]
xor ecx, ecx
mov dword [esp + 4], ecx
push eax
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x402c8e
mov dword [esp + 0xc], 0xffffffff
push 1
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov ebx, eax
mov dword [esp + 0xc], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x14], eax
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push dword [esp + 0x34]
push 0x502288
push dword [esp + 0x40]
call fcn.00433040
add esp, 0x24
mov ebx, eax
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add esi, dword [esp + 0x14]
mov ecx, dword [esp + 4]
add dword [esp + 0x18], 0xc
lea esi, [eax + esi + 2]
mov eax, dword [esp]
inc ecx
test ebx, ebx
je 0x402c00
jmp 0x402eff
push dword [esp]
call fcn.00425680
add esp, 4
test eax, eax
jne 0x402f76
mov ebx, dword [esp + 0x18]
lea esi, [ebx + esi - 0x10]
push esi
call fcn.0041c010
add esp, 4
test eax, eax
je 0x402f7a
push esi
push 0
push eax
mov esi, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [esi + 0x10]
add ebx, esi
mov dword [esi + 8], eax
mov eax, dword [esp + 4]
mov dword [esp + 4], esi
mov dword [esi], eax
push dword [esp]
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x402def
mov esi, ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0xffffffff
push 1
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov dword [esp + 0xc], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, esi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 4]
mov dword [esp + 0x28], eax
lea eax, [eax + 1]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
mov dword [eax + ebx], ecx
push 5
push dword [esp + 4]
call fcn.00428070
add esp, 8
mov ecx, dword [esi + 8]
mov dword [ecx + ebx + 8], eax
push dword [esp + 0x2c]
push dword [esp + 0x10]
mov esi, dword [esp + 0x20]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x20]
push dword [esp + 0x34]
push 0x502288
push dword [esp + 0x40]
call fcn.00433040
add esp, 0x24
test eax, eax
jne 0x402f6c
mov eax, dword [esp + 0x28]
lea esi, [esi + eax + 1]
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x14]
lea edx, [eax + 1]
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 8]
mov dword [ecx + ebx + 4], esi
push edx
push dword [esp + 0x10]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x18]
lea esi, [esi + eax + 1]
push dword [esp]
call fcn.00426830
add esp, 4
add ebx, 0xc
cmp eax, 0x64
mov dword [esp + 0x14], ebx
je 0x402cf8
jmp 0x402df1
mov esi, ebx
push dword [esp]
call fcn.00425440
add esp, 4
test eax, eax
jne 0x402f83
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 4]
inc eax
mov dword [ebx + 4], esi
push eax
push dword [esp + 0x20]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 8], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0xc], eax
mov dword [edi + 0x10], ebx
push str.CREATE_TABLE_x_
push 0
lea eax, [esp + 0x10]
push eax
call fcn.004028e0
add esp, 0xc
cmp dword [ebx], 0
jle 0x402e93
xor esi, esi
mov ebx, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 4]
test esi, esi
mov ecx, 0x502209
mov edx, 0x501917
cmove ecx, edx
mov edx, dword [eax + 8]
push dword [edx + ebx]
push dword [edx + ebx - 4]
push ecx
push str._s_Q_COLLATE__s
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
call fcn.004028e0
add esp, 0x18
mov ecx, dword [esp + 4]
inc esi
add ebx, 0xc
cmp esi, dword [ecx]
jl 0x402e4f
push 0x50220c
push eax
lea esi, [esp + 0x10]
push esi
call fcn.004028e0
add esp, 0xc
mov dword [esp + 4], eax
push eax
push dword [esp + 0x20]
push str.CREATE_VIRTUAL_TABLE__Q_USING_expert__Q_
push 0
push esi
call fcn.004028e0
add esp, 0x14
mov ebx, dword [esp + 8]
mov esi, eax
test ebx, ebx
jne 0x402ee3
push dword [esp + 0x48]
push 0
push 0
push esi
push dword [ebp]
call fcn.0042c9a0
add esp, 0x14
mov ebx, eax
mov dword [esp + 8], eax
push dword [esp + 4]
call fcn.0041c220
add esp, 4
push esi
call fcn.0041c220
add esp, 4
xor esi, esi
jmp 0x402b9b
xor esi, esi
push eax
call fcn.00425680
add esp, 4
xor ebp, ebp
push dword [esp]
call fcn.00425440
add esp, 4
mov eax, ebp
push eax
call fcn.0041c220
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 8], ebx
push eax
call fcn.00425440
add esp, 4
mov eax, edi
push eax
call fcn.00403060
add esp, 4
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.00425440
add esp, 4
test eax, eax
mov eax, edi
jne 0x402f35
push edi
push 0x402f90
push dword [edi + 0xc]
call fcn.0042bfa0
add esp, 0xc
mov esi, edi
jmp 0x402f3e
mov ebp, dword [esp + 4]
mov ebx, eax
xor esi, esi
jmp 0x402f0c
mov ebx, eax
jmp 0x402f7f
mov ebx, 7
xor esi, esi
jmp 0x402f0a
mov ebx, eax
mov eax, dword [esp + 4]
xor esi, esi
jmp 0x402f19