Function at 0x49e7a0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x44
push ebp
mov ebp, dword [esp + 0x4c]
push esi
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0xfffe7960
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x50], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp dword [ebp], esi
jne 0x49e7dc
pop esi
xor eax, eax
pop ebp
add esp, 0x44
ret
mov eax, dword [esp + 0x54]
push ebx
push edi
mov edi, dword [ebp + 8]
push eax
lea ebx, [esp + 0x20]
call fcn.0049e370
mov ebx, dword [esp + 0x20]
add esp, 4
cmp ebx, esi
jle 0x49eaa5
cmp eax, esi
jne 0x49eaa5
mov ecx, dword [ebp + 8]
push esi
push esi
push esi
push str.ANALYZE__PRAGMA_writable_schema1
push ecx
call fcn.00527b30
mov esi, eax
add esp, 0x14
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x49ea05
lea edx, [esp + 0x1c]
lea edi, [ebx + ebx*4]
lea edi, [edi*8 + 0x30]
push edx
call fcn.0049c650
mov esi, dword [esp + 0x20]
add esp, 4
mov edi, eax
mov dword [esp + 0x10], edi
test esi, esi
jne 0x49ea05
cmp dword [ebp], 0x64
jne 0x49e85c
mov eax, dword [ebp + 4]
jmp 0x49e85f
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0x49e200
push edi
push 1
push 2
push 0x5e5e5c
push eax
call fcn.004f7b40
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x49ea05
mov ecx, dword [ebp + 4]
push eax
push eax
push 0x49e180
lea eax, [esp + 0x40]
push eax
push 1
push esi
push str.sample
push ecx
call fcn.004f7b40
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x49ea05
mov edx, dword [esp + 0x5c]
inc ebx
mov dword [edi], ebx
mov ebx, dword [ebp + 8]
push edx
mov eax, str.SELECT_s.rowid__s.name__l.name_FROM___sqlite_master_AS_s____pragma_index_list_s.name__AS_l_WHERE_s.type__table
lea edi, [esp + 0x5c]
call fcn.0049ca60
mov esi, eax
add esp, 4
test esi, esi
jne 0x49ea05
mov eax, dword [esp + 0x5c]
mov ebx, dword [ebp + 8]
push eax
mov eax, str.SELECT_name__coll_FROM_pragma_index_xinfo____WHERE_key
lea edi, [esp + 0x18]
call fcn.0049ca60
mov esi, eax
add esp, 4
test esi, esi
jne 0x49ea05
mov ecx, dword [esp + 0x5c]
mov ebx, dword [ebp + 8]
push ecx
mov eax, str.INSERT_INTO_sqlite_stat1_VALUES_________
lea edi, [esp + 0x1c]
call fcn.0049ca60
mov esi, eax
add esp, 4
test esi, esi
jne 0x49ea05
jmp 0x49e920
mov edx, dword [esp + 0x58]
push edx
call fcn.005277b0
add esp, 4
cmp eax, 0x64
jne 0x49e9e5
mov eax, dword [esp + 0x58]
push 0
push eax
call fcn.004c5bd0
mov ecx, dword [esp + 0x60]
mov esi, edx
push 1
push ecx
mov ebx, eax
mov dword [esp + 0x40], esi
call fcn.004cfe50
mov edx, dword [esp + 0x68]
push 2
push edx
mov edi, eax
call fcn.004cfe50
mov dword [esp + 0x38], eax
mov eax, dword [ebp]
add esp, 0x18
cmp eax, 0x64
mov dword [esp + 0x1c], eax
jge 0x49e9b0
cmp dword [esp + 0x24], ebx
jne 0x49e983
cmp dword [esp + 0x28], esi
je 0x49e9b0
fild dword [esp + 0x1c]
mov dword [esp + 0x34], eax
push edi
mov eax, ebp
fdiv qword [0x5e3060]
fstp qword [esp + 0x40]
fldz
fst qword [esp + 0x48]
fstp qword [esp + 0x50]
call fcn.0049e740
mov esi, eax
add esp, 4
test esi, esi
jne 0x49ea05
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edi
push edx
push ebp
call fcn.0049e400
mov esi, eax
mov eax, dword [esp + 0x44]
add esp, 0x14
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
test esi, esi
je 0x49e920
jmp 0x49ea05
test esi, esi
jne 0x49ea05
cmp dword [ebp], 0x64
jge 0x49ea05
mov ecx, dword [ebp + 0xc]
push esi
push esi
push esi
push str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
push ecx
call fcn.00527b30
add esp, 0x14
mov esi, eax
mov edx, dword [esp + 0x58]
push edx
call fcn.005125e0
add esp, 4
test esi, esi
jne 0x49ea18
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call fcn.005125e0
add esp, 4
test esi, esi
jne 0x49ea2b
mov esi, eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005125e0
add esp, 4
test esi, esi
jne 0x49ea3e
mov esi, eax
mov ebx, dword [esp + 0x10]
xor edi, edi
cmp dword [ebx], edi
jle 0x49ea69
add ebx, 0x28
jmp 0x49ea50
mov edx, dword [ebx]
push edx
call fcn.004ac9a0
mov eax, dword [esp + 0x14]
inc edi
add esp, 4
add ebx, 0x28
cmp edi, dword [eax]
jl 0x49ea50
mov ebx, eax
push ebx
call fcn.004ac9a0
add esp, 4
test esi, esi
jne 0x49ea8c
mov ecx, dword [ebp + 8]
push esi
push esi
push esi
push str.ANALYZE_sqlite_master
push ecx
call fcn.00527b30
add esp, 0x14
mov esi, eax
mov edx, dword [ebp + 4]
push 0
push 0
push 0
push str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
push edx
call fcn.00527b30
add esp, 0x14
mov eax, esi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x44
ret