Function at 0x52cfe0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
push edi
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x24], 0
mov edx, dword [edi]
mov dword [esp + 8], edx
jne 0x52d2c4
push ebx
push ebp
mov ebp, dword [edi + 0xec]
mov ebx, 0xffff8000
mov dword [esp + 0x1c], ebp
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x52d028
mov eax, dword [edx + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x52d028
lea esp, [esp]
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x52d020
mov eax, dword [edx + 0x10]
mov ecx, ebx
mov edx, dword [ebp]
add ecx, ecx
add edx, 0x10
push esi
mov dword [esp + 0x10], edx
mov eax, dword [eax + ecx*8]
movsx ecx, word [ebp + 0x22]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
add eax, 0xfffffff0
shl ecx, 4
add eax, ecx
mov dword [esp + 0x1c], eax
movzx eax, word [eax + 0xc]
test ax, ax
jne 0x52d061
xor esi, esi
jmp 0x52d081
cmp byte [ebp + 0x2b], 0
je 0x52d06b
xor esi, esi
jmp 0x52d081
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x52d081
cmp dword [esi], eax
jge 0x52d07a
xor esi, esi
jmp 0x52d081
lea eax, [eax + eax*4]
mov esi, dword [esi + eax*4 - 0xc]
push dword [esp + 0x28]
push edx
push dword [esp + 0x1c]
call fcn.0053fcc0
push 0
push dword [eax]
push dword [esp + 0x3c]
push 0x1a
push edi
call fcn.0052e3c0
add esp, 0x20
test eax, eax
jne 0x52d2c1
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 0xe]
test al, 1
je 0x52d0cc
push str.Cannot_add_a_PRIMARY_KEY_column
push edi
call fcn.00539ba0
add esp, 8
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x14
ret
cmp dword [ebp + 8], 0
je 0x52d0e8
push str.Cannot_add_a_UNIQUE_column
push edi
call fcn.00539ba0
add esp, 8
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x14
ret
test al, 0x60
jne 0x52d1a0
test esi, esi
je 0x52d102
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp byte [eax], 0x79
sete cl
dec ecx
and esi, ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
and eax, 0x4000
or eax, 0
je 0x52d137
cmp dword [ebp + 0x30], 0
je 0x52d137
test esi, esi
je 0x52d137
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
push dword [esp + 0x14]
push dword [esp + 0x30]
push edi
call fcn.00539b80
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov eax, dword [esp + 0x1c]
test byte [eax + 4], 0xf
je 0x52d14c
test esi, esi
jne 0x52d150
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x52d1a9
test esi, esi
je 0x52d1ba
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0x41
push 1
push esi
push ecx
call fcn.00560a40
add esp, 0x14
test eax, eax
jne 0x52d2c1
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x52d195
push str.Cannot_add_a_column_with_non_constant_default
push dword [esp + 0x14]
push dword [esp + 0x30]
push edi
call fcn.00539b80
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
call fcn.00560a00
add esp, 4
jmp 0x52d1ba
test al, 0x40
je 0x52d1ba
push str.cannot_add_a_STORED_column
push dword [esp + 0x14]
push dword [esp + 0x30]
push edi
call fcn.00539b80
add esp, 0x10
mov eax, dword [esp + 0x2c]
push 0
push dword [eax + 4]
push dword [eax]
push dword [esp + 0x20]
call fcn.00537b90
mov esi, eax
add esp, 0x10
test esi, esi
je 0x52d225
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 4]
dec ecx
add ecx, esi
cmp ecx, esi
jbe 0x52d1ff
mov al, byte [ecx]
cmp al, 0x3b
je 0x52d1f7
movzx eax, al
test byte [eax + 0x5c01b0], 1
je 0x52d1ff
mov byte [ecx], 0
dec ecx
cmp ecx, esi
ja 0x52d1e5
push dword [esp + 0x10]
mov eax, dword [ebp + 0x2c]
push eax
push esi
push eax
push dword [esp + 0x38]
push str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
push edi
call fcn.0054ead0
push esi
push dword [esp + 0x34]
call fcn.00537780
add esp, 0x24
push edi
call fcn.0054a1a0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x52d2c1
push edi
call fcn.00549790
push 2
mov esi, eax
push esi
push ebx
push 0x62
push ebp
call fcn.00560db0
push ebx
push ebp
call fcn.0056cdc0
push 0xfffffffffffffffe
push esi
push 0x55
push ebp
call fcn.00560d50
mov eax, dword [ebp + 0x74]
add eax, 2
push eax
push esi
push 0x31
push ebp
call fcn.00560d50
add esp, 0x40
push 3
push 2
push ebx
push 0x63
push ebp
call fcn.00560db0
push esi
push edi
call fcn.00556430
push 3
push ebx
push edi
call fcn.00526d20
mov eax, dword [esp + 0x48]
add esp, 0x28
cmp dword [eax + 0x10], 0
jne 0x52d2ab
mov eax, dword [esp + 0x1c]
test byte [eax + 4], 0xf
je 0x52d2c1
test byte [eax + 0xe], 0x60
je 0x52d2c1
push dword [esp + 0x28]
push dword [esp + 0x14]
push str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
push edi
call fcn.0054ead0
add esp, 0x10
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x14
ret