Function at 0x4a2500
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
mov ebp, dword [eax + 0x40]
push esi
push edi
xor edi, edi
push ecx
shr ebp, 3
push str.PRAGMA_table_info_Q
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
and ebp, 1
call fcn.004d32a0
push ebx
lea edx, [esp + 0x1c]
push edx
mov esi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
push 0xffffffffffffffff
push esi
push ecx
call fcn.00521340
push esi
mov dword [esp + 0x40], eax
call fcn.004acb60
xor esi, esi
add esp, 0x20
cmp dword [esp + 0x20], esi
jne 0x4a268c
mov edx, dword [esp + 0x10]
push edx
call fcn.00527980
add esp, 4
cmp eax, 0x64
jne 0x4a262d
lea esp, [esp]
mov eax, dword [esp + 0x18]
lea ecx, [eax - 2]
cmp ebx, ecx
jl 0x4a25ae
lea eax, [ebx + eax*2 + 0xa]
lea edx, [eax*4]
push edx
push edi
mov dword [esp + 0x20], eax
call fcn.0052afa0
mov edi, eax
add esp, 8
cmp edi, esi
je 0x4a2696
mov eax, dword [esp + 0x10]
push 1
push eax
inc ebx
call fcn.004d0010
push eax
push 0x5e35b8
call fcn.004d32a0
mov dword [edi + ebx*4], eax
mov ecx, dword [esp + 0x20]
push 5
push ecx
call fcn.004c5d20
add esp, 0x18
test eax, eax
je 0x4a2617
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 1
jne 0x4a2613
mov edx, dword [esp + 0x10]
push str.INTEGER
push 2
push edx
call fcn.004d0010
add esp, 8
push eax
call fcn.004bc3f0
add esp, 8
mov dword [esp + 0x14], 1
test eax, eax
je 0x4a2617
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x10]
push eax
call fcn.00527980
add esp, 4
cmp eax, 0x64
je 0x4a2580
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005127b0
add esp, 4
cmp edi, esi
je 0x4a268c
mov dword [edi], esi
mov dword [edi + ebx*4 + 4], esi
cmp ebp, esi
je 0x4a2736
cmp dword [esp + 0x14], esi
je 0x4a26c0
mov edx, dword [esp + 0x2c]
push edx
push str.SELECT_1_FROM_pragma_index_list__Q__WHERE_originpk
call fcn.004d32a0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov ebp, eax
push esi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
push edx
call fcn.00521340
push ebp
mov esi, eax
call fcn.004acb60
add esp, 0x20
test esi, esi
je 0x4a269b
call fcn.004a24d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
call fcn.00495f00
mov eax, dword [esp + 0x10]
push eax
call fcn.00527980
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call fcn.005127b0
xor edx, edx
add esp, 8
cmp esi, 0x64
sete dl
xor esi, esi
mov ebp, edx
cmp ebp, esi
je 0x4a2736
mov dword [esp + 0x14], esi
mov ebp, 0x632950
lea ecx, [ecx]
mov esi, 1
cmp ebx, esi
jl 0x4a26f9
lea esp, [esp]
mov eax, dword [edi + esi*4]
mov ecx, dword [ebp]
push eax
push ecx
call fcn.004bc3f0
add esp, 8
test eax, eax
je 0x4a2740
inc esi
cmp esi, ebx
jle 0x4a26e0
mov edx, dword [esp + 0x14]
mov eax, dword [edx*4 + 0x632950]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push 0
push eax
mov eax, dword [edx]
push ecx
push 0
push eax
call fcn.00528b40
add esp, 0x24
test eax, eax
jne 0x4a2736
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx*4 + 0x632950]
mov dword [edi], edx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp esi, ebx
jg 0x4a26f9
inc dword [esp + 0x14]
add ebp, 4
cmp ebp, 0x63295c
jl 0x4a26d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret