Function at 0x49a610
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x20], 0xfffe7960
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
cmp dword [ebp], edi
jne 0x49a650
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov eax, dword [esp + 0x5c]
mov ebx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00499e60
mov ebx, dword [esp + 0x24]
add esp, 8
cmp ebx, edi
jle 0x49a915
cmp eax, edi
jne 0x49a915
mov edx, dword [ebp + 8]
push edi
push edi
push edi
push str.ANALYZE__PRAGMA_writable_schema1
push edx
call fcn.004fc670
mov esi, eax
add esp, 0x14
mov dword [esp + 0x1c], esi
cmp esi, edi
jne 0x49a878
lea eax, [esp + 0x1c]
lea edi, [ebx + ebx*4]
lea edi, [edi*8 + 0x30]
push eax
call fcn.00497890
mov esi, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x58], eax
test esi, esi
jne 0x49a878
cmp dword [ebp], 0x64
jne 0x49a6cd
mov eax, dword [ebp + 4]
jmp 0x49a6d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x58]
push 0
push 0
push 0
push 0
push 0
push 0x499ca0
push ecx
push 1
push 2
push 0x5f94a4
call fcn.00526850
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x49a878
mov eax, dword [ebp + 4]
push esi
push esi
push esi
push esi
push esi
push 0x499bf0
lea edx, [esp + 0x48]
push edx
push 1
push esi
push str.sample
call fcn.00526850
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x49a878
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
inc ebx
mov dword [eax], ebx
mov ebx, dword [ebp + 8]
push ecx
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 + 0x14]
call fcn.00497da0
mov esi, eax
add esp, 4
test esi, esi
jne 0x49a878
mov edx, dword [esp + 0x5c]
mov ebx, dword [ebp + 8]
push edx
mov eax, str.SELECT_name__coll_FROM_pragma_index_xinfo____WHERE_key
lea edi, [esp + 0x18]
call fcn.00497da0
mov esi, eax
add esp, 4
test esi, esi
jne 0x49a878
mov eax, dword [esp + 0x5c]
mov ebx, dword [ebp + 8]
push eax
mov eax, str.INSERT_INTO_sqlite_stat1_VALUES_________
lea edi, [esp + 0x1c]
call fcn.00497da0
mov esi, eax
add esp, 4
test esi, esi
jne 0x49a878
mov edi, dword [esp + 0x10]
push edi
call fcn.004d1cc0
add esp, 4
cmp eax, 0x64
jne 0x49a858
push 0
push edi
call fcn.004d2460
mov esi, eax
push 1
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edx
call fcn.004d2500
push 2
push edi
mov ebx, eax
call fcn.004d2500
mov edi, eax
mov eax, dword [ebp]
add esp, 0x18
cmp eax, 0x64
mov dword [esp + 0x1c], eax
jge 0x49a823
cmp dword [esp + 0x20], esi
jne 0x49a7f6
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], ecx
je 0x49a823
fild dword [esp + 0x1c]
mov dword [esp + 0x30], eax
push ebx
mov eax, ebp
fdiv qword [0x602d40]
fstp qword [esp + 0x3c]
fldz
fst qword [esp + 0x44]
fstp qword [esp + 0x4c]
call fcn.0049a5b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x49a878
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
push edx
push edi
push ebx
push eax
mov eax, dword [esp + 0x24]
push ebp
call fcn.00499ef0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov esi, eax
add esp, 0x14
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
test esi, esi
je 0x49a79b
jmp 0x49a878
test esi, esi
jne 0x49a878
cmp dword [ebp], 0x64
jge 0x49a878
mov eax, dword [ebp + 0xc]
push esi
push esi
push esi
push str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
push eax
call fcn.004fc670
add esp, 0x14
mov esi, eax
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004d0dd0
add esp, 4
test esi, esi
jne 0x49a88b
mov esi, eax
mov edx, dword [esp + 0x14]
push edx
call fcn.004d0dd0
add esp, 4
test esi, esi
jne 0x49a89e
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004d0dd0
add esp, 4
test esi, esi
jne 0x49a8b1
mov esi, eax
mov ebx, dword [esp + 0x58]
xor edi, edi
cmp dword [ebx], edi
jle 0x49a8d9
add ebx, 0x28
mov edi, edi
mov ecx, dword [ebx]
push ecx
call fcn.004ab490
mov edx, dword [esp + 0x5c]
inc edi
add esp, 4
add ebx, 0x28
cmp edi, dword [edx]
jl 0x49a8c0
mov ebx, edx
push ebx
call fcn.004ab490
add esp, 4
test esi, esi
jne 0x49a8fc
mov eax, dword [ebp + 8]
push esi
push esi
push esi
push str.ANALYZE_sqlite_master
push eax
call fcn.004fc670
add esp, 0x14
mov esi, eax
mov ecx, dword [ebp + 4]
push 0
push 0
push 0
push str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
push ecx
call fcn.004fc670
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret