Function at 0x49dcc0
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.0049caa0
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
jne 0x49dd46
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005277b0
add esp, 4
cmp eax, 0x64
jne 0x49dd42
mov edx, dword [esp + 0x14]
push 0
push edx
call fcn.004cfe50
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.00527b30
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x49dd04
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005125e0
add esp, 4
test esi, esi
jne 0x49ddb1
mov esi, eax
mov dword [esp + 0x10], esi
test eax, eax
jne 0x49ddb1
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.004d30e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x49dd8b
mov esi, 7
mov dword [esp + 0x10], esi
jmp 0x49ddb1
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.00527b30
mov esi, eax
push ebx
mov dword [esp + 0x28], esi
call fcn.004ac9a0
add esp, 0x18
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
cmp eax, 0x12
je 0x49de55
cmp eax, 0x17
je 0x49ddf4
test esi, esi
jne 0x49df0f
mov edx, dword [str.t592690916721053953805701627921227776]
push edx
push str.DELETE_FROM__Q
call fcn.004d30e0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x49deba
lea esi, [eax + 7]
jmp 0x49df0f
mov eax, dword [str.t592690916721053953805701627921227776]
push eax
push str.UPDATE__Q_SET
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0049d220
xor esi, esi
add esp, 0x10
cmp dword [edi], esi
mov ebp, eax
jle 0x49deb2
lea ebx, [ebx]
mov eax, 0x5d3001
test esi, esi
je 0x49de2e
mov eax, 0x5e589c
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.0049d220
inc esi
add esp, 0x14
cmp esi, dword [edi]
mov ebp, eax
jl 0x49de20
jmp 0x49deb2
mov ecx, dword [str.t592690916721053953805701627921227776]
push ecx
push str.INSERT_INTO__Q_VALUES_
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0049d220
add esp, 0x10
xor esi, esi
cmp dword [edi], ebp
jle 0x49de9d
mov ecx, 0x5d3001
test esi, esi
je 0x49de84
mov ecx, 0x5e589c
push ecx
push 0x5e595c
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0049d220
inc esi
add esp, 0x10
cmp esi, dword [edi]
jl 0x49de76
push 0x5e5468
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0049d220
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x49df0f
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.00521170
mov ecx, dword [esp + 0x38]
push ecx
mov esi, eax
call fcn.005125e0
add esp, 0x18
test esi, esi
jne 0x49def2
mov esi, eax
test eax, eax
je 0x49df0f
mov eax, dword [edi + 0xc]
push eax
call fcn.004f7d70
push eax
push 0x5e3678
call fcn.004d30e0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov dword [edx], eax
push ebp
call fcn.004ac9a0
add esp, 4
test esi, esi
jne 0x49df42
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.00527b30
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