Function at 0x5d3a18
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp], edx
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x24], 0
jne 0x5d3d03
mov esi, dword [ebx + 0xf8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x3c]
call fcn.005ccec4
mov dword [esp + 8], eax
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 8]
shl ecx, 4
mov eax, dword [edi + 0x10]
mov edx, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0xc], edx
mov ecx, dword [esi]
add ecx, 0x10
mov dword [esp + 0x10], ecx
movsx ecx, word [esi + 0x22]
mov edi, ecx
shl edi, 2
lea edi, [edi + edi*2]
add edi, dword [esi + 4]
add edi, 0xfffffff4
mov edx, edi
call fcn.005ce0a8
mov ebp, eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
call fcn.005cda0c
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
push eax
push 0
mov ecx, dword [esp + 0x14]
mov edx, 0x1a
mov eax, ebx
call fcn.00621f94
test eax, eax
je 0x5d3abc
jmp 0x5d3d03
test byte [edi + 0xa], 1
je 0x5d3ad5
push str.Cannot_add_a_PRIMARY_KEY_column
push ebx
call fcn.00643f68
add esp, 8
jmp 0x5d3d03
cmp dword [esi + 8], 0
je 0x5d3aee
push str.Cannot_add_a_UNIQUE_column
push ebx
call fcn.00643f68
add esp, 8
jmp 0x5d3d03
test byte [edi + 0xa], 0x60
jne 0x5d3baf
test ebp, ebp
je 0x5d3b0a
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
cmp eax, 0x79
jne 0x5d3b0a
xor ebp, ebp
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
and eax, 0x4000
xor edx, edx
cmp edx, 0
jne 0x5d3b24
cmp eax, 0
je 0x5d3b44
cmp dword [esi + 0x30], 0
je 0x5d3b44
test ebp, ebp
je 0x5d3b44
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ebx
call fcn.005d39fc
test byte [edi + 4], 0xf
je 0x5d3b62
test ebp, ebp
jne 0x5d3b62
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ebx
call fcn.005d39fc
test ebp, ebp
je 0x5d3bc9
xor ecx, ecx
mov edx, ebp
mov dword [esp + 0x1c], ecx
push 0x41
lea ecx, [esp + 0x20]
push ecx
mov cl, 1
mov eax, dword [esp + 0x1c]
call fcn.00647650
test eax, eax
je 0x5d3b89
jmp 0x5d3d03
cmp dword [esp + 0x1c], 0
jne 0x5d3ba4
push str.Cannot_add_a_column_with_non_constant_default
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ebx
call fcn.005d39fc
mov eax, dword [esp + 0x1c]
call fcn.006479e0
jmp 0x5d3bc9
test byte [edi + 0xa], 0x40
je 0x5d3bc9
push str.cannot_add_a_STORED_column
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ebx
call fcn.005d39fc
mov edx, dword [esp]
mov eax, dword [edx + 4]
xor edx, edx
push edx
push eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
call fcn.0064badc
mov ebp, eax
test ebp, ebp
je 0x5d3c36
mov eax, dword [esp]
mov eax, dword [eax + 4]
dec eax
add eax, ebp
jmp 0x5d3bf7
mov byte [eax], 0
dec eax
cmp ebp, eax
jae 0x5d3c0d
cmp byte [eax], 0x3b
je 0x5d3bf3
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x67e936], 1
jne 0x5d3bf3
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [esi + 0x2c]
push eax
push ebp
push eax
mov edx, dword [esp + 0x1c]
push edx
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 ebx
call fcn.005cd958
add esp, 0x1c
mov edx, ebp
mov eax, dword [esp + 0x14]
call fcn.0064b5f4
mov eax, ebx
call fcn.005f5f60
mov ebp, eax
test ebp, ebp
je 0x5d3d03
mov eax, ebx
call fcn.00621cd4
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
push edx
push 2
mov ecx, dword [esp + 0x10]
mov edx, 0x63
mov eax, ebp
call fcn.00630eac
mov edx, dword [esp + 8]
mov eax, ebp
call fcn.00631e20
push 0xfffffffffffffffe
mov ecx, dword [esp + 0x1c]
mov edx, 0x56
mov eax, ebp
call fcn.00630e98
mov eax, ebp
call fcn.00631490
add eax, 2
mov edx, 0x3b
push eax
mov eax, ebp
mov ecx, dword [esp + 0x1c]
call fcn.00630e98
push 2
push 3
mov ecx, dword [esp + 0x10]
mov edx, 0x64
mov eax, ebp
call fcn.00630eac
mov edx, dword [esp + 0x18]
mov eax, ebx
call fcn.00621cf4
mov cx, 3
mov edx, dword [esp + 8]
mov eax, ebx
call fcn.005d3708
cmp dword [esi + 0x10], 0
jne 0x5d3ceb
test byte [edi + 4], 0xf
je 0x5d3ce1
test byte [edi + 0xa], 0x60
jne 0x5d3ceb
mov edx, dword [esp + 4]
test byte [edx + 0x1e], 1
je 0x5d3d03
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__WHEN_quick_check_GLOB_non__value_in_THEN_raise_ABORT_type_mismatch_on_DEFAULT__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL_OR_quick_check_GLOB_non__value_in
push ebx
call fcn.005cd958
add esp, 0x10
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret