Function at 0x4baa30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x20], edx
push edi
cmp dword [esi + 0x24], 0
mov edx, dword [esi]
mov dword [esp + 0x18], edx
jne 0x4baf03
mov ebp, dword [esi + 0xec]
mov ebx, 0xffff8000
mov dword [esp + 0x34], ebp
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x4baa7d
mov eax, dword [edx + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x4baa7d
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x4baa75
mov eax, dword [edx + 0x10]
mov ecx, ebx
mov edx, dword [ebp]
shl ecx, 4
add edx, 0x10
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], edx
mov eax, dword [ecx + eax]
movsx ecx, word [ebp + 0x22]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 4]
shl ecx, 4
add eax, ecx
mov dword [esp + 0x20], eax
movzx eax, word [eax - 4]
test ax, ax
jne 0x4baab7
xor edi, edi
jmp 0x4baad7
cmp byte [ebp + 0x2b], 0
je 0x4baac1
xor edi, edi
jmp 0x4baad7
mov edi, dword [ebp + 0x34]
test edi, edi
je 0x4baad7
cmp dword [edi], eax
jge 0x4baad0
xor edi, edi
jmp 0x4baad7
lea eax, [eax + eax*4]
mov edi, dword [edi + eax*4 - 0xc]
push dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
call fcn.004c28b0
add esp, 4
mov edx, 0x1a
mov ecx, esi
push 0
push dword [eax]
push dword [esp + 0x18]
call fcn.004c1c90
add esp, 0xc
test eax, eax
jne 0x4baf03
mov eax, dword [esp + 0x20]
movzx eax, word [eax - 2]
test al, 1
je 0x4bab28
push str.Cannot_add_a_PRIMARY_KEY_column
push esi
call fcn.00477d90
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
je 0x4bab44
push str.Cannot_add_a_UNIQUE_column
push esi
call fcn.00477d90
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test al, 0x60
jne 0x4bac30
test edi, edi
je 0x4bab5b
mov eax, dword [edi + 0xc]
xor ecx, ecx
cmp byte [eax], 0x79
cmove edi, ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x20]
and eax, 0x4000
or eax, 0
je 0x4bab95
cmp dword [ebp + 0x30], 0
je 0x4bab95
test edi, edi
je 0x4bab95
push dword [esp + 0x14]
push dword [esp + 0x14]
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.004c2780
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [esp + 0x20]
test byte [eax - 0xc], 0xf
je 0x4babb5
test edi, edi
jne 0x4babbd
push dword [esp + 0x14]
push dword [esp + 0x14]
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x4bac41
test edi, edi
je 0x4bac4f
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0x41
push 1
mov edx, edi
call fcn.00498850
add esp, 0x10
test eax, eax
jne 0x4baf03
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4bac0c
push dword [esp + 0x14]
push dword [esp + 0x14]
push str.Cannot_add_a_column_with_non_constant_default
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.004c2780
mov edi, dword [esp + 0x30]
add esp, 0x14
test edi, edi
je 0x4bac4f
mov eax, 0x2400
test word [edi + 8], ax
jne 0x4bac1d
cmp dword [edi + 0x18], 0
je 0x4bac24
mov ecx, edi
call fcn.00497a40
mov ecx, dword [edi + 0x20]
mov edx, edi
call fcn.004747b0
jmp 0x4bac4f
test al, 0x40
je 0x4bac4f
push dword [esp + 0x14]
push dword [esp + 0x14]
push str.cannot_add_a_STORED_column
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.004c2780
add esp, 0x14
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4bacf1
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00474ba0
mov edi, eax
add esp, 8
test edi, edi
je 0x4bacf1
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push edi
call fcn.00552550
mov eax, dword [esp + 0x28]
add esp, 0xc
mov byte [eax + edi], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
dec ecx
add ecx, edi
cmp ecx, edi
jbe 0x4bacca
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x3b
je 0x4bacc2
movzx eax, al
test byte [eax + 0x59a2b8], 1
je 0x4bacca
mov byte [ecx], 0
dec ecx
cmp ecx, edi
ja 0x4bacb0
push dword [esp + 0x14]
mov eax, dword [ebp + 0x2c]
push eax
push edi
push eax
push dword [esp + 0x20]
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 esi
call fcn.004c2780
mov ecx, dword [esp + 0x34]
add esp, 0x1c
mov edx, edi
call fcn.004747b0
mov edi, dword [esi + 8]
test edi, edi
jne 0x4bad1a
cmp dword [esi + 0x74], edi
jne 0x4bad09
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x4bad09
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.00498df0
mov edi, eax
test edi, edi
je 0x4baf03
mov al, byte [esi + 0x13]
test al, al
jne 0x4bad29
inc dword [esi + 0x2c]
mov ebp, dword [esi + 0x2c]
jmp 0x4bad38
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov ebp, dword [esi + eax*4 + 0x98]
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x4bad5c
push 2
push ebp
push ebx
mov edx, 0x62
mov ecx, edi
call fcn.00499040
lea edx, [edi + 0x70]
add esp, 0xc
mov dword [esp + 0x18], edx
jmp 0x4bad8d
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea edx, [edi + 0x70]
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x18], edx
mov dword [eax + ecx*4], 0x62
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], 2
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0xa4]
bts eax, ebx
mov dword [edi + 0xa4], eax
cmp ebx, 1
je 0x4badc3
mov eax, dword [edi]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx + 4]
cmp byte [eax + 9], 0
je 0x4badc3
mov eax, dword [edi + 0xa8]
bts eax, ebx
mov dword [edi + 0xa8], eax
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x4bade1
push 0
push 0xfffffffffffffffe
push ebp
mov edx, 0x55
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x4bae0f
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], 0xfffffffe
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x74]
lea edx, [ecx + 2]
cmp dword [edi + 0x78], ecx
jg 0x4bae2f
push 0
push edx
push ebp
mov edx, 0x31
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x4bae5d
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x4bae7b
push 3
push 2
push ebx
mov edx, 0x63
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x4baead
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x63
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], 3
mov dword [eax + ecx*4 + 0x10], 0
test ebp, ebp
je 0x4baec5
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x4baec5
movzx eax, al
mov dword [esi + eax*4 + 0x98], ebp
inc byte [esi + 0x13]
push 3
mov edx, ebx
mov ecx, esi
call fcn.004ba460
mov eax, dword [esp + 0x38]
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x4baeed
mov eax, dword [esp + 0x20]
test byte [eax - 0xc], 0xf
je 0x4baf03
test byte [eax - 2], 0x60
je 0x4baf03
push dword [esp + 0x10]
push dword [esp + 0x18]
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 esi
call fcn.004c2780
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret