Function at 0x49de90
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
mov eax, dword [edi + 4]
push eax
push eax
push str.SELECT_CREATE_TEMP__substr_sql__7__FROM_sqlite_master_WHERE_tbl_name___Q_AND_type_IN__table__trigger__ORDER_BY_type_
mov dword [esp + 0x24], eax
mov eax, dword [edx + 4]
push ecx
xor ebp, ebp
push eax
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], ebp
call fcn.0049cc70
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
jne 0x49df16
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00527980
add esp, 4
cmp eax, 0x64
jne 0x49df12
mov edx, dword [esp + 0x14]
push 0
push edx
call fcn.004d0010
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push ecx
push 0
push 0
push eax
mov eax, dword [edx + 0xc]
push eax
call fcn.00527d00
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x49ded4
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005127b0
add esp, 4
test esi, esi
jne 0x49df81
mov esi, eax
mov dword [esp + 0x10], esi
test eax, eax
jne 0x49df81
mov edx, dword [str.t592690916721053953805701627921227776]
mov eax, dword [esp + 0x18]
push edx
push eax
push str.ALTER_TABLE_temp._Q_RENAME_TO__Q
call fcn.004d32a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x49df5b
mov esi, 7
mov dword [esp + 0x10], esi
jmp 0x49df81
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
push ecx
push 0
push 0
push ebx
push eax
call fcn.00527d00
mov esi, eax
push ebx
mov dword [esp + 0x28], esi
call fcn.004acb60
add esp, 0x18
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
cmp eax, 0x12
je 0x49e025
cmp eax, 0x17
je 0x49dfc4
test esi, esi
jne 0x49e0df
mov edx, dword [str.t592690916721053953805701627921227776]
push edx
push str.DELETE_FROM__Q
call fcn.004d32a0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x49e08a
lea esi, [eax + 7]
jmp 0x49e0df
mov eax, dword [str.t592690916721053953805701627921227776]
push eax
push str.UPDATE__Q_SET
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0049d3f0
xor esi, esi
add esp, 0x10
cmp dword [edi], esi
mov ebp, eax
jle 0x49e082
lea ebx, [ebx]
mov eax, 0x5d3001
test esi, esi
je 0x49dffe
mov eax, 0x5e57dc
mov ecx, dword [edi + 8]
lea edx, [esi + esi*2]
mov edx, dword [ecx + edx*4]
push edx
push eax
push str._s_Q_
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.0049d3f0
inc esi
add esp, 0x14
cmp esi, dword [edi]
mov ebp, eax
jl 0x49dff0
jmp 0x49e082
mov ecx, dword [str.t592690916721053953805701627921227776]
push ecx
push str.INSERT_INTO__Q_VALUES_
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0049d3f0
add esp, 0x10
xor esi, esi
cmp dword [edi], ebp
jle 0x49e06d
mov ecx, 0x5d3001
test esi, esi
je 0x49e054
mov ecx, 0x5e57dc
push ecx
push 0x5e589c
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0049d3f0
inc esi
add esp, 0x10
cmp esi, dword [edi]
jl 0x49e046
push 0x5e53a8
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0049d3f0
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x49e0df
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0xc]
push 0
lea edx, [esp + 0x28]
push edx
push 0xffffffffffffffff
push ebp
push eax
mov dword [esp + 0x38], 0
call fcn.00521340
mov ecx, dword [esp + 0x38]
push ecx
mov esi, eax
call fcn.005127b0
add esp, 0x18
test esi, esi
jne 0x49e0c2
mov esi, eax
test eax, eax
je 0x49e0df
mov eax, dword [edi + 0xc]
push eax
call fcn.004f7f30
push eax
push 0x5e35b8
call fcn.004d32a0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov dword [edx], eax
push ebp
call fcn.004acb60
add esp, 4
test esi, esi
jne 0x49e112
mov eax, dword [esp + 0x28]
mov ecx, dword [str.DROP_TABLE_t592690916721053953805701627921227776]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [edx + 0xc]
push esi
push esi
push ecx
push eax
call fcn.00527d00
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret