Function at 0x49e970
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 0x49e9ac
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.0049e540
mov ebx, dword [esp + 0x20]
add esp, 4
cmp ebx, esi
jle 0x49ec75
cmp eax, esi
jne 0x49ec75
mov ecx, dword [ebp + 8]
push esi
push esi
push esi
push str.ANALYZE__PRAGMA_writable_schema1
push ecx
call fcn.00527d00
mov esi, eax
add esp, 0x14
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x49ebd5
lea edx, [esp + 0x1c]
lea edi, [ebx + ebx*4]
lea edi, [edi*8 + 0x30]
push edx
call fcn.0049c820
mov esi, dword [esp + 0x20]
add esp, 4
mov edi, eax
mov dword [esp + 0x10], edi
test esi, esi
jne 0x49ebd5
cmp dword [ebp], 0x64
jne 0x49ea2c
mov eax, dword [ebp + 4]
jmp 0x49ea2f
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0x49e3d0
push edi
push 1
push 2
push 0x5e5d9c
push eax
call fcn.004f7d00
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x49ebd5
mov ecx, dword [ebp + 4]
push eax
push eax
push 0x49e350
lea eax, [esp + 0x40]
push eax
push 1
push esi
push str.sample
push ecx
call fcn.004f7d00
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x49ebd5
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.0049cc30
mov esi, eax
add esp, 4
test esi, esi
jne 0x49ebd5
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.0049cc30
mov esi, eax
add esp, 4
test esi, esi
jne 0x49ebd5
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.0049cc30
mov esi, eax
add esp, 4
test esi, esi
jne 0x49ebd5
jmp 0x49eaf0
mov edx, dword [esp + 0x58]
push edx
call fcn.00527980
add esp, 4
cmp eax, 0x64
jne 0x49ebb5
mov eax, dword [esp + 0x58]
push 0
push eax
call fcn.004c5d80
mov ecx, dword [esp + 0x60]
mov esi, edx
push 1
push ecx
mov ebx, eax
mov dword [esp + 0x40], esi
call fcn.004d0010
mov edx, dword [esp + 0x68]
push 2
push edx
mov edi, eax
call fcn.004d0010
mov dword [esp + 0x38], eax
mov eax, dword [ebp]
add esp, 0x18
cmp eax, 0x64
mov dword [esp + 0x1c], eax
jge 0x49eb80
cmp dword [esp + 0x24], ebx
jne 0x49eb53
cmp dword [esp + 0x28], esi
je 0x49eb80
fild dword [esp + 0x1c]
mov dword [esp + 0x34], eax
push edi
mov eax, ebp
fdiv qword [0x5e2fa0]
fstp qword [esp + 0x40]
fldz
fst qword [esp + 0x48]
fstp qword [esp + 0x50]
call fcn.0049e910
mov esi, eax
add esp, 4
test esi, esi
jne 0x49ebd5
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.0049e5d0
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 0x49eaf0
jmp 0x49ebd5
test esi, esi
jne 0x49ebd5
cmp dword [ebp], 0x64
jge 0x49ebd5
mov ecx, dword [ebp + 0xc]
push esi
push esi
push esi
push str.DROP_TABLE_IF_EXISTS_temp.t592690916721053953805701627921227776
push ecx
call fcn.00527d00
add esp, 0x14
mov esi, eax
mov edx, dword [esp + 0x58]
push edx
call fcn.005127b0
add esp, 4
test esi, esi
jne 0x49ebe8
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call fcn.005127b0
add esp, 4
test esi, esi
jne 0x49ebfb
mov esi, eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005127b0
add esp, 4
test esi, esi
jne 0x49ec0e
mov esi, eax
mov ebx, dword [esp + 0x10]
xor edi, edi
cmp dword [ebx], edi
jle 0x49ec39
add ebx, 0x28
jmp 0x49ec20
mov edx, dword [ebx]
push edx
call fcn.004acb60
mov eax, dword [esp + 0x14]
inc edi
add esp, 4
add ebx, 0x28
cmp edi, dword [eax]
jl 0x49ec20
mov ebx, eax
push ebx
call fcn.004acb60
add esp, 4
test esi, esi
jne 0x49ec5c
mov ecx, dword [ebp + 8]
push esi
push esi
push esi
push str.ANALYZE_sqlite_master
push ecx
call fcn.00527d00
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.00527d00
add esp, 0x14
mov eax, esi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x44
ret