Function at 0x4a2330
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.004d30e0
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.00521170
push esi
mov dword [esp + 0x40], eax
call fcn.004ac9a0
xor esi, esi
add esp, 0x20
cmp dword [esp + 0x20], esi
jne 0x4a24bc
mov edx, dword [esp + 0x10]
push edx
call fcn.005277b0
add esp, 4
cmp eax, 0x64
jne 0x4a245d
lea esp, [esp]
mov eax, dword [esp + 0x18]
lea ecx, [eax - 2]
cmp ebx, ecx
jl 0x4a23de
lea eax, [ebx + eax*2 + 0xa]
lea edx, [eax*4]
push edx
push edi
mov dword [esp + 0x20], eax
call fcn.0052add0
mov edi, eax
add esp, 8
cmp edi, esi
je 0x4a24c6
mov eax, dword [esp + 0x10]
push 1
push eax
inc ebx
call fcn.004cfe50
push eax
push 0x5e3678
call fcn.004d30e0
mov dword [edi + ebx*4], eax
mov ecx, dword [esp + 0x20]
push 5
push ecx
call fcn.004c5b70
add esp, 0x18
test eax, eax
je 0x4a2447
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 1
jne 0x4a2443
mov edx, dword [esp + 0x10]
push str.INTEGER
push 2
push edx
call fcn.004cfe50
add esp, 8
push eax
call fcn.004bc240
add esp, 8
mov dword [esp + 0x14], 1
test eax, eax
je 0x4a2447
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x10]
push eax
call fcn.005277b0
add esp, 4
cmp eax, 0x64
je 0x4a23b0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005125e0
add esp, 4
cmp edi, esi
je 0x4a24bc
mov dword [edi], esi
mov dword [edi + ebx*4 + 4], esi
cmp ebp, esi
je 0x4a2566
cmp dword [esp + 0x14], esi
je 0x4a24f0
mov edx, dword [esp + 0x2c]
push edx
push str.SELECT_1_FROM_pragma_index_list__Q__WHERE_originpk
call fcn.004d30e0
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.00521170
push ebp
mov esi, eax
call fcn.004ac9a0
add esp, 0x20
test esi, esi
je 0x4a24cb
call fcn.004a2300
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
call fcn.00495d30
mov eax, dword [esp + 0x10]
push eax
call fcn.005277b0
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call fcn.005125e0
xor edx, edx
add esp, 8
cmp esi, 0x64
sete dl
xor esi, esi
mov ebp, edx
cmp ebp, esi
je 0x4a2566
mov dword [esp + 0x14], esi
mov ebp, 0x632950
lea ecx, [ecx]
mov esi, 1
cmp ebx, esi
jl 0x4a2529
lea esp, [esp]
mov eax, dword [edi + esi*4]
mov ecx, dword [ebp]
push eax
push ecx
call fcn.004bc240
add esp, 8
test eax, eax
je 0x4a2570
inc esi
cmp esi, ebx
jle 0x4a2510
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.00528970
add esp, 0x24
test eax, eax
jne 0x4a2566
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 0x4a2529
inc dword [esp + 0x14]
add ebp, 4
cmp ebp, 0x63295c
jl 0x4a2500
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret