Function at 0x49ea60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x40]
shr eax, 3
and eax, 1
push esi
push edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push eax
push str.PRAGMA_table_info_Q
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], edi
call fcn.004ad880
push edi
lea ecx, [esp + 0x3c]
push ecx
push edi
push 0x80
mov esi, eax
mov eax, dword [ebx]
push 0xffffffffffffffff
push esi
call fcn.00501540
push esi
mov ebx, eax
call fcn.004ab490
add esp, 0x24
test ebx, ebx
jne 0x49ecd8
mov esi, dword [esp + 0x30]
push esi
call fcn.004d1cc0
add esp, 4
cmp eax, 0x64
jne 0x49ec67
mov eax, dword [esp + 0x38]
lea edx, [eax - 2]
cmp edi, edx
jl 0x49eb2b
lea eax, [edi + eax*2 + 0xa]
mov dword [esp + 0x38], eax
lea ebx, [eax*4]
call fcn.00524d80
test eax, eax
jne 0x49ece1
test ebx, ebx
jge 0x49eb0e
xor ebx, ebx
mov eax, ebx
mov ebx, dword [esp + 0x1c]
cdq
push edx
push eax
call fcn.004ab5c0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x49ece1
push 1
push esi
inc edi
call fcn.004d2500
push eax
push 0x5f7c60
call fcn.004ad880
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov dword [ecx + edi*4], eax
test esi, esi
je 0x49eb8c
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x49eb60
push eax
call dword [0x631984]
add esp, 4
mov eax, dword [esi + 0x68]
test eax, eax
je 0x49eb7d
mov ecx, 5
cmp cx, word [esi + 0x8c]
jae 0x49eb7d
lea edx, [eax + 0xc8]
jmp 0x49eb91
mov ebx, dword [esi]
mov eax, 0x19
mov dword [ebx + 0x38], eax
call fcn.004ae4e0
mov edx, 0x5e47c8
movzx eax, word [edx + 8]
test al, 4
je 0x49eba4
mov ebx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x24], edx
jmp 0x49ebd7
test al, 8
je 0x49ebc0
fld qword [edx]
sub esp, 8
fstp qword [esp]
call fcn.004cace0
add esp, 8
mov ebx, eax
mov dword [esp + 0x24], edx
jmp 0x49ebd7
test al, 0x12
je 0x49ebd1
call fcn.004cad40
mov ebx, eax
mov dword [esp + 0x24], edx
jmp 0x49ebd7
xor ebx, ebx
mov dword [esp + 0x24], ebx
test esi, esi
je 0x49ec10
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
mov ecx, dword [esi + 0x28]
jne 0x49ebf5
cmp ecx, 0xc0a
je 0x49ebf5
mov eax, dword [eax + 0x3c]
and eax, ecx
jmp 0x49ebfa
call fcn.004abcb0
mov dword [esi + 0x28], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x49ec10
push eax
call dword [0x63198c]
add esp, 4
test ebx, ebx
je 0x49ec51
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, 1
jne 0x49ec49
push 2
push esi
call fcn.004d2500
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x49ec49
mov eax, str.INTEGER
call fcn.004ae7e0
mov dword [esp + 0x2c], 1
test eax, eax
je 0x49ec51
mov dword [esp + 0x2c], 0
push esi
call fcn.004d1cc0
add esp, 4
cmp eax, 0x64
je 0x49eae1
mov dword [esp + 0x20], edi
push esi
call fcn.004d0dd0
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x49ecd8
cmp dword [esp + 0x34], 0
mov dword [eax], 0
mov dword [eax + edi*4 + 4], 0
je 0x49ed87
cmp dword [esp + 0x2c], 0
je 0x49ed0a
mov ecx, dword [ebp + 0xc]
push ecx
push str.SELECT_1_FROM_pragma_index_list__Q__WHERE_originpk
call fcn.004ad880
push 0
lea edx, [esp + 0x3c]
push edx
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0xffffffffffffffff
push esi
push ecx
call fcn.00501770
add esp, 0x1c
push esi
mov ebx, eax
call fcn.004ab490
add esp, 4
test ebx, ebx
je 0x49ece6
mov edi, dword [esp + 0x1c]
call fcn.0049e990
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00490550
mov esi, dword [esp + 0x30]
push esi
call fcn.004d1cc0
add esp, 4
push esi
mov ebx, eax
call fcn.004d0dd0
xor edx, edx
add esp, 4
cmp ebx, 0x64
sete dl
mov dword [esp + 0x34], edx
cmp dword [esp + 0x34], 0
je 0x49ed87
xor edi, edi
mov ecx, dword [esp + 0x20]
mov esi, 1
cmp ecx, esi
jl 0x49ed50
mov ebx, dword [edi*4 + 0x633168]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
test ebx, ebx
jne 0x49ed38
neg eax
sbb eax, eax
jmp 0x49ed47
test eax, eax
je 0x49ed4b
mov ecx, ebx
call fcn.004ae7e0
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x49ed92
inc esi
cmp esi, ecx
jle 0x49ed27
mov ecx, dword [edi*4 + 0x633168]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
mov ecx, dword [eax]
push edx
push 0
push ecx
call fcn.00528470
add esp, 0x24
test eax, eax
jne 0x49ed87
mov edx, dword [edi*4 + 0x633168]
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, ecx
jg 0x49ed50
inc edi
cmp edi, 3
jl 0x49ed13
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret