Function at 0x403ea0
Capabilities:
Reference sql statements

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
push 0x1030
call fcn.00424d00
add esp, 4
mov esi, eax
test eax, eax
je 0x403f95
mov edi, eax
mov ebp, dword [esp + 0x50]
lea ebx, [eax + 8]
push 0x1028
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi], 0x64
add edi, 0xc
push edi
push 0x51cf2a
call fcn.0043b8e0
add esp, 8
test eax, eax
jne 0x403f95
push ebx
push 0x51cf2a
call fcn.0043b8e0
add esp, 8
test eax, eax
jne 0x403f95
mov ebp, dword [esp + 0x54]
push 0
push 1
push 0x3f0
push dword [esi + 8]
call fcn.004394c0
add esp, 0x10
mov dword [esp + 4], 0
lea eax, [esp + 4]
push str.SELECT_sql_FROM_sqlite_schema_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_CREATE_VIRTUAL___
push ebp
push eax
push dword [esi + 4]
call fcn.00404520
add esp, 0x10
test eax, eax
je 0x403f51
jmp 0x403f89
xor eax, eax
test eax, eax
jne 0x403f89
push dword [esp + 4]
call fcn.0042be30
add esp, 4
mov ecx, dword [esp + 4]
cmp eax, 0x64
jne 0x403faa
push 0
push ecx
call fcn.00431d90
add esp, 8
test eax, eax
je 0x403f4b
push ebp
push 0
push 0
push eax
push dword [ebx]
call fcn.00435e30
add esp, 0x14
test eax, eax
je 0x403f51
push dword [esp + 4]
call fcn.0042d1d0
add esp, 4
push esi
call fcn.00404670
add esp, 4
xor esi, esi
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.0042d1d0
add esp, 4
test eax, eax
jne 0x403f95
push esi
push 0x53c1a4
push str.expert
push dword [esi + 0xc]
call fcn.00437170
add esp, 0x10
mov dword [esp + 0x10], 0
mov ebx, dword [esi + 4]
lea eax, [esp + 0x10]
push 0
push eax
push 0xffffffffffffffff
push 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
push ebx
call fcn.0042be00
add esp, 0x14
test eax, eax
je 0x40401f
mov ebp, eax
mov dword [esp + 0x10], 0
push ebx
call fcn.004362c0
add esp, 4
push eax
push 0x51d22f
call fcn.00428600
add esp, 8
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
jmp 0x4044ba
xor ebp, ebp
jmp 0x40402e
mov ebp, dword [esp]
test ecx, ecx
jne 0x4044ba
push dword [esp + 0x10]
call fcn.0042be30
add esp, 4
mov ecx, dword [esp + 0x10]
cmp eax, 0x64
jne 0x4044e4
mov dword [esp], ebp
push 0
push ecx
call fcn.00431d90
add esp, 8
mov ebx, eax
push 1
push dword [esp + 0x14]
call fcn.00431d90
add esp, 8
mov ebp, eax
push 2
push dword [esp + 0x14]
call fcn.00431d90
add esp, 8
xor ecx, ecx
test ebx, ebx
je 0x404023
test ebp, ebp
je 0x404023
cmp byte [ebx], 0x76
je 0x40408a
cmp byte [ebx + 1], 0x72
jne 0x4040b1
test eax, eax
mov ebp, dword [esp]
je 0x404026
push dword [esp + 0x54]
push 0
push 0
push eax
push dword [edi]
call fcn.00435e30
add esp, 0x14
mov ebp, eax
mov dword [esp + 0x14], eax
mov ecx, eax
jmp 0x404026
mov eax, dword [esi + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 4], 0
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
mov dword [esp + 0x1c], ebp
push ebp
push str.PRAGMA_table_xinfo_Q
push dword [esp + 0x5c]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x38]
call fcn.00404520
add esp, 0x14
test eax, eax
jne 0x4044ff
mov dword [esp + 0x30], ebx
add ebx, 0x11
mov dword [esp + 0x2c], 0
mov dword [esp], 0x10
mov dword [esp + 0x18], 0
jmp 0x40414d
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add ebx, dword [esp + 8]
add ebx, eax
add ebx, 2
inc dword [esp + 0x18]
push 5
push dword [esp + 8]
call fcn.0042d110
add esp, 8
xor ecx, ecx
test eax, eax
setg cl
add dword [esp + 0x2c], ecx
add dword [esp], 0xc
test ebp, ebp
jne 0x404495
push dword [esp + 4]
call fcn.0042be30
add esp, 4
mov ecx, dword [esp + 4]
cmp eax, 0x64
jne 0x4041cf
push 1
push ecx
call fcn.00431d90
add esp, 8
mov dword [esp + 0xc], 0
test eax, eax
je 0x404490
mov ebp, eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 8], eax
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push ebp
push dword [esp + 0x34]
push 0x51db42
push dword [esp + 0x48]
call fcn.0043c7a0
add esp, 0x24
mov ebp, eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x404112
mov dword [esp + 0xc], str.binary
mov eax, str.binary
jmp 0x404112
push ecx
call fcn.00430240
add esp, 4
test eax, eax
jne 0x404503
mov ebp, dword [esp]
lea eax, [ebx + ebp]
add eax, 0xfffffff0
mov dword [esp + 8], eax
push eax
call fcn.00424d00
add esp, 4
test eax, eax
je 0x404507
mov ebx, eax
push dword [esp + 8]
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebx + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
mov dword [ebx], eax
mov dword [esp + 8], ebx
add ebp, ebx
mov dword [esp], ebp
xor ebx, ebx
jmp 0x404232
xor ebp, ebp
test ebp, ebp
jne 0x4044f9
push dword [esp + 4]
call fcn.0042be30
add esp, 4
mov ecx, dword [esp + 4]
cmp eax, 0x64
jne 0x40437a
push 1
push ecx
call fcn.00431d90
add esp, 8
mov dword [esp + 0xc], 0
test eax, eax
je 0x404228
mov ebp, ebx
mov ebx, dword [esp + 0x2c]
xor ebx, 1
push eax
mov dword [esp + 0x24], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x24], eax
inc eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], ebp
lea ecx, [ebp*4]
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x34], ecx
mov ebp, dword [esp]
mov dword [eax + ecx], ebp
push 5
push dword [esp + 8]
call fcn.0042d110
add esp, 8
xor eax, 1
xor ecx, ecx
or eax, ebx
sete cl
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x34]
mov dword [eax + edx + 8], ecx
push dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
push ebx
push ebp
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x24]
add ebp, eax
inc ebp
mov dword [esp], ebp
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push dword [esp + 0x34]
push 0x51db42
push dword [esp + 0x48]
call fcn.0043c7a0
add esp, 0x24
mov ebp, eax
test eax, eax
je 0x404312
mov ebx, dword [esp + 0x18]
jmp 0x40436c
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x404327
mov dword [esp + 0xc], str.binary
mov eax, str.binary
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x24], eax
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 8]
mov ebx, dword [esp + 0x18]
lea edx, [ebx + ebx*2]
mov eax, dword [esp]
mov dword [ecx + edx*4 + 4], eax
push dword [esp + 0x20]
push dword [esp + 0x10]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp]
add ecx, eax
inc ecx
mov dword [esp], ecx
inc ebx
test ebp, ebp
je 0x404232
jmp 0x4044f9
push ecx
call fcn.0042d1d0
add esp, 4
test eax, eax
jne 0x40450e
mov ecx, dword [esp]
mov eax, dword [esp + 8]
mov dword [eax + 4], ecx
test ecx, ecx
mov eax, dword [esp + 0x30]
je 0x4043ac
inc eax
push eax
push dword [esp + 0x20]
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 8]
mov dword [ebx + 0xc], eax
mov dword [esi + 0x10], ebx
push str.CREATE_TABLE_x_
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.00405e50
add esp, 0xc
cmp dword [ebx], 0
jle 0x404424
xor ebx, ebx
mov ebp, 4
mov dword [esp], eax
test ebx, ebx
mov ecx, 0x51dac2
mov edx, 0x51cfd7
cmove ecx, edx
mov eax, dword [esp + 8]
mov edx, dword [eax + 8]
push dword [edx + ebp]
push dword [edx + ebp - 4]
push ecx
push str._s_Q_COLLATE__s
push dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
call fcn.00405e50
add esp, 0x18
inc ebx
add ebp, 0xc
mov ecx, dword [esp + 8]
cmp ebx, dword [ecx]
jl 0x4043e1
push 0x51dac5
push eax
lea ebp, [esp + 0x1c]
push ebp
call fcn.00405e50
add esp, 0xc
mov ebx, eax
push eax
push dword [esp + 0x20]
push str.CREATE_VIRTUAL_TABLE__Q_USING_expert__Q_
push 0
push ebp
call fcn.00405e50
add esp, 0x14
mov dword [esp], eax
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x404475
push dword [esp + 0x54]
push 0
push 0
push dword [esp + 0xc]
push dword [edi]
call fcn.00435e30
add esp, 0x14
mov ebp, eax
mov dword [esp + 0x14], eax
push ebx
call fcn.00424f10
add esp, 4
push dword [esp]
call fcn.00424f10
add esp, 4
mov ecx, ebp
jmp 0x404026
mov ebp, 1
push dword [esp + 4]
call fcn.00430240
add esp, 4
xor edi, edi
push dword [esp + 4]
call fcn.0042d1d0
add esp, 4
mov eax, edi
push eax
call fcn.00424f10
add esp, 4
push dword [esp + 0x10]
call fcn.0042d1d0
add esp, 4
test ebp, ebp
jne 0x403f95
push esi
push 0x4045a0
push dword [esi + 0xc]
call fcn.004354e0
add esp, 0xc
jmp 0x403fa0
push ecx
call fcn.0042d1d0
add esp, 4
mov ebp, eax
test ebp, ebp
jne 0x403f95
jmp 0x4044ce
mov edi, dword [esp + 8]
jmp 0x4044a3
mov ebp, eax
jmp 0x404495
mov ebp, eax
jmp 0x4044a1
mov ebp, 7
jmp 0x4044a1
mov ebp, eax
mov eax, dword [esp + 8]
jmp 0x4044b1