Function at 0x499720
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
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 + 0x28], eax
mov eax, dword [edx + 4]
push ecx
xor ebp, ebp
push eax
lea ebx, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
call fcn.00497df0
mov ebx, dword [esp + 0x2c]
mov esi, eax
add esp, 0x14
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4997a2
push ebx
call fcn.004d1cc0
add esp, 4
cmp eax, 0x64
jne 0x49979e
push 0
push ebx
call fcn.004d2500
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push ecx
push 0
push 0
push eax
mov eax, dword [edx + 0xc]
push eax
call fcn.004fc670
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x499768
mov dword [esp + 0x14], esi
push ebx
call fcn.004d0dd0
add esp, 4
test esi, esi
jne 0x49980a
mov esi, eax
mov dword [esp + 0x14], esi
test eax, eax
jne 0x49980a
mov ecx, dword [esp + 0x1c]
push str.t592690916721053953805701627921227776
push ecx
push str.ALTER_TABLE_temp._Q_RENAME_TO__Q
call fcn.004ad880
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4997e1
mov esi, 7
mov dword [esp + 0x14], esi
jmp 0x49980a
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
push edx
push 0
push 0
push ebx
push ecx
call fcn.004fc670
add esp, 0x14
mov esi, eax
push ebx
mov dword [esp + 0x18], esi
call fcn.004ab490
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
cmp eax, 0x12
je 0x4998a5
cmp eax, 0x17
je 0x49984b
test esi, esi
jne 0x499966
push str.t592690916721053953805701627921227776
push str.DELETE_FROM__Q
call fcn.004ad880
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x499908
lea esi, [eax + 7]
jmp 0x499966
push str.t592690916721053953805701627921227776
push str.UPDATE__Q_SET
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00498750
xor esi, esi
add esp, 0x10
cmp dword [edi], esi
mov ebp, eax
jle 0x499900
mov eax, 0x5e1790
test esi, esi
je 0x49987e
mov eax, 0x5f8ecc
mov edx, dword [edi + 8]
lea ecx, [esi + esi*2]
mov ecx, dword [edx + ecx*4]
push ecx
push eax
push str._s_Q_
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.00498750
inc esi
add esp, 0x14
cmp esi, dword [edi]
mov ebp, eax
jl 0x499870
jmp 0x499900
push str.t592690916721053953805701627921227776
push str.INSERT_INTO__Q_VALUES_
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00498750
add esp, 0x10
xor esi, esi
cmp dword [edi], ebp
jle 0x4998eb
mov ecx, 0x5e1790
test esi, esi
je 0x4998d2
mov ecx, 0x5f8ecc
push ecx
push 0x5f906c
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00498750
inc esi
add esp, 0x10
cmp esi, dword [edi]
jl 0x4998c4
push 0x5f8a98
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00498750
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x499966
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0xc]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x80
push 0xffffffffffffffff
push ebp
mov dword [esp + 0x40], 0
call fcn.00501540
mov edx, dword [esp + 0x40]
push edx
mov esi, eax
call fcn.004d0dd0
add esp, 0x1c
test esi, esi
jne 0x499946
mov esi, eax
test eax, eax
je 0x499966
mov eax, dword [edi + 0xc]
push eax
call fcn.005270e0
add esp, 4
push eax
push 0x5f7c60
call fcn.004ad880
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [ecx], eax
push ebp
call fcn.004ab490
add esp, 4
test esi, esi
jne 0x499997
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
push edx
push esi
push esi
push str.DROP_TABLE_t592690916721053953805701627921227776
push ecx
call fcn.004fc670
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret